Adam 821x Manual page 147

Table of Contents

Advertisement

Chapter 6 Deployment of the CPU 821xDP
Application
program in the
CPU 8214DPM
6-30
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
L
B#16#FE
L
EB
10
<>I
BEB
L
EB
11
T
AB
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
L
1
-I
T
MB
0
T
AB
21
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.
Control byte for Slave-CPU
Load control value 0xFE
Was the control byte transferred
correctly from the slave CPU?
No -> End
-------------------------------
Data exchange via Profibus
Load input byte 11 (output data
of the CPU214DP) and
transfer to output byte 0
Counter from 0xFF to 0x00
Transfer into output byte 21
(input data of CPU214DP)
ADAM 8000 Manual CPU 821x – Rev 1.1
CPU ADAM 821x

Advertisement

Table of Contents
loading

Table of Contents