AX-Series Motion Controller Instructions Manual Chapter 2
118
2.2.6 MC_WriteBoolParameter
Supported Devices: AX-308E, AX-8, AX-364E
MC_WriteBoolParameter writes a Boolean value to a specific parameter.
FB/FC Instruction Graphic Expression ST Language
FB
MC_WriteBool
Parameter
MC_WriteBoolParameter_instance(
Axis : =,
Execute : =,
ParameterNumber : =,
Value : =,
Done =>,
Busy =>,
Error =>,
ErrorID => );
Inputs
Name Function Data Type
Setting
Value
(Default
Timing to Take Effect
Execute Run the function block. BOOL
True/False
(False)
-
ParameterNumber
Number of the parameter to
be written.
DINT
Positive,
negative, or 0
When Execute turns to True and
Busy is False.
Value
Boolean value to be written
to the parameter.
BOOL
True/False
(False)
When Execute turns to True and
Busy is False.
Outputs
Output Range (Default Value)
Done
True if the Boolean value is written
successfully.
BOOL True/False (False)
Busy
True when the function block is
BOOL True/False (False)
Error True when an error occurs.
BOOL
True/False (False)
ErrorID
Record the error code when an
error occurs.
Refer to Appendix for error
code descriptions.
SMC_ERROR* SMC_ERROR (SMC_NO_ERROR)
*Note: SMC_ERROR: Enumeration (Enum)