MC_WriteBoolParameter (motion control write BOOL parameter)
The MC_WriteBoolParameter instruction modifies the value of a vendor-specific parameter of type BOOL.
The parameters set by the MC_WriteBoolParameter function block are only applied to the application temporarily. They are overwritten by the permanent settings, which are configured by the user in
FactoryTalk Design Workbench
motion configuration, when the controller is switched from Program
to Run
mode, or when the power to the controller is cycled OFF and ON.Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L50E and L70E controllers that support motion control.
MC_WriteBoolParameter

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
EN | Input | BOOL | Instruction block enable.
Applies only to ladder diagram programs. |
AxisIn | Input | AXIS_REF FB_AXIS_REF | Use the AXIS_REF data type to define the parameters for AxisIn. For a feedback axis, use the FB_AXIS_REF data type to define the parameters for AxisIn. |
Execute | Input | BOOL | TRUE: writes the value of the parameter at the rising edge. |
ParameterNumber | Input | DINT | Parameter identification. The parameter number is defined in Motion control function block parameter details. |
Value | Input | BOOL | TRUE: The specified parameter has a new value. |
MC_ExecutionMode | Input | SINT | Values are:
When (MC_ExecutionMode = 0), for all parameters except Duty Cycle (1005), this FB can be completed successfully only when the axis state is Disabled or Standstill. When (MC_ExecutionMode = 0), for Parameter Duty Cycle (1005), this FB can be completed successfully except the axis is in Homing or Error Stop state. For (MC_ExecutionMode = 1), this function block can be successfully completed only when the axis state is Disabled, Standstill, or the ongoing motion can complete, ending with Standstill state. Other input values are reserved currently, and are considered as invalid parameters. |
ENO | Output | BOOL | Enable output. Applies only to ladder diagram programs. |
Axis | Output | AXIS_REF | Axis output is read-only in ladder diagram programs. |
Done | Output | BOOL | TRUE: The parameter was successfully written. |
Busy | Output | BOOL | TRUE: The function block is not finished. |
Error | Output | BOOL | Indicates that an error occurred.
|
ErrorID | Output | UINT | A unique numeric that identifies the error. The errors for this instruction are defined in Motion control function block error IDs. |
MC_WriteBoolParameter examples
MC_WriteBoolParameter function block diagram example

MC_WriteBoolParameter ladder diagram example

MC_WriteBoolParameter structured text example

Results

Provide Feedback