hanoues - 2024-04-08

I've tried using the SMC3_BrakeControl function block to control the brake, but unfortunately, it's not functioning as expected. Despite setting the appropriate parameters and inputs, the brake control does not operate correctly. Any insights or suggestions on resolving this issue would be greatly appreciated.

STATE_MANUAL.UNLOCK_BRAKE:
IF Button_release_brake THEN
GVL.drum1_Control_Brake:=TRUE;
FBA.T11_ContBrake.bExecute := TRUE;
GVL.manual_state := STATE_MANUAL.WAIT_FOR_BRAKE_RELEASE;
END_IF

STATE_MANUAL.WAIT_FOR_BRAKE_RELEASE:
IF FBA.T11_ContBrake.bDone THEN
FBA.T11_ContBrake.bExecute := FALSE;
GVL.manual_state := STATE_MANUAL.WAIT_START_BUTTON;
END_IF

 

Last edit: hanoues 2024-04-08