04.97
Programming of Traversing Blocks
4.11.6.3 Output of M-functions after positioning
The traversing movement takes place when the execution of the traversing block is enabled.
The M-output takes place after the traversing movement.
Programming:
N10 G76 X100.000 M1=9
N20 X200.000
N30 M1=10
N40 X300.000 M1=11
N10
N20
N30
N40
V
x
M
t
t
M9
Moment of execution
enable for the next
traversing block
M10
M11
N10:
Upon start, the traversing movement takes place. When "digital 0" is reached, M9 is
output. If G60 (exact stop) has been programmed, M9 will only be output when the
PEH window is reached. If G66/G67 (loop-over window 1/2) has been programmed,
the output will be effected in the loop-over window 1/2 when "digital 0" has already
been reached.
N20:
Traversing movement only.
N30:
As only one M-function has been programmed in block N30, the block change N20
➯
N30 takes place at "digital 0" of N20.
N40:
After the traversing movement, M11 is output.
If several axes have been programmed in the traversing block, the M-function will be output
when all axes have reached "digital 0" or when the PEH window (with G60) or the loop-over
window (with G66/G67) has been reached.
The output or further processing of M-functions in the SIMATIC-S5
controller also influences the cycle time of the S5-program. This can be
avoided by using the fast outputs and programming the M-functions M97
and M98.
©
Siemens AG 1997 All Rights Reserved 6ZB5 440-0VU02
4 – 33
WF 723 C (Programming Guide)