setting the plc time in the wago 750-862

ganutenator

Lifetime Supporting Member
Join Date
May 2002
Location
kansas
Posts
1,440
I know someone out there has code to programmatically set the plc time and date.
It would save me a ton of time if anyone could share this w/ me.
I want to have the hmi send the current time and date to the plc maybe like once every hour or so?
 
I don't know specifically about the 750-862 you mentioned, but many Wago models have an option to configure it as an NTP client. Basically this means that at fixed intervals it synchronizes the RTC in the PLC with the NTP server. If your HMI can be an NTP server then that would be the way to go, imho.
 
I don't know specifically about the 750-862 you mentioned, but many Wago models have an option to configure it as an NTP client. Basically this means that at fixed intervals it synchronizes the RTC in the PLC with the NTP server. If your HMI can be an NTP server then that would be the way to go, imho.

wow, I never thought of making the HMI the ntp server.
Great idea!!!

Only downside I see w/ that, is that I would have to give the HMI a static address.
 
I don't know anything about the "Wago"!

But this is how I do it.

I program the HMI to get its time from an Internet Service (HMI does not need a Static Ip for this feature).

Then I have a macro that runs every 6 hours and in the macro, I have a "Trigger".

So this is what happens.

The Hmi updates seven TAGS in the PLC
Year, Month, Day, Hour, Minute, Second, DayOfWeek

Then with a function block, I fire the trigger and it updates the PLC clock.

Just another Idea!
 
You could use the library "SysLibRtc.lib" should be in your system, just add library to the project.
I think it is all you need.

Wago_RTC.jpg
 

Similar Topics

Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
27
Views
610
I have a question about IP addressing and Networking. I have a PLC with following IP address 10.1.0.120 this is an static PLC PLC is working like...
Replies
15
Views
1,999
Hi hope all are ok. I have mitsubishi PLC Q03UDV CPU. I have control a drive through modbus inteligent module QJ71MT91 in GX Works2. Any experts...
Replies
1
Views
604
Hello everyone, So I need help setting up traps in Studio 5000. Disclaimer I'm an intermediate PLC programmer so I need lots of help and I need to...
Replies
13
Views
2,330
I am working on setting up my own 1756 B series PLC rack, power supply 1756-PB75 /B, 1606-XLS480E -redundant 24 DC power supply, controller...
Replies
6
Views
4,309
Back
Top Bottom