Example 4: Single-axis multi-segment motion
1.
Set up the positioning planning table as shown below.
2.
When M0 is ON, Y0.0 outputs No.1 to No. 3 consecutively. After the ouptput is done, M100 is ON.
1.
Stop flag and immediately stop flag
a)
The following graphic shows the output diagram based on example 4.
b)
Ramp-down stop
When M0 is ON, the TPO instruction is executed and starts to output No. 1 segment.
When the stop flag SM463 is ON during the output of No.2 segment, the state of the immediately
stop flag SM476 is confirmed.
If the immediately stop flag SM476 is OFF, the output ramps down to stop, according to the SR465 ramp-
down time in axis 1, till the it drops to the lowest 1000 Hz frequency.
Output at the lowest 100Hz freuency and till the No. 2 output is complete and stopped. (pulse = 600 K)
⑤ After the stop flag SM463 switches to OFF, the execution of TPO instruciton starts outputting No.3
segment till the output is complete. (pulse = 1200 K)
Ramp-down stop
Cha p ter 6 App l ied Ins truc tio ns
Immediately stop
6_
6 - 9 7 1