This function block reads the value of an analog input.
Library name: GMC Independent Altivar
Namespace: GIATV
Input |
Data type |
Description |
---|---|---|
Enable |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. The input Enable starts or terminates execution of a function block. oFALSE: Execution of the function block is terminated. The outputs Valid, Busy, and Error are set to FALSE. oTRUE: The function block is being executed. The function block continues executing as long as the input Enable is set to TRUE. |
InputNumber |
UINT |
Default value: 1 ATV320: Value range: 1...3 o1: AI1 o2: AI2 o3: AI3 ATV340/ATV6••/ATV9••: Value range: 1...5 o1: AI1 o2: AI2 o3: AI3 o4: AI4 (with expansion card) o5: AI5 (with expansion card) |
Output |
Data type |
Description |
---|---|---|
Valid |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: Execution has not been started or an error has been detected. The values at the outputs are not valid. oTRUE: Execution has been completed without an error detected. The values at the outputs are valid and can be further processed. |
Busy |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: Function block is not being executed. oTRUE: Function block is being executed. |
Error |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: Execution of the function block is running, no error has been detected. oTRUE: An error has been detected in the execution of the function block. |
ErrorID |
WORD |
Returns the value of a diagnostic code. Refer to Library Diagnostic Codes. If the value is 0 and if the output Error of this function block is set to TRUE, then the diagnostic code can be read with the output AxisErrorID of the function block MC_ReadAxisError. |
Value |
INT |
Default value: 0 Corresponds to the input voltage in mV or the input current in 0.001 mA increments at the selected analog input. |
Input/Output |
Data type |
Description |
|
---|---|---|---|
Input |
Input_Ref |
Input is a special data type for digital and analog inputs (if available). The data type corresponds to the axis reference from the device configuration (instance) to which the inputs belong (similar to Axis). In the case of function blocks provided for reading analog and digital inputs, Input replaces the input Axis. |