I am using AXC F 2152 - Controller which reads data from a energy meter through Modbus communication (through AXL SE RS485). I want to display energy reading from the previous day in HMI. For this, I want to read the date and time from the PLC so that I can display the data according to the time. Can anyone please explain how we can read the data from previous day?
Is it possible to read date and time from PLC CPU to program?
The current time can be obtained by using the RTC type available as a system variable.
I guess you have to find a way to store the previous day, for instance running some code when the HOUR-variable turns 00 to store energy consumption to a different variable or to a file.