L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 57

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

57

L-force | PLC Designer - SoftMotion

The SoftMotion drive interface

Variables of the AXIS_REF structure

1024

bMovedInThisCycle

BOOL

FALSE

Has drive been moved during this

IEC cycle

1025

fTaskCycle

REAL

PLC config*

Task cycle time in s

1026

bRealDrive

BOOL

PLC config*

TRUE: generated by config;

FALSE: generated by IEC program

1030

bError

BOOL

FALSE

Error has occurred

1031

wErrorID

WORD

0

Error number

1032

bErrorAckn

BOOL

FALSE

Errors confirmed

1035

fbeFBError

ARRAY

[0..g_SMC_NUMBER

_FB_ERRORS] OF

SMC_FBERROR

0

FB error number memory

1051

dwRatioTechUnits

Denom

DWORD

PLC config*

Conversion of technical units to

increments: denominator

1052

iRatioTechUnits

Num

INT

PLC config*

Conversion of technical units to

increments: numerator

1053

nDirection

MC_Direction

Positive

-1: negative (fSetVelocity < 0)

1: positive

1054

fScalefactor

REAL

1

Conversion of bus unit to

technical unit per unit received

on the bus

1055

fFactorVel

REAL

1

Conversion of bus unit in techn.

Inherited/s

1056

fFactorAcc

REAL

1

Conversion of bus unit in techn.

unit/s

2

1057

fFactorTor

REAL

1

Conversion of bus unit in Nm or N

1058

fFactorJerk

REAL

1

Conversion of bus unit in techn.

unit/s

3

1060

iMovementType

INT

1

0: rotary (modulo)

1: linear

1061

fPositionPeriod

REAL

1000

Length of the period for rotary

drives in techn.units

1091

byControllerMode

BYTE

3

1: torque control

2: speed control

3: position control

1092

byRealController

Mode

BYTE

0

Actual control mode

1100/1

fSetPosition

REAL

0

Specified position in techn. units

1101

fActPosition

REAL

0

Current position in techn. units

1105

fAimPosition

REAL

0

Target position (for some

MC_FBs)

1106

fMarkPosition

REAL

0

Internal position marker

1107

fSavePosition

REAL

0

Internal position at cycle start

1110,11

fSetVelocity

REAL

0

Specified speed in techn. units/

sec

1111,10

fActVelocity

REAL

0

Current speed in techn. units/sec

1112,9

fMaxVelocity

REAL

100

Is only used internally

1113

fSWMaxVelocity

REAL

100

Maximum speed for implicit

movements in techn. units/sec

1115

bConstantVelocity

BOOL

FALSE

Axis is moving at a constant

velocity.

1116

fMarkVelocity

REAL

0

Internal speed mark

No.

Name

Data type

Init value

Description

Advertising