Specifications
SIMATIC Instructions
9-68
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Example of Pulse Train Output Using Multiple Segment Operation
Network 1
LD SM0.1
R Q0.0, 1
CALL 0
IN16#AO
MOV_B
OUT SMB67
EN
SM0.0
IN
500
MOV_W
OUT SMW168
EN
IN3
MOV_B
OUT VB500
EN
Set up control byte:
- select PTO operation
- select multiple segment
operation
select µs increments
- enable the PTO function
LAD STL
SM0.1
On the first scan,
reset image
register bit low, and
call subroutine 0.
Q0.0
R
Network 1
Network 1
1
Network 1
LD SM0.0
MOVB 16#A0, SMB67
MOVW 500, SMW168
MOVB 3, VB500
MOVW 500, VW501
MOVW -2, VD503
MOVD 200, VD505
MAIN OB1
SUBROUTINE 0
SBR0
EN
ENO
ENO
ENO
MAIN OB1
IN
500
MOV_W
OUT
EN ENO
VW501
IN
-2
MOV_W
OUT
EN ENO
VW503
IN
200
MOV_D
OUT
EN ENO
VD505
Specify that the start address
of the profile table is V500.
Set number of profile
table segments to 3.
Set the initial cycle time for
segment #1 to 500 µs
Set the delta cycle time for
segment #1 to -2 µs
Set the number of pulses
in segment #1 to 200.
Figure 9-23 Example of a Pulse Train Output Using Multiple Segment Operation