MC_ReadStatus
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
BOOL |
FALSE, TRUE |
N/A |
No default |
Request to read and return the axis status. |
|
Axis |
AXIS_REF |
1, 256 |
N/A |
No default |
Name of a declared instance of the AXIS_REF library function 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..
|
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Valid |
BOOL |
FALSE, TRUE |
N/A |
Indicates the outputs are valid. |
Busy |
BOOL |
FALSE, TRUE |
N/A |
Indicates this function block is executing. |
Error |
BOOL |
FALSE, TRUE |
N/A |
Indicates an invalid input was specified. |
ErrorID |
INT |
-32768 to +32767 |
|
Indicates the error if Error output is TRUE. |
ErrorStop |
BOOL |
FALSE, TRUE |
N/A |
Indicates Error Stop state. Either E-stop or C-stop. |
Disabled Removal of the ENABLE signal. Disables power stage. |
BOOL |
FALSE, TRUE |
N/A |
Indicates Disabled state. Open loop A positioning technique, typically utilizing stepper motors, where the controller issues a sequence of commands to the motor without an absolute means of detecting if the move has been made. When the load and move velocity and acceleration are appropriately defined, open loop positioning is capable of extended operation without losing steps. and drive In electrical engineering, a drive is an electronic device to provide power to a motor or servo. Control device for regulating the speed, torque and position of a motor. A unit controlling a motor using the current and timing in its coils. is disabled. |
Stopping |
BOOL |
FALSE, TRUE |
N/A |
Indicates Stopping state. MC_Stop command. |
StandStill |
BOOL |
FALSE, TRUE |
N/A |
Indicates Stand Still state. No move, closed loop, drive enabled. |
DiscreteMotion |
BOOL |
FALSE, TRUE |
N/A |
Indicates Discrete Motion state. Pprogrammed endpoint move is active. |
ContinuousMotion |
BOOL |
FALSE, TRUE |
N/A |
Indicates Continuous Motion state. Unending, single-axis move is active. |
SynchronizedMotion |
BOOL |
FALSE, TRUE |
N/A |
Slave move is active. |
BOOL |
FALSE, TRUE |
N/A |
Indicates Homing state. A homing cycle is currently executing. |
|
ConstantVelocity |
BOOL |
FALSE, TRUE |
N/A |
Indicates the axis is moving at a constant velocity For a group of axes this means: In ACS the velocities of the different axes. In MCS and PCS it provides the velocity of the TCP. |
BOOL |
FALSE, TRUE |
N/A |
Indicates the axis is accelerating. |
|
Decelerating |
BOOL |
FALSE, TRUE |
N/A |
Indicates the axis is decelerating. |
Remarks
-
-
This function or function block returns cached data.
See Program a Multi-Core Controller.
See Function Blocks - General Rules about how inputs and outputs work.
Figure 1: MC_ReadStatus
FBD Language Example
Not available.
FFLD Language Example
IL Language Example
Not available.
ST Language Example
(* MC_ReadStatus ST example *)
Inst_MC_ReadStatus( EnableRead, Axis1 );
//Inst_MC_ReadStatus is an instance of MC_ReadStatus function block
AxisStopping := Inst_MC_ReadStatus.Stopping; // store Stopping output to a user defined variable
AxisAccelerating := Inst_MC_ReadStatus.Accelerating; // store Accelerating output to a user defined variable