L_MC1P_ChangeMachineData

This FB serves to describe the following machine parameters of an axis from the application:

  • Feed constant
  • Gearbox factor
  • Resolution of an encoder revolution
  • Polarity
  • Traversing range
  • Cycle length
Note!
  • This function can only be started in the " Disabled " axis state ( MC_Power . Enable = FALSE).
  • The corresponding parameters are directly written in the AXIS_REF axis data structure, i.e. the written values are persisted when the "Save parameter set" device command is executed.
  • In case of a change
    • the "HomePosAvailable" information is reset,
    • the memory of the position reconstruction is reset.

 

 

 

L_MC1P_ChangeMachineData

 

 

 

AXIS_REF

-

Axis

xDone

-

BOOL

BOOL

-

xExecute

xBusy

-

BOOL

BOOL

-

xSetFeedconstant

xError

-

BOOL

LREAL

-

lrFeedconstant

eErrorID

-

L_IE1P_Error

BOOL

-

xSetGearFactor

DWORD

-

dwGearDenominator

DWORD

-

dwGearNumerator

BOOL

-

xSetAddGearFactor

DWORD

-

dwAddGearDenominator

DWORD

-

dwAddGearNumerator

BOOL

-

xSetPosResolution

DWORD

-

dwPosResolution

BOOL

-

xSetOrientation

BOOL

-

xOrientation

BOOL

-

xSetTraversingRange

L_MC1P_TraversingRange

-

eTraversingRange

BOOL

-

xSetCycleLength

LREAL

-

lrCycleLength

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

Axis

AXIS_REF

Transfer of the axis data structure

Motion axes (AXIS_REF)

xExecute

BOOL

FALSE รค TRUE

Start execution of the function block.

xSetFeedconstant

BOOL

TRUE

Write defined feed constant into parameter.

lrFeedconstant

LREAL

Feed constant in [unit/rev]

xSetGearFactor

BOOL

TRUE

Write defined gearbox factors into parameter.

dwGearDenominator

DWORD

Gearbox factor denominator

dwGearNumerator

DWORD

Gearbox numerator

xSetAddGearFactor

BOOL

TRUE

Write specified additional gearbox factors into parameters.

dwAddGearDenominator

DWORD

Additional gearbox factor denominator

dwAddGearNumerator

DWORD

Additional gearbox factor numerator

xSetPosResolution

BOOL

TRUE

Write defined resolution into parameter.

dwPosResolution

DWORD

Resolution of a drive revolution in [incr./rev]

xSetOrientation

BOOL

TRUE

Write defined mounting direction into parameter.

xOrientation

BOOL

Polarity

FALSE

Direct mounting position

  • Direction of motor rotation and counting direction of the user measuring system correspond.
  • Positive speed and torque setpoints in the PLC program result in positive motor speed and motor torque values.

TRUE

Inverted mounting position

  • Direction of motor rotation and counting direction of the user measuring system do not correspond.
  • Positive speed and torque setpoints in the PLC program result in negative motor speed and motor torque values.

xSetTraversingRange

BOOL

TRUE

Write defined traversing range into parameter.

eTraversingRange

L_MC1P_TraversingRange

Traversing range:

  • Modulo: Modulo traversing range
  • Limited: Limited traversing range

xSetCycleLength

BOOL

TRUE

Write defined cycle length into parameter.

lrCycleLength

LREAL

Cycle length in [unit]

Outputs

Name

Data type

Value/meaning

xDone

BOOL

TRUE

The command has been executed successfully.

xBusy

BOOL

TRUE

Processing is running.

xError

BOOL

TRUE

An error has occurred. For details see eErrorID .

eErrorID

If xError = TRUE: Error number for the error that has occurred.