You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old September 13th, 2023, 03:22 PM   #1
Andy Patel
Member
United States

Andy Patel is offline
 
Join Date: Nov 2019
Location: Jersey City
Posts: 8
CLX Time Sync

Hello Everyone,

We have around 10 CLX with motion controls on them. They are provided by OEM, and I need to sync time on all of them. I have CLX of my own which is connected to all the other ones via Ethernet/IP. I am using it to read some data.

I am aware of the Logix5000 Clock Update tool.

Questions.
1. If I set up an automated time update by the tool, will it upset the motion controls on the CLX? especially while the machine is running?
2. If yes then I can write a logic to sync time from my CLX to other ones, while the machines are not running, but I don't know if we can do that. or how to do that?

can anyone help?

Thanks,
  Reply With Quote
Old September 13th, 2023, 09:03 PM   #2
TheWaterboy
Lifetime Supporting Member + Moderator
United States

TheWaterboy is offline
 
TheWaterboy's Avatar
 
Join Date: May 2006
Location: State of Denial
Posts: 1,774
There is a master sync clock in CLX under the controller tab I believe its intended for this purpose.
__________________
There are 2 kinds of people in the world... (1) Those that can derive answers from incomplete Data
  Reply With Quote
Old September 15th, 2023, 10:20 AM   #3
Andy Patel
Member
United States

Andy Patel is offline
 
Join Date: Nov 2019
Location: Jersey City
Posts: 8
can you please give an example of how to set it up?

Thanks,
  Reply With Quote
Old September 15th, 2023, 10:51 AM   #4
TheWaterboy
Lifetime Supporting Member + Moderator
United States

TheWaterboy is offline
 
TheWaterboy's Avatar
 
Join Date: May 2006
Location: State of Denial
Posts: 1,774
Check this box on the one you want to be the master and wait a bit. Then enable on the slaves.
I cant' recall the specifics at the moment but there is a voting that takes place and decides who the master is. You will need to look that up yourself.

The 5 indicators below the checkbox tell you who is what.

Time.jpg
__________________
There are 2 kinds of people in the world... (1) Those that can derive answers from incomplete Data
  Reply With Quote
Old September 15th, 2023, 10:53 AM   #5
Robobob
Lifetime Supporting Member
United States

Robobob is offline
 
Robobob's Avatar
 
Join Date: Apr 2004
Location: Toledo
Posts: 300
See chapter 2 of this manual.
https://literature.rockwellautomatio...t003_-en-p.pdf

It explains the use and setup of CIP Sync and Grandmaster clocks.

On the advanced tab of the Time/Date you will find the details for the grandmaster clock. The description will show the current grandmaster device. The priority 1 and 2 determine the grandmaster clock device the one with the lowest value on the network will become the grandmaster. If all devices have the same priority value the devices will find the best clock on the network and automatically use that device as grandmaster.
Clock.jpg

Last edited by Robobob; September 15th, 2023 at 11:11 AM.
  Reply With Quote
Old September 16th, 2023, 10:53 PM   #6
chavak
Member
Malaysia

chavak is offline
 
chavak's Avatar
 
Join Date: Jul 2002
Posts: 735
It's good to read this thread for some details

http://www.plctalk.net/qanda/showthread.php?t=124877
  Reply With Quote
Old September 17th, 2023, 02:32 PM   #7
tlf30
Lifetime Supporting Member
United States

tlf30 is offline
 
tlf30's Avatar
 
Join Date: Apr 2021
Location: Deadhorse Alaska
Posts: 131
While I don't have any motion controllers in my environment, I use a central PLC, and have written a routine that periodically checks clock drift and corrects it on all our PLCs in the field. We have several hundred controllers, and they are on different subnets. This works well in our environment.

I would not recommend syncing time on PLCs at a high frequency for anyone doing motion control. While I have never seen it myself, I have read where changing the time in the controller can have unexpected motion.

A coworker of mine also has stories about an automated timesync program at a manufacturing plant they worked at, which would cause the reports to be off by several seconds every time the PLC was time synced. They did not care about the timestamps, but more about the 24 hour totals. So they had logic in their reporting system that would correct the totals from the PLC after a time sync.
  Reply With Quote
Old September 18th, 2023, 12:35 PM   #8
TheWaterboy
Lifetime Supporting Member + Moderator
United States

TheWaterboy is offline
 
TheWaterboy's Avatar
 
Join Date: May 2006
Location: State of Denial
Posts: 1,774
Quote:
Originally Posted by tlf30 View Post
... and have written a routine that periodically checks clock drift and corrects it on all our PLCs in the field. We have several hundred controllers, and they are on different subnets. This works well in our environment.
I've never tried to update a CLX or CPLX clock yet over the wire and this is something I still need to create as I continue to transition old RTUs in the field from PLC'5s to CPLX. I update the PLC'5s clock by writing to the S registers, but just how do you change time on a CPLX (or CLX)? over the air... and in most cases over the VERY SLOW air? (if only they accepted NTP.... sigh)

Could you share your code or even some kind of template I can use to see if what you have accomplished would be possible in my telemetry? I'm using the Logix Clock Update tool but using a desktop as a sync source is just bad form, and only really works well locally and on the few cell modems I have scattered around that appear local to the tool. The slow VHF radio links need to be polled and I can't randomly throw out clock update transmissions into that, so I need to thread the update into existing polling.
__________________
There are 2 kinds of people in the world... (1) Those that can derive answers from incomplete Data
  Reply With Quote
Old September 18th, 2023, 01:42 PM   #9
harryting
Lifetime Supporting Member
United States

harryting is offline
 
harryting's Avatar
 
Join Date: May 2002
Location: Puget Sound
Posts: 2,588
I'm in the power industry right now and time-sync almost everything.

For ControLogix if you want great time-sync without much overhead. It may be worthwhile just to get a PTP enabled GPS unit. They are not cheap, but once you have one, CIP time-sync will be effortless. See Robobob's post for how to do it. Just set your GPS up to be the Grandmaster.
  Reply With Quote
Old September 18th, 2023, 01:50 PM   #10
TheWaterboy
Lifetime Supporting Member + Moderator
United States

TheWaterboy is offline
 
TheWaterboy's Avatar
 
Join Date: May 2006
Location: State of Denial
Posts: 1,774
The time source isn't the issue it's the bandwidth required to do the update that I need to minimize. I only require 1 minute accuracy so a once a day update is plenty. If the sync payload is small enough I could do this a few times a day and get better accuracy. The bandwidth I have to some sites in the valley is about equal to a 9600 baud serial modem because of terrain hopping.
__________________
There are 2 kinds of people in the world... (1) Those that can derive answers from incomplete Data
  Reply With Quote
Old September 18th, 2023, 04:35 PM   #11
tlf30
Lifetime Supporting Member
United States

tlf30 is offline
 
tlf30's Avatar
 
Join Date: Apr 2021
Location: Deadhorse Alaska
Posts: 131
Quote:
Originally Posted by TheWaterboy View Post
I've never tried to update a CLX or CPLX clock yet over the wire and this is something I still need to create as I continue to transition old RTUs in the field from PLC'5s to CPLX. I update the PLC'5s clock by writing to the S registers, but just how do you change time on a CPLX (or CLX)? over the air... and in most cases over the VERY SLOW air? (if only they accepted NTP.... sigh)

Could you share your code or even some kind of template I can use to see if what you have accomplished would be possible in my telemetry? I'm using the Logix Clock Update tool but using a desktop as a sync source is just bad form, and only really works well locally and on the few cell modems I have scattered around that appear local to the tool. The slow VHF radio links need to be polled and I can't randomly throw out clock update transmissions into that, so I need to thread the update into existing polling.
I'm at home right now (we all work 2 weeks on, 2 weeks off). I pinged a co-worker to send me the code. I'll PM it to you with some explanation of how it works once I get it.
  Reply With Quote
Old September 18th, 2023, 05:15 PM   #12
TheWaterboy
Lifetime Supporting Member + Moderator
United States

TheWaterboy is offline
 
TheWaterboy's Avatar
 
Join Date: May 2006
Location: State of Denial
Posts: 1,774
I appreciate that. Love that work shift too!
__________________
There are 2 kinds of people in the world... (1) Those that can derive answers from incomplete Data
  Reply With Quote
Old September 20th, 2023, 11:42 AM   #13
Andy Patel
Member
United States

Andy Patel is offline
 
Join Date: Nov 2019
Location: Jersey City
Posts: 8
Thank you everyone.
With your help, I was able to get it going.

Thanks again,
Andy
  Reply With Quote
Old September 20th, 2023, 11:47 AM   #14
JeremyM
Lifetime Supporting Member
United States

JeremyM is offline
 
JeremyM's Avatar
 
Join Date: May 2014
Location: Dallas, Texas
Posts: 1,196
Quote:
Originally Posted by Robobob View Post
See chapter 2 of this manual.
https://literature.rockwellautomatio...t003_-en-p.pdf

It explains the use and setup of CIP Sync and Grandmaster clocks.

On the advanced tab of the Time/Date you will find the details for the grandmaster clock. The description will show the current grandmaster device. The priority 1 and 2 determine the grandmaster clock device the one with the lowest value on the network will become the grandmaster. If all devices have the same priority value the devices will find the best clock on the network and automatically use that device as grandmaster.
Attachment 66479
Lowest priority1 is grandmaster.
Lowest priority2 is tiebreaker.
After that, the algorithm makes the call.
__________________
LogixLibraries
  Reply With Quote
Old October 17th, 2023, 11:28 AM   #15
Andy Patel
Member
United States

Andy Patel is offline
 
Join Date: Nov 2019
Location: Jersey City
Posts: 8
Quote:
Originally Posted by tlf30 View Post
I'm at home right now (we all work 2 weeks on, 2 weeks off). I pinged a co-worker to send me the code. I'll PM it to you with some explanation of how it works once I get it.
Can you send that code to me as well?
It's good to keep it handy.

Thanks,
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
NOP instruction foremanml LIVE PLC Questions And Answers 29 December 16th, 2022 12:41 PM
Any means elegant to read/write time of an AB CLX? iuhytvYUTCU LIVE PLC Questions And Answers 14 May 28th, 2022 12:23 PM
Logix Clock Synch Tool James42005 LIVE PLC Questions And Answers 4 March 8th, 2020 05:39 PM
CIP Sync Time setup MartyMaucher LIVE PLC Questions And Answers 2 September 2nd, 2016 01:41 PM
Output PC time to PLC for time sync russrmartin LIVE PLC Questions And Answers 9 July 20th, 2016 04:13 PM


All times are GMT -4. The time now is 07:30 AM.


.