Specifications

SIMATIC Instructions
9-69
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
IN
MOV_D
OUT
VD521
EN
IN
100
MOV_W
OUT
EN
VD513
INT2
ATCH
EN
EVNT19
PLS
EN
QO.X0
LAD
ENI
Network 1
ENO
ENO
ENO
ENO
Define interrupt routine 2 to
process PTO complete
interrupts.
Global interrupt enable.
Invoke PTO operation
PLS 0 => Q0.0.
IN
100
MOV_W
OUT
VW509
EN ENO
IN
0
MOV_W
OUT
VW511
EN ENO
IN3400
MOV_D
OUT
EN ENO
VW517
IN
1
MOV_W
OUT
EN
ENO
VW519
400
Set the initial cycle time for
segment #2 to 100 µs.
Set the delta cycle time for
segment #2 to 0 µs.
Set the number of pulses
in segment #2 to 3400.
Set the initial cycle time for
segment #3 to 100 µs.
Set the delta cycle time for
segment #3 to 1.
Set the number of pulses
in segment #3 to 400.
INTERRUPT 2
Q0.5
SM0.0
Turn on output Q0.5 when
PTO output profile is complete.
STL
Network 1
LD SM0.0
= Q0.5
Network 1
MOVW 100, VW509
MOVW 0, VW511
MOVD 3400, VD513
MOVW 100, VW517
MOVW 1, VW519
MOVD 400, VD521
ATCH 2, 19
ENI
PLS 0
Figure 9-74 Example of Pulse Train Output Using Multiple Segment Operation (continued)