Ethx_Ctrl - Siemens CP 243-1 Operating Instructions Manual

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

Advertisement

Programming

4.1 ETHx_CTRL

4.1
ETHx_CTRL
The ETHx_CTRL subroutine is used to initialize and monitor the CP 243-1. Call this
subroutine in your S7-200 user program at the beginning of every cycle if you want to utilize
the functions of a CP 243-1. If the CRC check is enabled, calling the subroutine initiates a
restart of the CP 243-1 if a change is detected in the configuration data by the CP 243-1. If,
on the other hand, the CRC check is disabled, there is always a restart of the CP 243-1 after
the download of the user program or a new configuration from STEP 7 Micro/WIN 32 to the
S7-200-CPU and the restart on the S7-200 CPU.
The return values contain information on the general status of the CP 243-1, the status of up
to eight possible S7 communication channels and the status of the IT services.
If an error occurs on the CP 243-1, you can read out the error or message code with the
Error return parameter. This code is available for a maximum of 60 seconds. The CP 243-1
assumes that, during this time, the S7-200 user program has evaluated the error or message
code and sets the Error return parameter back to 0 after 60 seconds. This routine prevents
outdated error or message codes of the CP 243-1 from being returned via the Error
parameter over a long period of time.
The subroutine ETHx_CTRL is always created by the Internet wizard of STEP 7 Micro/WIN
32 as soon as the configuration CP 243-1 is completed.
Call
Figure 4-1
Input parameters
Name
-
Input parameters (ETHx_CTRL)
94
E T H x_C T R L
A lw ays_O n
E N
C P _R eady
C H _R eady
Calling the ETHx_CTRL subroutine
Type
-
C P _ R E A D Y
C H _ R E A D Y
E rror
E R R
Operating Instructions, 03/2012, C79000-G8976-C244-02
Meaning
-
CP 243-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents