
Manual VIPA CPU 21x
Chapter 7 Deployment of the CPU 21xDP
HB103E - Rev. 05/45
7-31
The application program in the CPU 214DPM 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 MB 0, 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 214DPM is completed. The
Profibus communication has also been defined for both sides.
Transfer your project into the CPU 214DPM via MPI by means of the
PLC
-
functions.
Application
program in the
CPU 214DPM
Содержание CPU 21 Series
Страница 1: ...Manual VIPA CPU 21x Order No VIPA HB103E Rev 05 45 ...
Страница 2: ...Lerrzeichen ...
Страница 6: ...About this Manual Manual VIPA CPU 21x Subject to change to cater for technical progress ...
Страница 10: ...Contents Manual VIPA CPU 21x iv HB103E Rev 05 45 ...
Страница 30: ...Chapter 1 Principles Manual VIPA CPU 21x 1 18 HB103E Rev 05 45 ...
Страница 58: ...Chapter 2 Hardware description Manual VIPA CPU 21x 2 28 HB103E Rev 05 45 ...
Страница 80: ...Chapter 3 Deployment CPU 21x Manual VIPA CPU 21x 3 22 HB103E Rev 05 45 ...
Страница 178: ...Chapter 5 Deployment CPU 21x 2BT02 with H1 TCP IP Manual VIPA CPU 21x 5 48 HB103E Rev 05 45 ...