MC_WriteBoolPar
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
Execute |
BOOL |
0, 1 |
N/A |
No default |
Requests to write a Boolean axis parameter. |
Axis |
AXIS_REF |
1 to 256 |
N/A |
No default |
Name of a declared instance of the AXIS_REF library function.
|
ParameterNumber |
INT |
No range |
N/A |
No default |
Parameter number. See Axis Parameters. |
Value |
BOOL |
0, 1 |
N/A |
No default |
State to write. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Done |
BOOL |
|
|
Indicates the Boolean parameter has been written. |
Busy |
BOOL |
|
|
Indicates this function block is executing. |
Error |
BOOL |
|
|
Indicates an invalid input was specified. |
ErrorID |
INT |
|
|
Indicates the error if the Error output is set to TRUE. |
Remarks
See Function Blocks - General Rules about how inputs and outputs work.
Figure 1: MC_WriteBoolPar
FBD Language Example
Not available.
FFLD Language Example
-
-
Currently, MC_WriteBoolPar does not support any parameters (1050 is an arbitrary number chosen for example).
IL Language Example
Not available.
ST Language Example
(* MC_WriteBoolPar ST example *)
WriteBool := FALSE;
Inst_MC_WriteBoolPar( WriteReq, Axis1, 1050, WriteBool );