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