3 the structure of lenzeecs_axis_ref, The structure of lenzeecs_axis_ref, L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 50

Advertising
background image

L-force | PLC Designer - SoftMotion

The SoftMotion drive interface

Drive element <BusInterfaceName>Drive.lib

50

L

DMS 5.2 EN 03/2011 TD17

3.3.1.3

The structure of LenzeECS_AXIS_REF

Variable

Data type

Description

byDriveState

BYTE

Status of the drive (internal use)

wStatusWord

WORD

Status word C0150 (ECSxM) / 6041

hex

(9400)

wStatusWord2

WORD

Status word2 C0155 (ECSxM)

wControlWord

WORD

Control word C0135 (ECSxM) / 6040

hex

(9400)

wStatusWordOld

WORD

Last status word (internal use)

dwSetPosition

DWORD

Target position sent to the drive (read only)

byStatusInfo

BYTE

Bits 8 ... 11 of the status word (ECSxM)

byErrAcknCounter

BYTE

Error counter (internal use)

bHWLimitsActive

BOOL

TRUE if a limit switch is activated (ECSxM)

fLimitSwitchDeceleration

LREAL

Speed deceleration for stopping at the limit switch (if

0, no ramp is available), ECSxM only

mcstopLS

MC_Stop

Internal use

strConfigFile

STRING

Complete file name and path of the configuration

file

acit

Internal use

txList, rxList, txPDOs, rxPDOs …

Internal use

byActOpMode

BYTE

Object 6061

hex

(9400)

bySetOpMode

BYTE

Object 6060

hex

(read only), 9400 only

bOldReference

BOOL

Internal use

byDigitalInputs,

byDigitalOutputs

BYTE

Digital inputs (60FD

hex

) and

outputs (60FE

hex

/1), 9400 only

crap

SMC_CANReadAllParams

Internal use

pParameterlist

POINTER TO

CAN_InitTelegram

Parameter list (internal use)

wp

LenzeECSWriteParameter

Written parameters ECSxM (internal use)

rp

LenzeECSReadParameter

Read parameters ECSxM (internal use)

Advertising