7 Programming FCs (Functions) and FBs for S7 Ethernet CPs
A-223
S7-CPs for Industrial Ethernet Configuring and Commissioning
Release 01/2007
C79000-G8976-C182-07
CMD Meaning
2 CN_RESET – connection reset
This command resets the connection selected with ID.
The CP is selected in the LADDR parameter.
Resetting the connection means that a connection is aborted and established again (active
or passive depending on the configuration).
An entry is also generated in the diagnostic buffer in which the job result can be found.
RESULT (for CMD = 2) Meaning
Parameter Hex value/range
RESULT1 0000 0001
H
The reset job was transferred to the CP
successfully.
The connection abort and subsequent
connection establishment were triggered.
0000 0002
H
The reset job could not be transferred to the CP
because the service has not started on the CP
(for example, CP in Stop).
RESULT2 0000 0000
H
Default
CMD Meaning
3 CN_STATUS_ALL – all connections status
This command returns the connection status of all connections (established/terminated) in
the RESULT1/2 parameters (at total of 8 bytes of group information).
The ID parameter must be set to “0” (checked for 0).
The CP is selected in the LADDR parameter.
When necessary, you can obtain detailed information about a terminated or unconfigured
connection using a further connection status call with CMD=1.
RESULT (for CMD = 3) Meaning
Parameter Hex value/range
RESULT1
****
****H
32 bits: Connection 1 - 32
0 – connection terminated / not configured
1 – connection established
RESULT2
****
****H
32 bits: Connection 33 - 64
0 – connection terminated / not configured
1 – connection established
FC10 AG_CNTRL - continued