MC_ReadStatus_PTO: Get the State of the Axis

Function Block Description

This function block returns the state diagram status of the axis.

Graphical Representation

G-SE-0028399.1.gif-high.gif

 

 

IL and ST Representation

To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.

Input Variables

This table describes the input variables:

Input

Type

Initial Value

Description

Axis

AXIS_REF_PTO

-

Name of the axis (instance) for which the function block is to be executed. In the devices tree, the name is declared in the controller configuration,.

Enable

BOOL

FALSE

When TRUE, the function block is executed. The values of the function block inputs can be modified continuously, and the outputs are updated continuously.

When FALSE, terminates the function block execution and resets its outputs.

Output Variables

This table describes the output variables:

Output

Type

Initial Value

Description

Valid

BOOL

FALSE

The set of outputs is valid.

Error

BOOL

FALSE

If TRUE, indicates that an error was detected. Function block execution is finished.

ErrorId

PTO_ERROR

PTO_ERROR.NoError

When Error is TRUE: code of the error detected.

ErrorStop

BOOL

FALSE

If TRUE, the state is active (Motion state diagram).

Disabled

BOOL

FALSE

Stoppping

BOOL

FALSE

Homing

BOOL

FALSE

Stanstill

BOOL

FALSE

DiscreteMotion

BOOL

FALSE

ContinuousMotion

BOOL

FALSE

IsHomed

BOOL

FALSE

If TRUE, the reference point is valid, absolute motion is allowed.

AxisWarning

BOOL

FALSE

If TRUE, an alert is present on the axis (call MC_ReadAxisError_PTO for detailed information).

QueueFull

BOOL

FALSE

If TRUE, the motion queue is full, no additional move is allowed in the buffer.