-Shenzhen Guanhong Automation Co.,Ltd.-
SZGH-CNC1000MDb Series
- 33 -
3.9 Skip Function(G31,G311)
Linear interpolation can be commanded by specifying axial move following the G31 command,
like G01. If an external skip signal is input during the execution of this command, execution of the
command is interrupted and the next block is executed.
The skip function is used when the end of machining is not programmed but specified with a
signal from the machine, for example, in grinding. It is used also for measuring the dimensions of a
workpiece.
For details of how to use this function, refer to the manual supplied by the
machine tool builder.
Format: G31 IP_ P_
;
G311 IP_ P_ ;
G31&G311 are One-shot G code.(It is effective only in the block in which
it is specified).
IP_: coordinate value ;
P_ : Specify jumping line number & detecting if input point is valid;
P(a)(b)(c)
a: Jumping line number specified by “ N**” ;when missed, stop running current line, and jump
to next block and run;
b: 10 or 20 ; 10 means that when input point is valid, skip to specified line, when input point is
invalid, don’t skip, keep on running or alarm hint; 20 means that when input point is invalid, skip
to specified line ; when input point is valid, don’t skip , keep on running or alarm hint;
c: Specify detecting input point. address of input point, X00~X39
P 56 10 24
when Input point X24 is valid, stop running current
a
b
c
line, jump to N56 block and run.
Difference between G31 & G311: When system don’t detect signal of specified input point,
G31 don’t hint alarm & keep on running program; G311 will hint that don’t input is valid & stop
running, after Press “Enter”, it will go on run program ;
The coordinate values when the skip signal is turned on can be used in a custom macro
because they are stored in the custom macro system variable as follows:
#5021 X axis coordinate value
#5022 Third axis (Cs axis) coordinate value
#5023 Z axis coordinate value
#5024 4th axis (A axis) coordinate value
Example: G31 X50 Z100 F100 P
33
1022 ;if X22 is valid then go to
N33
(line no.).
G311 X50 Z100 F100 P2021 ;if X21 is invalid then go to next line.Valid-Alarm.
Содержание SZGH-CNC1000MDb Series
Страница 220: ...Shenzhen Guanhong Automation Co Ltd SZGH CNC1000MDb Series 207 Appendix I Wiring Diagram of CN3 Plug...
Страница 221: ...Shenzhen Guanhong Automation Co Ltd SZGH CNC1000MDb Series 208 Appendix II Wiring Diagram of CN10 Plug...
Страница 222: ...Shenzhen Guanhong Automation Co Ltd SZGH CNC1000MDb Series 209 Appendix III Wiring Diagram of CN4 Plug...