Siemens Simatic S7-200 System Manual page 151

Hide thumbs Also See for Simatic S7-200:
Table of Contents

Advertisement

Example: Multiple-Segment Pulse Train Operation (PTO) , continued
S
B
R
0
c
o
n
t
i
n
u
e
d
I
N
T
0
Network 2
//1. Set up the control byte:
//
– Select PTO operation
//
– Select multiple segment operation
//
– Select ms increments
//
– Enable the PTO function
//2. Set the start address of the profile table to V500.
//3. Define interrupt routine 0 to be the interrupt
//
for processing PTO complete interrupts.
//4. Global interrupt enable
//5. Invoke PTO operation, PLS0 => Q0.0.
LD
SM0.0
MOVB
16#A8, SMB67
MOVW
+500, SMW168
ATCH
INT_0, 19
ENI
PLS
0
Network 1
//When the PTO output profile is complete,
//Turn on output Q0.5
LD
SM0.0
=
Q0.5
S7-200 Instruction Set
Chapter 6
6
139

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents