MC_ReadActPos
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
Enable |
BOOL |
0, 1 |
N/A |
No default |
Request to read the axis's actual position. Keeps continuously reading the actual position every PLC "Programmable Logic Controller" A Programmable Logic Controller, PLC, or Programmable Controller is a digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events cycle, as long as the Enable remains high. |
Axis |
AXIS_REF |
1, 256 |
N/A |
No default |
Name of a declared instance of the AXIS_REF library function.
|
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Valid |
BOOL |
|
|
Indicates the value at the Position output is available. |
Busy |
BOOL |
|
|
Indicates this function block is executing. |
Error |
BOOL |
|
|
Indicates an invalid input was specified. |
ErrorID |
INT |
|
|
Indicates the error if Error output is TRUE. See PLCopen Function Block ErrorIDs for more information. |
Position |
LREAL |
|
User units |
Actual position of the axis. |
Remarks
-
-
This function or function block returns cached data.
See Program a Multi-Core Controller for more information.
See Function Blocks - General Rules for more information about how inputs and outputs work.
Figure 6-214: MC_ReadActPos
FBD Language Example
Not available.
FFLD Language Example
IL Language Example
Not available.
ST Language Example
(* MC_ReadActPos S T example *) Inst_MC_ReadActPos( TRUE, Axis1 ); //Inst_MC_ReadActPos is an instance of MC_ReadActPos function block ActualPos := Inst_MC_ReadActPos.Position; //store Position output into a user defined variable