Technical data

Table Of Contents
S7 Communication
System Software for S7-300/400 System and Standard Functions - Volume 2/2
A5E00739858-01
21-49
21.17 Querying the Connection Status with FC 62
"C_CNTRL"
Description
Query a connection status for S7-300 with FC 62 "C_CNTRL".
The current status of the communication that has been determined via ID is
queried after the system function has been called with value 1 at the control input
EN_R.
Parameters Declaration Data
Type
Memory Area Description
EN_R INPUT BOOL I, Q, M, D, L, const. Control parameter enabled to receive,
signals ready to receive if the input is set.
ID INPUT WORD M, D, const. Addressing parameter ID, see Common
Parameters of the SFBs/FBs and
SFCs/FCs for S7 Communication
RET_VAL OUTPUT INT I, Q, M, D, L Error information
ERROR
STATUS
OUTPUT
OUTPUT
BOOL
WORD
I, Q, M, D, L
I, Q, M, D, L
Status parameter ERROR and STATUS,
Error display:
ERROR=0 and STATUS have the
values:
0000H: Neither warning nor error
<> 0000H: Warning, STATUS
supplies detailed information.
ERROR=1
There is an error. STATUS supplies
detailed information on the type of
error.
C_CONN OUTPUT BOOL I, Q, M, D, L Status of the corresponding connection.
Possible values:
0: The connection was dropped or it
is not up.
1: The connection is up.
C_STATUS OUTPUT WORD I, Q, M, D, L Connection status:
W#16#0000: Connection is not
established
W#16#0001: Connection is being
established
W#16#0002: Connection is
established
W#16#000F: No data on connection
status available (such as at CP
startup)
W#16#00FF: Connection is not
configured