Programming FCs (Functions) and FBs for S7 Ethernet CPs
147
SIMATIC NET NCM S7 for Industrial Ethernet
C79000-G8976-C129–06
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
H
for AG_RECV / AG_LRECV or 8181
H
for AG_SEND
/AG_LSEND
Содержание NCM S7
Страница 82: ...SEND RECEIVE Interface in the User Program 82 SIMATIC NET NCM S7 for Industrial Ethernet C79000 G8976 C129 06 ...
Страница 91: ...Configuring Communication Connections 91 SIMATIC NET NCM S7 for Industrial Ethernet C79000 G8976 C129 06 ...
Страница 196: ...Firmware Loader 196 SIMATIC NET NCM S7 for Industrial Ethernet C79000 G8976 C129 06 ...
Страница 210: ...Glossary 210 SIMATIC NET NCM S7 for Industrial Ethernet C79000 G8976 C129 06 ...
Страница 216: ...Linking to Other Systems with FETCH WRITE 216 SIMATIC NET NCM S7 for Industrial Ethernet C79000 G8976 C129 06 ...
Страница 218: ...Document History 222 SIMATIC NET NCM S7 for Industrial Ethernet C79000 G8976 C129 06 ...