FB_BA_Motor1St
The function block FB_BA_Motor1St is used to control 1-step motors.
The input bEn is used for enabling the function block.
The input nOpMode is used to set the operation mode of the motor:
- 0 = Automatic
- 1 = Manual off
- 2 = Manual on
In automatic mode (nOpMode = 0) the motor can be operated via inputbAuto (bAuto = bQ =TRUE).
The collection of all possible malfunctions of a motor is connected to bDst.
Inputs
VAR_INPUT
bEn : BOOL;
bAuto : BOOL;
bDst : BOOL;
nOpMode : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
bEn | BOOL | Enable motor. |
bAutoOpen | BOOL | Actuator request in automatic mode (nOpMode = 0). |
bDst | BOOL | Input for collecting the possible motor malfunctions. |
nOpMode | UDINT | Selection of the operation mode (0 = Automatic, 1 = Manual off, 2 = Manual on). |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.22 | Tc3_BA2 from v5.2.5.0 |