MC_ReadBoolPar
Description
Figure 7-131: MC_ReadBoolPar
-
-
This function or function block returns cached data.
See Programming a Dual Core Controller for more information.
Arguments
See Function Blocks - General Rules for more information about how inputs and outputs work.
Input
Enable |
Description |
Requests to read the Boolean axis parameter |
Data type |
BOOL |
|
Range |
0, 1 |
|
Unit |
N/A |
|
Default |
— |
|
Axis |
Description |
Name of a declared instance of the AXIS_REF library function. For more details, Axis Name and Number) |
Data type |
||
Range |
[1,256] |
|
Unit |
N/A |
|
Default |
— |
|
ParameterNumber |
Description |
Parameter number, see table in Axis Parameters |
Data type |
INT |
|
Range |
— |
|
Unit |
N/A |
|
Default |
— |
Output
Valid |
Description |
Indicates the Value output is valid |
Data type |
BOOL |
|
Busy |
Description |
Indicates this function block is executing |
Data type |
BOOL |
|
Error |
Description |
Indicates an invalid input |
Data type |
BOOL |
|
ErrorID |
Description |
Indicates the error if Error output is set to TRUE
|
Data type |
INT |
|
Value |
Description |
State of the Boolean parameter |
Data type |
BOOL |
Example
Structured Text
(* MC_ReadBoolPar ST example *) Inst_MC_ReadBoolPar( EnableRead, Axis1, MC_AXIS_PARAM_IN_POSITION );
Axis1InPosition := Inst_MC_ReadBoolPar.Value;
Ladder Diagram