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 December 2nd, 2021, 02:06 PM   #1
JasonWade
Member
United Kingdom

JasonWade is offline
 
Join Date: Oct 2005
Location: Preston
Posts: 148
Panelview 5310 to Compact Logix 5370 Time Synchronisation

Does anyone know how to synchronise the time between these two?

I had thought that the HMI could write a LINT (time/date in microsecronds) to the PLC, but now I find that the 5x70 range can't properly handle LINT types.

So the only way I know now, is;
  1. Add 7 Data input fields on the HMI (Y,M,D,H,M,S,uS)
  2. Add a 'WRITE PLC TIME' button
  3. Use an SSV to set the PLC time
  4. Compile a DATA string and a TIME string in the PLC
  5. Have the HMI read these strings and set its own time/date with the HMI system tags

This seems an awfully long winded workaround. Anyone know a better way?
  Reply With Quote
Old December 2nd, 2021, 02:34 PM   #2
saultgeorge
Lifetime Supporting Member
United States

saultgeorge is offline
 
saultgeorge's Avatar
 
Join Date: Jul 2015
Location: Detroit
Posts: 475
Quote:
Originally Posted by JasonWade View Post
Does anyone know how to synchronise the time between these two?

I had thought that the HMI could write a LINT (time/date in microsecronds) to the PLC, but now I find that the 5x70 range can't properly handle LINT types.

So the only way I know now, is;
  1. Add 7 Data input fields on the HMI (Y,M,D,H,M,S,uS)
  2. Add a 'WRITE PLC TIME' button
  3. Use an SSV to set the PLC time
  4. Compile a DATA string and a TIME string in the PLC
  5. Have the HMI read these strings and set its own time/date with the HMI system tags

This seems an awfully long winded workaround. Anyone know a better way?
Hi, I'm not sure about the 5310, however another member on the forum here gave me a time/date stamp routine for Rockwell. One could then move that final value into an HMI numerical indicator. The routine uses "Wall Clock" in Rockwell. If you want it I'll PM it to you. I think I was using V. 20.04 and PV 7. Hope this helps.
I used it to do exactly that, write a time to the HMI, and also I had to make 6 histories of previous times that were sent into the HMI screen that needed this time history. Obviously you wouldn't need history, just real time showing in the numerical display.
__________________
"Instant success teaches one nothing. Failure provides the tools and instructions one needs to succeed."
  Reply With Quote
Old December 2nd, 2021, 03:39 PM   #3
JasonWade
Member
United Kingdom

JasonWade is offline
 
Join Date: Oct 2005
Location: Preston
Posts: 148
Hi thanks for the reply, however I think the solution for the PV+ doesn't work for the PV5000 range

I do have some code for this combination (using SSV to set the controller time), but as I say, it's long winded and clunky (the HMI needs extra time/date fields).
  Reply With Quote
Old December 2nd, 2021, 03:45 PM   #4
saultgeorge
Lifetime Supporting Member
United States

saultgeorge is offline
 
saultgeorge's Avatar
 
Join Date: Jul 2015
Location: Detroit
Posts: 475
Quote:
Originally Posted by JasonWade View Post
Hi thanks for the reply, however I think the solution for the PV+ doesn't work for the PV5000 range

I do have some code for this combination (using SSV to set the controller time), but as I say, it's long winded and clunky (the HMI needs extra time/date fields).
Page 66 of the manual explains how to set the time and time zone. Perhaps since the processor is synced to PC time and the PC usually comes from the internet then one could set the time on the 5310 as per instructions and that would match with the PLC.
This seems awfully difficult to just get a time display on an HMI.
__________________
"Instant success teaches one nothing. Failure provides the tools and instructions one needs to succeed."
  Reply With Quote
Old December 2nd, 2021, 04:34 PM   #5
JasonWade
Member
United Kingdom

JasonWade is offline
 
Join Date: Oct 2005
Location: Preston
Posts: 148
Quote:
Originally Posted by saultgeorge View Post
Page 66 of the manual explains how to set the time and time zone. Perhaps since the processor is synced to PC time and the PC usually comes from the internet then one could set the time on the 5310 as per instructions and that would match with the PLC.
This seems awfully difficult to just get a time display on an HMI.
I didn't properly explain WHY I'm doing this;

As far as I know no tag based alarms are possible on this PLC, so I am using ALMD instructions (in the PLC) to generate alarms on the HMI. These alarms are logged in the HMI with a PLC clock timestamp (I think?).

So the PLC time needs to be accurate, when it drifts, it needs to be settable from the HMI.

The HMI already has pre-defined pages for setting its clock, so if there was a simple way to have the PLC adopt the HMI time, this seems like plan A.

Plan B I already have (as described above)
  Reply With Quote
Old December 2nd, 2021, 06:00 PM   #6
JasonWade
Member
United Kingdom

JasonWade is offline
 
Join Date: Oct 2005
Location: Preston
Posts: 148
Ok, for anyone faced with this issue there appears to be a Rockwell AOI already written here;

LINT (64-bit time) <--> Date and Time (7 DINTS)

ID 78107

https://www.rockwellautomation.com/s...pLinking=false
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


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
Allen Bradley Free running counter or clock - CST - and time synchronization V0N_hydro LIVE PLC Questions And Answers 7 August 15th, 2019 01:18 PM
Compact Logix RTC Clock alive15 LIVE PLC Questions And Answers 6 July 19th, 2019 07:59 AM
Produce and consume tags between guard logix and compact logix JackM LIVE PLC Questions And Answers 3 March 3rd, 2019 04:22 PM
panelview plus 1250 and compact logix shkoko2000 LIVE PLC Questions And Answers 6 January 28th, 2016 09:56 PM
NOP instruction foremanml LIVE PLC Questions And Answers 26 September 8th, 2014 05:40 PM


All times are GMT -4. The time now is 11:49 PM.


.