Manual VIPA System 200V Chapter 3 Deployment IM 253DP
HB97E - IM - RE_253-xDPxx - Rev. 12/44 3-59
Like shown above, the user application has 2 tasks, shared between two
OBs:
• Load the input byte from the PROFIBUS slave and monitor the value at
the output module.
OB 1 (cyclic call)
L PIW 1020 load status data and store it
T MW 100 in the bit memory word
AN M 100.5 commissioning by DP master
BEC successful? no -> End
A M 101.4 receive data valid?
BEC no -> End
L B#16#FF load control value and compare with
L PIB 30 control byte (1
st
input byte)
<>I
BEC receive data not valid
L B#16#FE control byte for Master-CPU
T PQB 40
-------------------------------
Data transfer via PROFIBUS
L PIB 31 load periphery byte 31 (input
data from PROFIBUS slave) and
T IB 0 transfer into output byte 0
BE
• Read counter value from MB 0, increment it, store it in MB 0 and transfer
it via PROFIBUS to CPU 214.
OB 35 (Time-OB)
L MB 0 counter from 0x00 to 0xFF
L 1
+I
T MB 0
T PQB 41 Transfer counter value to
periphery byte 41 (Output data
of the PROFIBUS slave)
BE
Transfer your project with the hardware configuration into the CPU (see
Example 1) and execute the program.
As soon as the CPUs and DP master are in RUN, the counter values are
transferred via PROFIBUS and monitored at the according output module.
User application
in the CPU 214DP
Transfer project and
execute