FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
05-05-2023 03:07 PM
Hello ctrlx team
When I used MC_SetOverride FB,I get a error,I don't know what the reason?
I used 1.14 ctrlxworks.
Please see the picture.
Solved! Go to Solution.
05-05-2023 03:42 PM
In the online documentation following is mentioned:
INPUT_INVALID_ERROR |
16#090F2017 |
16#0C550401 |
Value not between 0.0 and 1.0 |
Could it be that the value at input "VelFactor" was out of range at some time?
05-05-2023 04:12 PM
Hello Sir
Do you know how to reset the MC_Setoverride error?
05-08-2023 07:12 AM
Simply insert a fitting value and set input "Enable" to FALSE and TRUE again.
05-08-2023 09:11 AM
Hello
Just Like :
if bEnable = false then
bEnable:=true;
end_if
if MC_Setoverride.error then
bEnable:=false;
end_if
05-08-2023 09:20 AM
You can also directly connect error output to the enable input. But keep in mind that if the value is still out of range the error will show up again.
MC_Setoverride(Enable := bEnable AND NOT MC_Setoverride.error); //In the call of the function block
//OR
MC_Setoverride.Enable := bEnable AND NOT MC_Setoverride.error; //Somewhere in the code