m340 setting system clock

SparkyAB

Member
Join Date
Jan 2016
Location
alberta
Posts
5
hello everyone, I'm trying to set the system clock on my plc for daylight savings time so the operator does not need to adjust himself twice a year as I have specific events that happen according to the time of the day, please see attached PDF, this part was done in ST, so far I'm only concerned with the section for novemeber that takes an hour off system time my variables are as follows
RTC_HOUR : 2 digit hour on a 24 hour clock, this can also be adjusted on the hmi
Next_Daylight_novmeber; this is here to prevent a continuous loop by adding a year to the current year then testing again at the beginning of the loop
UNLOCKED : sets %S50 true and false, set to true to adjust the time then back to false to read the current time again

the loops and dates worked as they should and it takes an hour off the system time but for some reason after clearing that specific section the time will change back forward an hour, I have added a debug to the march spring forward a hour and it doesn't even start the loop, there are no other inputs to system time other then on the hmi, that being said the unlocked or %s50 is always kept false unless the operator brings up the keypad which isn't happening

hoping someone can help me out or maybe steer me in a better direction for this
 
Navigate on Unity, tools-> Project setting -> general -> time, put tick on daylight saving.

This will not prevent of setting time sometimes, PLC clock accuracy is several minutes / year.
 

Similar Topics

I have an m340 telemechanique processor that is not reseting I/O errors once the condition is repaired and reset of the processor has been done...
Replies
5
Views
4,640
Hi Everyone, i was hoping for a little help with this module. i have data that needs to be read from a different plc through the Modbus plus...
Replies
11
Views
245
Hello all, I am wanting to update the system clock via NTP in the M580/M340. I'm aware that we are able to connect to a NTP in the controller...
Replies
4
Views
144
I have 9 field devices, three METSEPM5110 power meters and six ACE949-2 rs285 interface modules. I want to read this Modbus rtu data through rs485...
Replies
8
Views
319
I'm using M340 (Schneider Electric) as modbus master. It works fine but if there is a disconnection with the slave, it stops working even after...
Replies
2
Views
430
Back
Top Bottom