Read value
When calling the function block, the variable value is read at the offset specified and deployed to the output that corresponds to the specified data type code. For further processing, the index of the output is indicated by the current value at output "ValIdx". A ValIdx –1 indicates that no output could be assigned. ValIdx = 0 indicates a bit value, ValIdx = 1 indicates a byte value etc.
Signals
Name | I/O | Type(s) | Function |
---|---|---|---|
DTypeC | I | UCHAR | Data type code |
IOffset | I | WORD | Output Offset |
BitVal | O | BIT | Bit - value |
ByteVal | O | UCHAR | Word - value |
WVal | O | WORD | Word - value |
LVal | O | LONG | Long - value |
LLVal | O | LONGLONG | Long Int - value |
FVal | O | FLOAT | Float - value |
DVal | O | DOUBLE | Double - value |
ValIdx | O | WORD | Corresponding output |
Comments
This function block is intended to be used as list element, f.e. with the function blocks "list of module variables" or "List of System Variables".