Siemens SIMATIC NET S7-300 Manual page 220

Cps for industrial ethernet
Hide thumbs Also See for SIMATIC NET S7-300:
Table of Contents

Advertisement

7 Programming FCs (Functions) and FBs for S7 Ethernet CPs
FC10 AG_CNTRL - continued
Commands and Evaluating the Job Results
The following table shows you the possible commands and the results that can be
evaluated in the RESULT1/2 parameters.
Table 7-7
Commands to FC AG_CNTRL
CMD
0
NOP – no operation
The block executes without a job being sent to the CP.
RESULT (for CMD = 0)
Parameter
RESULT1
RESULT2
CMD
1
CN_STATUS – connection status
This command returns the status of the connection selected with the ID.
The CP is selected in the LADDR parameter.
If bit 15 (reset ID) is set, this is automatically reset (this action corresponds to the
CN_CLEAR_RESET job - see CMD = 5).
Parameter
RESULT1
A -220
Hex value/range
0000 0001
H
0000 0000
H
RESULT (for CMD = 1)
Hex value/range
0000 000*
H
Bit 0
0
1
Bit 1
0
1
Bits 2+3
00
01
10
Meaning
Meaning
Executed without error
Default
Meaning
Bit/valu
e
Bits 0 -3: Codes for the send direction
(excluded values: 0x2)
Connection Type
S
No send and receive connection
S
Connection reserved for send and
receive jobs
Status of current job
S
No send job being executed
S
Send job being executed
Previous job:
S
No information available on previous
send job
S
Previous send job completed
successfully
S
Previous send job not completed
successfully
S7-CPs for Industrial Ethernet Configuring and Commissioning
Meaning
Release 01/2007
C79000-G8976-C182-07

Advertisement

Table of Contents
loading

Table of Contents