16 l_ssc_setposition - position conversion, Plc designer v2.x| lenze application samples – Lenze PLC Designer V2.x User Manual

Page 327

Advertising
background image

1.3 EN - 07/2012

L

327

PLC Designer V2.x| Lenze Application Samples

The L_SSC_Scaling.lib library

L_SSC_SetPosition - position conversion

Outputs

20.16

L_SSC_SetPosition - position conversion

This FB converts a position to a position in [increments] on the basis of the machine

parameters transmitted and provides them at the output dnPosOut_p for further

processing within the function block interconnection.

Inputs

Outputs

Identifier/data type

Information/possible settings

scAxisData

SSC_Axis_logic

Machine parameters

• Pointer to a data structure the elements of which contain the machine

parameters in the internal measuring system.

• Via this "interface" you can provide the machine parameters to other FBs, which

require these data for internal calculations.

diCycleLength_p

DINT

Cycle in [increments]

• The cycle in the real unit of the machine can be viewed in the corresponding code.

Identifier/data type

Information/possible settings

rPositionInUnits

REAL

Position value in units

scAxisData

SSC_Axis_logic

Machine parameters

Identifier/data type

Information/possible settings

diPosOut_p

DINT

Position in [increments]

xLimit

BOOL

"Output signal is limited" status

• TRUE: The output signal is limited to the representable value range

±214748.3647

xError

BOOL

"Error" status signal

FALSE Conversion carried out without errors

TRUE Error during the conversion

Advertising