GETIO_PART (FB)
FUNCTION_BLOCK GETIO_PART
The GETIO_PART function block gets a subset of the input data associated to a slot or subslot of a Field Device. The input data are addressed within the slot or subslot through OFFSET and LEN parameters. The GETIO_PART function block gets the input data from the Host Controller interface out of the cyclically read input data of the Field Device. The function block is invoked by a 1 of the EN input.
If the input data are valid, the ENO output is set to 1, the ERROR output is set to 0, and the input data are stored in the variable given at the INPUTS parameter. The variable passed to the INPUTS parameter shall be of appropriate size to receive the input data.
Never use GETIO-/SETIO_PART FBs concurrently with %I/%Q-Input/Output-Mapping for the same slot/subslot !
- InOut:
Scope
Name
Type
Comment
Input
ENBOOLEnable
IDDWORDIdentifier of a slot or subslot of a Field Device
OFFSETINTCount of the first byte within the IO data object
LENINTLength of the data to read
INPUTSPOINTER TO BYTE
Requested subset of the input data
Output
ENOBOOLFlag indication received data OK
STATUSDWORDLast detected status
ERRORBOOLFlag indication an error