FB_BA_Motor1St

FB_BA_Motor1St 1:

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:

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.

FB_BA_Motor1St 2: 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).

FB_BA_Motor1St 3: Outputs

VAR_OUTPUT
  bQ  : BOOL;
END_VAR

Name

Type

Description

bQ

BOOL

Control output

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.22

Tc3_BA2 from v5.2.5.0