Siemens SIMATIC NET CP 243-1 Technical Manual page 74

Communications processor for industrial ethernet
Hide thumbs Also See for SIMATIC NET CP 243-1:
Table of Contents

Advertisement

Example
Symbol
Connection_abort
ETH0_XFR
start
Write_1
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
Always_On
ch0_done_read
ch0_done_write
ch0_error_read
ch0_ready
Connection0_0
Connection_abort
ETH0_XFR
Read_1
70
Address
M7.0
Transmission is aborted
SBR2
This POU was generated by the Ethernet Wizard for use with
CP243-1
M4.0
Flip-flop for automatic start of the data transmission
VB167
Address
SM0.0
Always 1 for system-related reasons
M5.0
Done bit of read command
M5.1
Done bit of write command
MB6
Error flag of channel 0, "read" command
M1.0
Bit for channel 0 in CH_READY return value of the ETH0_CTRL
subroutine
VB166
M7.0
Transmission is aborted
SBR2
This POU was generated by the Ethernet Wizard for use with
CP243-1
VB168
Comment
Comment
J31069-D0428-U001-A1-7618
09/02
CP 243-1

Advertisement

Table of Contents
loading

Table of Contents