Professional Documents
Culture Documents
26
Function outline
This function is provided to compensate for the error in setting a workpiece easily, without
having to rewrite the program section for describing the machining contour, by modifying the
workpiece coordinate system according to the error in question.
Coordinate system to be referred to
Workpiece
Workpiece
2.
Programming format
G54.4 Pn;
n: Number of the data set for workpiece setup error correction (1 to 7)
Enter zero with P (G54.4 P0) to cancel the correction function.
- Be sure to enter the G54.4 command (for selection as well as for cancellation) independently.
If a block of G54.4 should contain any other commands, an alarm is caused (1815 CANNOT
USE G54.4).
- Omission of argument P will lead to an alarm (807 ILLEGAL FORMAT).
Alarm 809 ILLEGAL NUMBER INPUT occurs if argument P is of any other value than 0 to 7.
3.
2.
3.
26-59
26
Workpiece with
setup errors
Y
Workpiece in the correct
mounting position
X
Workpiece coordinate
system (X, Y, Z)
Workpiece setup
coordinate system
(X, Y, Z)
y
X
4.
D740PB0105
B.
No. 1 to No. 7
5.
0.
3.
10.
0.
0.
0.
45.
0.
45.
15.
0.
90.
System variables
Using variables tabulated below, it is possible to read and write the values used for workpiece
setup error correction.
Common
No. 1
No. 2
No. 3
No. 4
No. 5
No. 6
No. 7
#5801
#5811
#5821
#5831
#5841
#5851
#5861
#5871
#5802
#5812
#5822
#5832
#5842
#5852
#5862
#5872
#5803
#5813
#5823
#5833
#5843
#5853
#5863
#5873
#5814
#5824
#5834
#5844
#5854
#5864
#5874
#5815
#5825
#5835
#5845
#5855
#5865
#5875
#5816
#5826
#5836
#5846
#5856
#5866
#5876
#5807
#5817
#5827
#5837
#5847
#5857
#5867
#5877
#5808
#5818
#5828
#5838
#5848
#5858
#5868
#5878
Use #5800 to read the number (1 to 7) of the currently selected data set for workpiece setup
error correction.
26-60
Note:
5.
26
An attempt to overwrite the system variable #5800 will only lead to an alarm (1821
UNWRITABLE SYSTEM VARIABLE).
Operation description
A.
X
c
y
X
D740PB0106
In the mode of workpiece setup error correction (G54.4), the NC unit controls the tool path by
including the program-externally provided data of workpiece setup errors.
Note 1: Resetting the NC-unit includes cancellation of the mode of workpiece setup error correction (G54.4).
Note 2: Selection and cancellation of the mode of workpiece setup error correction (with
G54.4) causes the POSITION values on the display to be changed as mentioned
above, indeed, but no actual movements occur on the machine.
26-61
26
B.
Y
Y
20
N2
N2
5
N1
N1
X
X
X
G54.4 P1
N1 G91 G0 X5.Y5.
N2 G91 G1 Y15.F500
N1 G91 G0 X5.Y5.
N2 G91 G1 Y15.F500
For absolute data input
N1 G90 G0 X5.Y5.
N2 G90 G1 Y20.F500
Y
Y
N2
N1
X
X
G54.4 P1
N1 G90 G0 X5.Y5.
N2 G90 G1 Y20.F500
D740PB0107
26-62
C.
26
Workpiece setup
error correction ON
D740PB0108
26-63
26
6.
Code
Positioning
G00
Linear interpolation
G01
Dwell
G04
G05
Exact-stop
G09
G10/G11
Plane selection
G17/G18/G19
G28/G30
G40
G41.2/G42.2
Remarks
G41.4/G42.4
G41.5/G42.5
Tool length offset (+/)
G43/G44
G43.4/G43.5
G45/G46/G47/G48
G49
Scaling ON/OFF
G50/G51
G50.1/G51.1
G53
G53.1
G61.1
Cutting mode
G64
Macro call
G65/G66/G66.1/G67
Inclined-plane machining
G68.2
Fixed cycle
G71.1-G89/G280-G289
G69
G90
G91
G94
G95
G97
G98
G99
M98/M99
Feed function
M, S, T, B function
MSTB
Local variables, Common variables, Operation commands (arithmetic operations, trigonometric functions, square root, etc), Control
commands (IF GOTO , WHILE DO )
Macro instructions
Note:
Giving any other command than those enumerated above in the mode of workpiece
setup error correction will lead to an alarm (1814 ILLEGAL CMD IN G54.4 MODE).
26-64
B.
26
Code
Positioning
Linear interpolation
G01
G13.1
G15
Plane selection
G17/G18/G19
G20/G21
G23
G28/G30
G40
G40.1
G43/G44
G49
Scaling OFF
G50
G50.1
G52
G54-G59/G54.1
G54.2P0
G61.1
Cutting mode
G64
G67
G69
G80
G90
G91
G93
G94
G95
G97
G98
G99
Note:
Remarks
G00
Selecting the mode of workpiece setup error correction in a mode other than those
enumerated above will lead to an alarm (1815 CANNOT USE G54.4).
26-65
26
C.
Restrictions
1.
Be sure to enter the G54.4 command (for selection as well as for cancellation) independently. If a block of G54.4 should contain any other commands, an alarm is caused (1815
CANNOT USE G54.4).
2.
In the mode of workpiece setup error correction, system variables #5001 to #5116 for
reading positional information refer to the workpiece setup coordinate system, while system
variables #5021 to #5036 always denote the current position with respect to the machine
coordinate system.
3.
Resetting the NC-unit includes cancellation of the mode of workpiece setup error
correction.
4.
Tool radius compensation, tool length offset, tool tip point control, mirroring by G-code,
scaling, inclined-plane machining, and fixed cycle must be selected and cancelled within
the mode of workpiece setup error correction (between G54.4P_ and G54.4P0), as shown
in the example below for the use of tool radius compensation.
G54.4P2 (Workpiece setup error correction ON)
:
:
:
:
5.
Do not give any tool change command in the mode of workpiece setup error correction;
otherwise an alarm will be caused (1814 ILLEGAL CMD IN G54.4 MODE).
6.
Manual interruption is always performed on the basis of the machine coordinate system
(without any coordinate conversion). After manual interruption of workpiece setup error
correction (by or without using the TPS function) do not resume automatic operation
without returning the machine components concerned to the original positions on the
controlled axes; otherwise an alarm will be caused (184 ILLEGAL OPER IN G54.4
MODE).
7.
8.
Tool path check can only be performed on the basis of the original workpiece coordinate
system (without coordinate conversion taken into consideration).
9.
Tracing in the mode of workpiece setup error correction is displayed with reference to the
machine coordinate system.
10. Do not use corner chamfering or rounding commands in the mode of workpiece setup error
correction; otherwise an alarm will be caused (1814 ILLEGAL CMD IN G54.4 MODE).
11. Restarting operation from a block in the mode of workpiece setup error correction begins
with a movement to the accordingly corrected position and to the position without
correction, respectively, in the case of using the [RESTART] and the [RESTART 2
NONMODAL] menu function.
26-66
26
Related alarms
No.
Message
Description
Remedy
184
ILLEGAL OPER IN
G54.4 MODE
1813
1814
ILLEGAL CMD IN
G54.4 MODE
1815
The mode of workpiece setup error correction is not selectable under the current
modal conditions.
1820
ILLEGAL COMMD IN
G54.4
26-67
26
- NOTE -
26-68 E