Parameters For Specifying A Cpu Data Area (Input Parameters); Status Information (Output Parameters) - Siemens NCM S7 Manual

Simatic net ncm for industrial ethernet
Table of Contents

Advertisement

5.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/.
5.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 complete restart 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
/AG_LSEND
SIMATIC NET NCM S7 for Industrial Ethernet
C79000-G8976-C129–06
Programming FCs (Functions) and FBs for S7 Ethernet CPs
for AG_RECV / AG_LRECV or 8181
H
for AG_SEND
H
147

Advertisement

Table of Contents
loading

Table of Contents