Ethx_Xfr; Table 10: Return Parameters (Ethx_Cfg) - Siemens SIMATIC NET CP 243-1 Technical Manual

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

Advertisement

Programming
Return parameters:
Name
Done
Error

Table 10: Return parameters (ETHx_CFG)

5.3

ETHx_XFR

By calling up the ETHx_XFR subroutine, you induce CP 243-1 to transfer data to
another S7 system or to query data from such a system. The type of data access
performed by your CP 243-1 is specified during configuration. Thus, you define the
following parameters during configuration:
• which data you would like to access.
• whether you would like to read or write these data.
• from which communication partner you would like to retrieve these data or to
which communication partner you would like to hand over these data.
When you call up the ETHx_XFR subroutine, you then specify which of the data
accesses configured for the client channels you would like to execute by calling up
the subroutine call.
The ETHx_XFR subroutine is only generated by the Ethernet Wizard in STEP 7
Micro/WIN 32 if you have configured at least one of the CP 243-1 channels as a
client. Only then can you bring about data accesses via a CP 243-1from an S7-200
user program.
Only one ETHx_XFR subroutine can be active per channel at any one time. Sev-
eral data accesses in parallel on one channel is not possible. Therefore, it is rec-
ommended that you link the "START" input with both the Done return value of the
ETHx_XFR subroutine and the corresponding bit of the CH_Ready return value of
the ETHx_CTRL subroutine.
54
Type
BOOL
Status of the subroutine call
0:
1:
BYTE
Error code
16#00: No error occurred
sonst: Error (description: see Chapter 6.2)
Meaning
Subroutine not yet executed
Subroutine executed and thus ready for
next execution
J31069-D0428-U001-A1-7618
09/02
CP 243-1

Advertisement

Table of Contents
loading

Table of Contents