FB_SoEDriveEnable

FB_SoEDriveEnable 1:

The FB_SoEDriveEnable function block enables a SoE drive in order to be able to subsequently supply it with setpoints using the function block FB_SoEDriveMoveVelocity.

FB_SoEDriveEnable 2: Inputs

VAR_INPUT
    bEnable : BOOL;
END_VAR

Name

Type

Description

bEnable

BOOL

Activates the SoE drive.

FB_SoEDriveEnable 3: / FB_SoEDriveEnable 4: Inputs/Outputs

VAR_IN_OUT
    stSoeDriveIoInterface : ST_SoEDriveIoInterface;
END_VAR

Name

Type

Description

stSoeDriveIoInterface

ST_SoEDriveIoInterface

Data structure to which the process image of the SoE drive must be linked.

FB_SoEDriveEnable 5: Outputs

VAR_OUTPUT
    bStatus     : BOOL;
    bDriveError : BOOL;
END_VAR

Name

Type

Description

bStatus

BOOL

If bStatus=TRUE, the drive is ready for operation and follows the setpoints.

bDriveError

BOOL

The drive is in the error state.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT 3.1.4024.22

PC or CX (x86 or x64)

Tc2_Drive