PLC Reboot

PLC can be rebooted in two ways.

When the default value is set to “True” on the HW digital outputs the output will not close during a cold restart of the PLC.

Use this auxiliary function to set the initial values the block to which you assign, where to assign it to the Def_value_DO variable required HW digital outputs to be set as default “True” on cold restart “

NAMESPACE hw
FUNCTION_BLOCK Default_value_DO
 
VAR
 Def_value_DO : BOOL; // Variable initialization
END_VAR
 
INIT
 Def_value_DO := TRUE; // Initial value of the digital output
END_INIT
 
 hw.RXIO_DO01 := Def_value_DO; // Assignment of initial variable
 
END_FUNCTION_BLOCK
END_NAMESPACE