Input Description

../_images/8a694931e38ae48a0a33139000eba54e

EN

Data_Type Default_Value Range Unit
BOOL FALSE TRUE/FALSE -

The input EN has to be driven in edge triggered mode.

The execution of the Function Block is started with a positive edge on the input EN.

In the first call it evaluates its inputs and creates a local copy of them. Afterwards it starts its internal algorithm. It may take several PLC task cycles until it is executed.

Once the execution is completed DONE and its other outputs are set. To start the Function Block again a new positive edge on the input EN has to be applied.

SLOT

Data_Type Default_Value Range Unit
BYTE - 1 … 6 -

The SLOT input selects the Communication Module serving the PROFINET IO-Device described by DEV_NAME. Valid values are 1…6, counting from right to left, starting with 1 as the first Communication Module left to the CPU.

For PM595 Processor Modules, internal PROFINET Communication Module with connector ETH3 is slot 5, ETH4 is slot 6.

DEV_NAME

Data_Type Default_Value Range Unit
STRING - - -

The input DEV_NAME describes the PROFINET IO Device to be queried. The string may have a maximum length of 240 characters, including the zero terminating char. In conjunction with the SLOT value this string selects the target IO Device of this request.

Valid values are (examples for the ABB devices, where the hash marks # are place holders for the address selected by the rotary switch at the front of the device):

ci501-pn-##

ci502-pn-##

DEV_API

Data_Type Default_Value Range Unit
WORD - - -

Input DEV_API specifies the Application Process Identifier of the AP to which the data block belongs.

DEV_SLOT

Data_Type Default_Value Range Unit
WORD - - -

The output DEV_SLOT provides the device slot which sent the alarm.

DEV_SUB_SLOT

Data_Type Default_Value Range Unit
WORD - - -

The output DEV_SUB_SLOT provides the device sub slot which sent the alarm.

DEV_IDX

Data_Type Default_Value Range Unit
WORD - - -

Input DEV_IDX specifies the number of the index within the sub slot, the data of which shall be read.

DATA

Data_Type Default_Value Range Unit
BYTE - - -

Input DATA specifies via the ADR address operator the address of the variable where the received data block shall be stored. The size of the variable must be big enough to store the complete data block (e.g. BYTE array). And the format (BYTE, WORD etc.) of the data must be considered.

DATA_MAX

Data_Type Default_Value Range Unit
WORD - 1-1024 -

Input DATA_MAX specifies the length of the data block to be read. Valid values are 1..1024.