This function block sets the state of a digital output.
Library name: GMC Independent PLCopen MC
Namespace: GIPLC
Input |
Data type |
Description |
---|---|---|
Execute |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. A rising edge of the input Execute starts the function block. The function block continues execution and the output Busy is set to TRUE. A rising edge at the input Execute is ignored while the function block is being executed. |
OutputNumber |
UINT |
Default value: 1 ATV320: Value range: 1...3 o1: Relay1 o2: Relay2 o3: LO1 ATV340/ATV6••/ATV9••: Value range: 1...10 o1: Relay1 o2: Relay2 o3: Relay3 o4: Relay4 (with expansion card) o5: Relay5 (with expansion card) o6: Relay6 (with expansion card) o7: DQ1 (only ATV340 and ATV9••) o8: DQ2 (only ATV340) o9: DQ11 (with expansion card) o10: DQ12 (with expansion card) LXM32A/LXM32ICAN: Value range: 1...2 o1: DQ0 o2: DQ1 LXM32M: Value range: 1...5 o1: DQ0 o2: DQ1 o3: DQ2 o4: DQ10 (with IOM1 module) o5: DQ11 (with IOM1 module) Lexium ILA, ILE and ILS integrated drives: Value range: 1...4 o1: LIO1 (EtherNet/IP and Modbus/TCP), IO0 (CANopen) o... o4: LIO4 (EtherNet/IP and Modbus/TCP), IO3 (CANopen) |
Value |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: 0 V is written to the selected signal output. oTRUE: 24 V is written to the selected signal output. |
Output |
Data type |
Description |
---|---|---|
Done |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: Execution has not been started, or an error has been detected. oTRUE: Execution terminated without an error detected. |
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. |
Input/Output |
Data type |
Description |
|
---|---|---|---|
Output |
MC_Output_Ref |
Output is a special data type for digital and analog outputs (if available). The data type corresponds to the axis reference from the device configuration (instance) to which the outputs belong (similar to Axis). In the case of function blocks provided for writing and reading digital inputs, Output replaces the output Axis. |