Output Description

../_images/b7c91f58e38ae2b60a33139000eba54e

DONE

Data_Type Default_Value Range Unit
BOOL - TRUE / FALSE -

Output DONE indicates the state of execution.

It has the value TRUE when the execution is finished and the outputs are valid. When DONE becomes FALSE other outputs are not valid any more.

ERR

Data_Type Default_Value Range Unit
BOOL - TRUE / FALSE -

Output ERR indicates whether an error occurred during Function Block execution.

It is only valid when DONE is TRUE. The kind of occurred error is specified by the error identifier at output ERNO.

ERNO

Data_Type Default_Value Range Unit
WORD - 0 … 65535 -

At output ERNO the identifier of an occurred error is provided. It is only valid when DONE and ERR is TRUE (see, error messages): Error Messages of the Function Block Libraries

FLAGS

Data_Type Default_Value Range Unit
DWORD - 0-11 Bit

The output FLAGS provides the status flags of the PROFINET IO Device chosen by DEV_NAME. The status flags are displayed in plain text with aid of the enumeration PNIO_DEV_DIAG_FLAGS_TYPE.

The individual bits have the following meaning:

Bit Description
0 The IO Device does not exist / The IO Device does not respond on DCP Ident requests
1 The IO Device is not ready
2 A configuration fault is existing for this IO Device (e. g. NameOfStation or IP is used more than once in one network)
3 The IO Device sends and invalid response (e. g. DCP Set IP was not successful)
4 A parameter fault is existing for this IO Device (e. g. wrong Module ID)
5 This IO Device is deactivated
6 Diagnosis data is existing for this IO Device
7 The IO Device sends a “Diagnosis disappeared” message
8 The diagnosis buffer of the Communication Module was too small for the diagnosis data sent by the IO Device
9 The diagnosis buffer of the Communication Module was overwritten by new diagnosis data of the IO Device before the old data was read out
10 The packet requesting diagnosis data is too small to carry the diagnosis data for this IO Device
11 The IO Device reported a ModuleDiffBlock during connection establishment

DATA_LEN

Data_Type Default_Value Range Unit
DWORD - - -

The output DATA_LEN provides the size of numbers / of bytes which were written to DATA.