MC_ReadBoolParameter (motion control read BOOL parameter)

The MC_ReadBoolParameter instruction returns the value of a vendor-specific parameter of type BOOL.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L50E and L70E controllers that support motion control.
MC_ReadBoolParameter
MC_ReadBoolParameter
MC_ReadBoolParameter parameters
Parameter
Parameter Type
Data Type
Description
EN
Input
BOOL
Instruction block enable.
  • TRUE: Execute current MC_ReadBoolParameter computation.
  • FALSE: Reset Value output to 0.
Applies only to ladder diagram programs.
AxisIn
Input
AXIS_REF
FB_AXIS_REF
Use the AXIS_REF data type to define AxisIn.
For FB_Axis (feedback axis), use the FB_AXIS_REF data type to define AxisIn.
Enable
Input
BOOL
  • TRUE: Get the value of the parameter continuously while enabled.
  • FALSE: The Value output is reset to 0.
ParameterNumber
Input
DINT
Parameter identification.
Parameter numbers definitions are defined in motion control function block parameter numbers.
ENO
Output
BOOL
Enable output.
Applies only to ladder diagram programs.
Axis
Output
AXIS_REF
Axis output is read-only in ladder diagram programs.
Valid
Output
BOOL
  • TRUE: The value of the Parameter is available.
  • FALSE: The Parameter value is not available.
Busy
Output
BOOL
  • TRUE: The function block is working and new output values are expected.
  • FALSE: The function is idle.
Error
Output
BOOL
Indicates that an error occurred.
  • TRUE: An error is detected.
  • FALSE: No error.
ErrorID
Output
UINT
A unique numeric that identifies the error. The errors for this instruction are defined in Motion control function block error IDs.
Value
Output
BOOL
Value of the specified parameter in the data type, as specified by the vendor.

MC_ReadBoolParameter examples

MC_ReadBoolParameter function block diagram example
MC_ReadBoolParameter function block diagram example
MC_ReadBoolParameter ladder diagram example
MC_ReadBoolParameter ladder diagram example
MC_ReadBoolParameter structured text example
MC_ReadBoolParameter structured text example
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal