Siemens CP 243-1 Operating Instructions Manual page 132

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

Advertisement

Sample program
Symbol
Always_On
ch_ready
cp_error
cp_ready
ETH0_CTRL
NETWORK 2
As soon as channel 0 is ready for the transfer and "ch0_ready" is set, the "start" variable is
set. This may take several cycles.
LD ch0_ready
Sstart, 1
Symbol
ch0_ready
start
NETWORK 3
For an S7-200, the "First_Scan_ON" bit is only set in the first cycle for system-related
reasons. This resets the "start" variable. This is necessary so that the "start" variable always
generates a signal edge for the start of the ETHx_XFR subroutine, even when the CPU
starts and stops repeatedly.
LD First_Scan_On
Rstart, 1
Symbol
First_Scan_On
start
NETWORK 4
The local S7-200 station sends data from VB500 (data length of 5 bytes) via the Ethernet
connection to another S7-200 station. There the data is stored starting at VB500.
132
Address
SM0.0
MW8
MW2
M0.0
SBR1
Address
M8.0
M4.0
Address
SM0.1
M4.0
Comment
Due the system, always 1
This POU was generated by the
Ethernet wizard for use with CP 243-1
Comment
Bit for channel 0 in the CH_READY
return value of the ETH0_CTRL
subroutine
Flip flop for automatic start of the data
transfer
Comment
Due to the system, 1 in the first cycle,
otherwise always 0
Flip flop for automatic start of the data
transfer
Operating Instructions, 03/2012, C79000-G8976-C244-02
CP 243-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents