MLAxisReadGenStatus

Pipe Network motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Returns the status of the internal generator of the axis.

0 RUN mode (acceleration)
1 RUNNING or STOPPED
2 MOVE: Changing move destination
3 MOVE: Changing move destination
4 MOVE: Acceleration
5 MOVE: Constant speed (travel speed)
6 MOVE: Deceleration
7 MOVE: Single step (micro movement)

Arguments

Input

ID

Description

ID Name of the Axis block

 

Data type

DINT

 

Range

 

Unit

N/A

 

Default

Output

OK

Description

Returns true when function successfully executes

See Function - General Rules for more information.
 

Data type

BOOL

 

Unit

N/A

Default (.Q)

Description

Shows the status of the internal generator based on the table at the top of this topicSee Function - General Rules for more information.
 

Data type

DINT

 

Unit

N/A

Related Functions

MLAxisGenIsRdy

MLAxisStatus

Previous Function Name

MLAxisGenStatus

Example

Structured Text

            MLAxisReadGenStatus(PipeNetwork.Axis1 )  ;

Ladder Diagram

MLAxisReadGenStatus: LD example

Function Block Diagram

MLAxisReadGenStatus: FBD example

Go back to the top of the page[Top]