FB_CoEEL72xxSetPositionOffset

FB_CoEEL72xxSetPositionOffset 1:

With the function block FB_CoEEL72xxSetPositionOffset, a position offset can be stored in the memory of the EL72xx. Saving in the digital name plate of the connected motor encoder is not currently provided for.

FB_CoEEL72xxSetPositionOffset 2: Inputs

VAR_INPUT
   Execute  :  BOOL;
   Position :  LREAL;
   Relative :  BOOL;
   Feedback :  E_PositionOffsetFeedback;
   Memory   :  E_PositionOffsetMemory;
END_VAR

Name

Type

Description

Execute

BOOL

The function block is enabled via a positive edge at this input.

Position

LREAL

New actual position of the NC axis

Relative

BOOL

When this flag is set, the position is interpreted relatively.

Feedback

E_PositionOffsetFeedback

Enumeration of the type E_PositionOffsetFeedback. Specifies which feedback is considered.

Memory

E_PositionOffsetMemory

Enumeration of the type E_PositionOffsetMemory. Specifies which memory the newly calculated position offset should be stored in.

FB_CoEEL72xxSetPositionOffset 3: Inputs/outputs

VAR_IN_OUT
   Axis : AXIS_REF;
END_VAR

Name

Type

Description

Axis

AXIS_REF

Axis data structure that unambiguously addresses an axis in the system. Among other parameters it contains the current axis status, including position, velocity or error state.

FB_CoEEL72xxSetPositionOffset 4: Outputs

VAR_OUTPUT
   Busy     :  BOOL;
   Error    :  BOOL;
   ErrorID  :  UDINT;
END_VAR

Name

Type

Description

Busy

BOOL

This output is set when the function block is activated, and remains set until a feedback is received.

Error

BOOL

This output is set after the Busy output has been reset when an error occurs in the transmission of the command.

ErrorID

UDINT

In the event of a set error output returns the ADS error code.

Requirements

Development environment

Target platform type

PLC libraries to include

Firmware version

Revision

TwinCAT >4020.57

TwinCAT >4022.30

TwinCAT ≥4024.4

PC or CX (x86 or x64)

Tc2_MC2_Drive ≥V3.3.17.0

≥ 19

≥0030