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
EN
BOOL
Enable
ID
DWORD
Identifier of a slot or subslot of a Field Device
OFFSET
INT
Count of the first byte within the IO data object
LEN
INT
Length of the data to read
INPUTS
POINTER TO BYTE
Requested subset of the input data
Output
ENO
BOOL
Flag indication received data OK
STATUS
DWORD
Last detected status
ERROR
BOOL
Flag indication an error