Siemens CP 243-1 Operating Instructions Manual page 134

S7-200 industrial ethernet
Hide thumbs Also See for CP 243-1:
Table of Contents

Advertisement

Sample program
Symbol
ETH0_XFR
start
Write_1
NETWORK 5
The local S7-200 station now reads out data from VB500 of another S7-200 station and
stores this starting at VB500 of the local S7-200 station.
Before the read request is executed, the two variables "ch0_done_write" and "ch0_ready"
are evaluated to ensure, firstly, that the preceding write request is completed and, secondly,
that the status of channel 0 is "ready".
LDAlways_On
= L60.0
LDch0_done_write
EU
U ch0_ready
= L63.7
LDL60.0
CALLETH0_XFR, L63.7, Connection0_0, Read_1, Connection_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
Block of data for this configuration
//
//DATA BLOCK COMMENTS
//
//Press F1 for help and example data block
//
134
Address
SBR2
M4.0
VB234
Address
SM0.0
M5.0
M5.1
MB6
M8.0
VB233
M7.0
SBR2
VB235
Comment
This POU was generated by the
Ethernet wizard for use with CP 243-1
Flip flop for automatic start of the data
transfer
Comment
Due the system, always 1
Done bit of the read request
Done bit of the write request
Error memory bit of channel 0, "read"
request
Bit for channel 0 in the CH_READY
return value of the ETH0_CTRL
subroutine
Transfer aborted
This POU was generated by the
Ethernet wizard for use with CP 243-1
Operating Instructions, 03/2012, C79000-G8976-C244-02
CP 243-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents