Determining the A and B axis of multi-axis inverters

In the device tree, for instance an i700 inverter is shown, the axes of which are named for the purpose of distinction:

[4-20] Fig. 1: Device tree

The axes can be differentiated by the following programming example.

Programming example

//variable declaration

VAR

AxisA:L_MC1P_AxisSlot;

AxisB:L_MC1P_AxisSlot;

END_VAR

//Program code for determining the A and B axes

AxisA:=i700_Motion_Axis.AxisSlot;

AxisB:=i700_Motion_Axis_1.AxisSlot;

Note:

The variables AxisA and AxisB can be used as an offset of the parameter index for the functions L_MC1P_IndexToParameter and L_MC1P_IndexToParameter2 by adding the variables AxisA or AxisB to the index of a single axis..

Example:

Index of the single axis (axis A): set 0x2983 actual position: starting value

The resulting index of axis B: 0x2983+AxisB = 0x3183

Enumeration L_MC1P_AxisSlot (values of type UINT)

Designator

Value

Info

HEX

DEC

AxisA

0x0

0

Axis_Ref corresponds to axis A

AxisB

0x800

2048

Axis_Ref corresponds to axis B