Adam 821x Manual page 148

Table of Contents

Advertisement

CPU ADAM 821x
Application
program in the
CPU 8214DP
ADAM 8000 Manual CPU 821x – Rev 1.1
As shown above, the application program in the CPU has two tasks that are
handled by two OBs:
• Load the input byte from the Profibus slave and transfer the value to the
output module.
OB 1 (cyclic call)
L
PEW 100
T
MW 100
UN
M
100.5
BEB
U
M
101.4
BEB
L
B#16#FF
L
PEB
30
<>I
BEB
L
B#16#FE
T
PAB
40
L
PEB
31
T
AB
0
BE
• Read counter value from MB0, increment, save into MB0 and put it out
to CPU 821x via Profibus.
OB 35 (timer-OB)
L
MB
0
L
1
+I
T
MB
0
T
PAB
41
BE
Chapter 6 Deployment of the CPU 821xDP
Load status data and save in
flag word
Commissioning by the DP master
occurred? No -> End
Valid receive data?
No -> End
Load control value and compare
to control byte
(1st input byte)
Received data does not contain
valid values
Control byte for master-CPU
-------------------------------
Data exchange via Profibus
Load peripheral byte 31 (input
data from Profibus slave) and
transfer into output byte 0
Counter from 0x00 to 0xFF
Transfer counter value into
peripheral byte 41 (output data
of the Profibus slave)
6-31

Advertisement

Table of Contents
loading

Table of Contents