Example 09/02
CP 243-1
70 J31069-D0428-U001-A1-7618
Symbol Address Comment
Connection_abort
M7.0 Transmission is aborted
ETH0_XFR
SBR2 This POU was generated by the Ethernet Wizard for use with
CP243-1
start
M4.0 Flip-flop for automatic start of the data transmission
Write_1
VB167
NETWORK 5
The local S7- 200 station now reads out data from the VB200 of another S7-200 station and
stores these in the VB200 of the local S7-200 station.
Before the read command is executed, the two variables, "ch0_done_write" and
"ch0_ready", are evaluated to ensure that, firstly, the preceding write command is finished
and, secondly, that the status of channel 0 is “ready”.
LD Always_On
= L60.0
LD ch0_done_write
EU
U ch0_ready
= L63.7
LD L60.0
CALL ETH0_XFR, L63.7, Connection0_0, Read_1, Connec-
tion_abort, ch0_done_read, ch0_error_read
Symbol Address Comment
Always_On
SM0.0 Always 1 for system-related reasons
ch0_done_read
M5.0 Done bit of read command
ch0_done_write
M5.1 Done bit of write command
ch0_error_read
MB6 Error flag of channel 0, "read" command
ch0_ready
M1.0 Bit for channel 0 in CH_READY return value of the ETH0_CTRL
subroutine
Connection0_0
VB166
Connection_abort
M7.0 Transmission is aborted
ETH0_XFR
SBR2 This POU was generated by the Ethernet Wizard for use with
CP243-1
Read_1
VB168