Siemens NCM S7 Manual De Usuario

Descargar
Página de 255
Programming FCs (Functions) and FBs for S7 Ethernet CPs
169
SIMATIC NET NCM S7 for Industrial Ethernet
Release 6/2003
C79000–G8976–C129–07
6.2.2
Parameters for Specifying a CPU Data Area (input parameters)
Specifying the Data Area on the CPU
When you call an FC, you transfer the address and length of the data area on the
CPU in which the user data are available or will be stored or which can contain
further parameter information.
The ANY pointer data type is used to address this area. For more detailed
information on this data type, refer to the STEP 7 online help under the topic
“Format of the Parameter Type ANY”. You will also find a detailed description of
the ANY point in /21/.
6.2.3
Status Information (output parameters)
For status evaluation, the following parameters must be evaluated in the user
program:
S
DONE or NDR
These parameters (DONE with send jobs and NDR with receive jobs) signal
(successful) completion of the job.
S
ERROR
This indicates that the job could not be executed error-free.
S
STATUS
This parameter supplies detailed information about the execution of the job.
Status codes can be returned during execution of the job (DONE=0 and
ERROR=0).
Evaluating Status Codes
Remember that the status codes DONE, NDR, ERROR, STATUS are updated at
each block call.
Status Codes during CP Startup
With a startup or restart of the Ethernet CP (after activating a switch on the
module), the output parameters of the FC are reset as follows:
S
DONE = 0
S
NDR = 0
S
ERROR = 0
S
STATUS = 8180
H
 for AG_RECV / AG_LRECV or 8181
for AG_SEND
/AG_LSEND