FUNCTION_BLOCK MC_ReadBoolParameter
MC_ReadBoolParameter returns the value of the SoftMotion parameter specified in input ParameterNumber. The Boolean variable Value contains the read value.
Notice
EtherCAT CoE, CAN, CANopen Encoding of ParameterNumber
diParameterNumber := -DWORD_TO_DINT(SHL(USINT_TO_DOWRD(usiDataLength), 24)
+ SHL(UINT_TO_DWORD(uiIndex), 8) + usisubIndex;
InOut:
Scope |
Name |
Type |
Comment |
Inout |
Axis |
Reference to axis |
|
Input |
Enable |
BOOL |
TRUE: Enables the execution of the function block. While TRUE, the output value provides the parameter value continuously for reading out. |
ParameterNumber |
DINT |
This fieldbus specific parameter ID must be encoded in a variable of type DINT. Then it can serve as input for this function block. Example EtherCAT CoE, CAN, CANopen You can find a description of the most used parameter numbers in AXIS_REF_SM3. |
|
Output |
Valid |
BOOL |
TRUE : Specified parameter is available. |
Busy |
BOOL |
TRUE: Execution of the function block has not finished yet. |
|
Error |
BOOL |
TRUE: Error has occurred during execution. |
|
ErrorID |
SMC_ERROR |
Error identification |
|
Value |
BOOL |
Boolean value of the parameter specified in input``ParameterNumber``. |