Output PC time to PLC for time sync

russrmartin

Member
Join Date
Aug 2002
Location
Eastman, Wisconsin
Posts
744
Hey guys, do any of you know if I can and how to send the date and time from iFIX to a PLC for time stamping? Basically, if we download a new program etc, we'd like to have the 5000 write values to correct the date and time right away to sync it with iFIX again, but are not sure how to get the PC time into iIFIX so it can be written to the PLC. Thanks.

Russ
 
Please read the post

Peter,

Thanks for the post, but the issue is not reading or writing the PLC, it's getting the value from the PC to write? Do you know how to do this within iFIX.

Russ
 
How about sending a time sync bit at the same time every day to the PLC. Then in the PLC set the wallclock.
 
Look in your RSLogix5000 Tools folder. There should be a Logix 5000 clock update tool; you can run this as a service and it will synchronize the Logix CPU clock with the PC clock. Note: you do have to use RSLinx to configure the path to the CPU.
 
Clock update tool works really well. It only needs an UNLICENSED copy of Linx to work though. Its available as a free download from the Rockwell website.

It will run in the background and synch all the PLCs on the network as often as you like. I used it on a CLX network where they wanted accurate time stamps for billing and inventory. I synch once a day and it stays pretty much within 1 second.
 
still unclear

Thanks guys, but I'm still a little unclear. Does this tool sit on the iFIX box and write to the PLC? (That's how it sounds) Or is this something that is configured in the 5000 project?
 
Hi russrmartin, you dont need anything of that,if you want to get or send the date when you press a button(right click on the button->edit script

Private Sub CommandButton1_click()

Write System.CurrentDayDate,"DayVar"

'DayVar is your variable in the database when you want to save the value'
'in this case of the day, could be hour ,minutes month etc'
'copy and paste this code and should work'

End Sub
 
Hi russrmartin, you dont need anything of that,if you want to get or send the date when you press a button(right click on the button->edit script

Private Sub CommandButton1_click()

Write System.CurrentDayDate,"DayVar"

'DayVar is your variable in the database when you want to save the value'
'in this case of the day, could be hour ,minutes month etc'
'copy and paste this code and should work'

End Sub


Welcome to forum

Hopefully OP getted it work allmost 9 years ago
 

Similar Topics

I have PLC Omron CJ2M with OD211 module. I want to use the pulse output and PWM output and this module. But i confuse how to activated this, i...
Replies
0
Views
16
I have a project to control the speed of motor DC using PWM Output on PLC and when im on working i have a several trouble and of of them is the...
Replies
6
Views
66
Hello, the PLC in question is 1769-L30ER. I have a local 4-20mA Analog Output module (1769-OF4CI), and also a remote ethernet PointIO analog...
Replies
0
Views
335
Hi guys, i have never had to do a PWM Output or input before i have a Device that to dimm the lamp output from the ballast, the ballast has a 24V...
Replies
6
Views
838
Hello everyone, I am having issues with an output module connected to my 5069-L306ER PLC. The modules I have connected are a 5069-IA16 in slot 1...
Replies
1
Views
574
Back
Top Bottom