Manual VIPA System 200V
Chapter 3 Profibus DP
HB97E - IM - Rev. 06/29
3-97
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
Содержание System 200V IM Series
Страница 1: ...Manual VIPA System 200V IM Order No VIPA HB97E_IM Rev 06 29...
Страница 2: ...Lerrzeichen...
Страница 6: ...About this manual Manual VIPA System 200V Subject to change to cater for technical progress...
Страница 10: ...Contents Manual VIPA System 200V iv HB97E IM Rev 06 29...
Страница 18: ...Chapter 1 Basics Manual VIPA System 200V 1 6 HB97E IM Rev 06 29...
Страница 136: ...Chapter 3 Profibus DP Manual VIPA System 200V 3 104 HB97E IM Rev 06 29...
Страница 338: ...Chapter 8 Ethernet coupler Manual VIPA System 200V 8 34 HB97E IM Rev 06 29...
Страница 344: ...Chapter 9 Bus expansion modules IM 260 IM 261 Manual VIPA System 200V 9 6 HB97E IM Rev 06 29...