MC_ReadMotionState

Functional Description

This function block outputs status information on the current movement.

Library and Namespace

Library name: GMC Independent PLCopen MC

Namespace: GIPLC

Graphical Representation

G-SE-0047254.1.gif-high.gif

 

 

Inputs

Input

Data type

Description

Enable

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

The input Enable starts or terminates execution of a function block.

oFALSE: Execution of the function block is terminated. The outputs Valid, Busy, and Error are set to FALSE.

oTRUE: The function block is being executed. The function block continues executing as long as the input Enable is set to TRUE.

Outputs

Output

Data type

Description

Valid

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oFALSE: Execution has not been started or an error has been detected. The values at the outputs are not valid.

oTRUE: Execution has been completed without an error detected. The values at the outputs are valid and can be further processed.

Busy

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oFALSE: Function block is not being executed.

oTRUE: Function block is being executed.

Error

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oFALSE: Execution of the function block is running, no error has been detected.

oTRUE: An error has been detected in the execution of the function block.

ErrorID

WORD

Returns the value of a diagnostic code. Refer to Library Diagnostic Codes. If the value is 0 and if the output Error of this function block is set to TRUE, then the diagnostic code can be read with the output AxisErrorID of the function block MC_ReadAxisError.

ConstantVelocity

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oTRUE: A movement at a constant velocity is performed.

Accelerating

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oTRUE: The motor accelerates.

Decelerating

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oTRUE: The motor decelerates.

DirectionPositive

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oTRUE: The motor shaft rotates in positive direction.

DirectionNegative

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oTRUE: The motor shaft rotates in negative direction.

Inputs/Outputs

Input/Output

Data type

Description

Axis

Axis_Ref

Reference to the axis (instance) for which the function block is to be executed (corresponds to the name of the axis). The name of the axis must be defined in the EcoStruxure Machine Expert Devices tree.

Additional Information

Reading a Parameter