EasyManuals Logo
Home>Siemens>Computer Hardware>SIMATIC NET CP 243-1

Siemens SIMATIC NET CP 243-1 User Manual

Siemens SIMATIC NET CP 243-1
82 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #73 background imageLoading...
Page #73 background image
09/02 Example
CP 243-1
J31069-D0428-U001-A1-7618
69
NETWORK 4
The local S7-200 station sends data from the VB200 (data length of 5 Byte) on the
Ethernet connection to another S7-200 station. There the data are stored in
VB200.
The read/write command only takes place after a positive edge at the "START" pa-
rameter, if the "Done" bit of any preceding read command is set. The "Done" bit is
carried over in the "ch0_done_read" variable. The outputs of the read and write
command are linked in such a manner, that only one command per channel can be
processed at any one time. Thus, a new command is only initiated after the pre-
ceding command is finished.
The "Chan_ID" parameter specifies the number of the channel through which the
data access is to take place. In the present case, this would be the channel with
the number 0. The "Data" parameter specifies the number of the channel-specific
data block. A command that has been initiated can be aborted using the "Abort"
parameter. To do so, the M7.0 flag must be set. In this example, this flag also acts
on the read command from Network 5.
After flag M7.0 is cleared, read/write commands are again issued since the “Done”
bit is always set along with the “Error” bit after a command is aborted.
Applying special flag SM0.0 ensures that the ETH0_XFR subroutine is always en-
abled.
As soon as the write command is finished, a 1 is returned in the “Done” return pa-
rameter. Any errors that occurred are returned by the "Error" parameter. Otherwise,
a 0 is returned in this parameter.
LD Always_On
= L60.0
LD ch0_done_read
EU
U ch0_ready
LD start
EU
OLD
= L63.7
LD L60.0
CALL ETH0_XFR, L63.7, Connection0_0, Write_1,
Connection_abort, ch0_done_write, ch0_error_write
Symbol Address Comment
Always_On
SM0.0 Always 1 for system-related reasons
ch0_done_read
M5.0 Done bit of the read command
ch0_done_write
M5.1 Done bit of the write command
ch0_error_write
MB14 Error flag of channel 0, "write" command
ch0_ready
M1.0 Bit for channel 0 in CH_READY return value of the ETH0_CTRL
subroutine
Connection0_0
VB166

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC NET CP 243-1 and is the answer not in the manual?

Siemens SIMATIC NET CP 243-1 Specifications

General IconGeneral
BrandSiemens
ModelSIMATIC NET CP 243-1
CategoryComputer Hardware
LanguageEnglish

Related product manuals