Siemens Simatic S5 IP 240 Manual page 304

Counter/positioning/position decoder module
Hide thumbs Also See for Simatic S5 IP 240:
Table of Contents

Advertisement

Direct Data Interchange with the IP 240
The flowchart shown below illustrates the communication procedure for "Write data to the
IP 240"
no
yes
yes
load KH 80, combine with OW,
write resulting job number to the
11-8
Start
Disable interrupts and start
200 µs delay timer
Waiting time expired?
yes
Read status register
AFRT=1?
no
DFRT=0?
no
Write job number 40
Read status register
AFRT=0?
no
IDLE=1?
no
ERR=1?
no
Load new job number,
IP 240
Write data
Write job number
1
Fig. 11-2. Flowchart for "Write Data to the IP 240"
yes
Old job terminated?
3
Reset communication.
H
Channel not yet configured?
yes
If not, generate error message in
STEP 5 program.
yes
Has error message been genera-
2
ted?
Read error message from IP 240.
Load new job number, set high-
order bit to "1" and write to
IP 240's job request register.
Write data to the IP 240.
Reload job number and write to
IP 240.
IP 240
EWA 4NEB 811 6120-02a

Advertisement

Table of Contents
loading

Table of Contents