15 l_ssc_setaxisdata - machine parameters, Plc designer v2.x| lenze application samples – Lenze PLC Designer V2.x User Manual

Page 326

Advertising
background image

PLC Designer V2.x| Lenze Application Samples

The L_SSC_Scaling.lib library

L_SSC_SetAxisData - machine parameters

326

L

1.3 EN - 07/2012

20.15

L_SSC_SetAxisData - machine parameters

With this FB the machine parameters of a higher-level drive can be mapped. The FB

conditions the machine parameters, which you specify in the physical units of the machine

via parameters, for the internal representation.

At the output scAxisData the FB provides a pointer to the data structure with the

machine parameters conditioned.

In order to pass the machine parameters to another FB which requires these data for

internal calculations, the output scAxisData is to be connected to the input with the

same name of the corresponding FB.

Inputs

Identifier/data type

Information/possible settings

rFeedConstant

REAL

Feed constant

• Initialisation: 360.0 units

rCycleLength

REAL

Cycle

• Initialisation: 360.0 units

dwGearNumerator

DWORD

Gearbox factor numerator

• Initialisation: 1

dwGearDenominator

DWORD

Gearbox factor denominator

• Initialisation: 1

rMaxSpeed

REAL

Reference speed

sAxisName

STRING(16)

Axis name

eMode

SSC_Mode :=

MODULO

Traversing range

• 0 unlimited

• 1 limited

2 modulo (Lenze setting)

dwResolution

DINT

Resolution of one revolution

Advertising