Chapter 6 Deployment of the CPU 821xDP
CPU ADAM 821x
6-30
ADAM 8000 Manual CPU 821x – Rev 1.1
The application program in the CPU 8214DPM has two tasks that are
handled by two OBs:
•
to test communications by means of the control byte.
Load the input byte from Profibus and transfer the value to the output
module.
OB 1 (cyclic call)
L B#16#FF
T AB 20
Control byte for Slave-CPU
L B#16#FE
Load control value 0xFE
L EB 10
Was the control byte transferred
<>I
correctly from the slave CPU?
BEB
No -> End
-------------------------------
Data exchange via Profibus
L EB 11
Load input byte 11 (output data
of the CPU214DP) and
T AB 0
transfer to output byte 0
BE
•
Read counter value from MB0, decrement, save in MB0 and put it out to
CPU 214DP via Profibus.
OB 35 (timer-OB)
L MB 0
Counter from 0xFF to 0x00
L 1
-I
T MB 0
T AB 21
Transfer into output byte 21
(input data of CPU214DP)
BE
At this point the programming of the CPU 8214DPM is completed. The
Profibus communication has also been defined for both sides.
Transfer your project into the CPU 8214DPM via MPI by means of the
PLC
-
functions.
Application
program in the
CPU 8214DPM