Good day! The object often goes out of power and turns off the controller. Is there a system variable in the Schneider that indicates that the controller has resumed its operation, or there was a power supply. At the start of the controller you need to do certain actions.
Thak you.
Modicon m241 System variable
Modicon M241 First Scan Bit
Have you checked the manual?
IsFirstMastColdCycle: Indicate if this Cycle is the First MAST Cold Start Cycle
This function returns TRUE during the first MAST cycle after a cold start (first cycle after download or reset cold).
IsFirstMastCycle: Indicate if this Cycle is the First MAST Cycle
This function returns TRUE during the first MAST cycle after a start.
IsFirstMastWarmCycle: Indicate if this Cycle is the First MAST Warm Start Cycle
This function returns TRUE during the first MAST cycle after a warm start.
IsFirstMastColdCycle: Indicate if this Cycle is the First MAST Cold Start Cycle
This function returns TRUE during the first MAST cycle after a cold start (first cycle after download or reset cold).
IsFirstMastCycle: Indicate if this Cycle is the First MAST Cycle
This function returns TRUE during the first MAST cycle after a start.
IsFirstMastWarmCycle: Indicate if this Cycle is the First MAST Warm Start Cycle
This function returns TRUE during the first MAST cycle after a warm start.