AnalogIO - Functional Description
Type: |
Function block |
Available as of: |
V2.0.3.0 |
The function block AnalogIO provides information about the analog I/O avatar with two inputs and one output.
Input |
Data type |
Description |
---|---|---|
iq_TeSysIslandRef |
FB_TeSys_island |
Reference to the TeSys island device. |
i_sAvatarName |
Reference to the avatar defined in the TeSys island configuration. |
|
i_xEnable |
BOOL |
A rising edge at the input i_xEnable starts the cyclic data exchange between the function block and the selected avatar. As long as i_xEnable is TRUE the cyclic data is exchanged every controller cycle. A falling edge at the input i_xEnable stops the data exchange. Refer to Behavior of the Function Blocks with the Input i_xEnable. |
i_iAQ0 |
INT |
Value to be written to analog output 0. Unit and scaling depends on the analog output type configured. oType 0 (Unit: mV) oType 1 (Unit: mV) oType 2 (Unit: μA) oType 3 (Unit: μA) |
Output |
Data type |
Description |
---|---|---|
q_xActive |
BOOL |
If the function block is active, this output is set to TRUE. |
q_xError |
BOOL |
If this output is set to TRUE, an error has been detected. For details, refer to q_etResult and q_etResultMsg. |
q_etResult |
Provides diagnostic and status information as a numeric value. |
|
q_sResultMsg |
STRING[30] |
Provides additional diagnostic and status information as a text message. |
q_xReady |
BOOL |
Indicates TRUE if the function block is ready to receive an execute command. |
q_iAI0 |
INT |
Indicates the value read from the analog input 0. Unit and scaling depends on the analog input type configured. oType 0 to 12 (Unit: 0.1 deg C) oType 13 (Unit: mV) oType 14 (Unit: mV) oType 15 (Unit: μA) oType 16 (Unit: μA) |
q_iAI1 |
INT |
Indicates the value read from the analog input 1. Unit and scaling depends on the analog output type configured. oType 0 to 12 (Unit: 0.1 deg C) oType 13 (Unit: mV) oType 14 (Unit: mV) oType 15 (Unit: μA) oType 16 (Unit: μA) |