Output Description

../_images/828593b2e38ae4d80a33139000eba54e1

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

MST_STATE

Data_Type Default_Value Range Unit
PNIO_MST_STATE_TYPE - - -

The MST_STATE output reflects the major state of the PROFINET Communication Module. This value is valid with DONE=TRUE and ERR=FALSE.

The MST_STATE is displayed in plain text with aid of the enumeration PNIO_MST_STATE_TYPE.

PNIO_MST_STATE_UNKOWN Unknown state
PNIO_MST_STATE_NOT_CONFIGURED Pre-configuration
PNIO_MST_STATE_STOP Configured but not running
PNIO_MST_STATE_IDLE Idle
PNIO_MST_STATE_OPERATE All up, normal operational state

COMM_ERNO

Data_Type Default_Value Range Unit
PNIO_COMM_ERNO_TYPE - - -

The COMM_ERNO output value represents the current PROFINET bus condition. A transition of this output with DONE=TRUE to a non-zero-value signals a communication error caused by one of the reasons listed in the table below.

The COMM_ERNO is displayed in plain text with aid of the enumeration PNIO_COMM_ERNO_TYPE.

PNIO_COMM_ERNO_NONE No error
PNIO_CONIFGURATION_FAULT Configuration fault
PNIO_PARAMETER_ERROR Parameter error
PNIO_INV_NETWORK_ERROR Invalid network address
PNIO_NETWORK_FAULT Network fault
PNIO_CONNECTION_CLOSED Connection closed
PNIO_CONNECTION_TIMEOUT Connection timeout
PNIO_LONELY_NETWORK Lonely network
PNIO_DUBLICATE_NODE Duplicate node
PNIO_CABLE_DISCONNECTED Cable disconnected
PNIO_COMM_ERNO_UNKNOWN Unknown communication error

NUM_ERRS

Data_Type Default_Value Range Unit
DWORD - - -

The total number of errors detected by the Communication Module since last power up or reset.