
adccommunitymod (AutomationDirect) asked a question.
Trigger tag by date
Created Date: March 14,2018
Created By: Jhebert2
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
I am a beginner with plcs, I am using a productivity 2000. I am trying to understand how to trigger a tag when a specified date is reached and am unsure how to do this, or if is even possible. I understand it could be done with a timer using hours, but would like to know if it can be done by using a date. thank you, Jerry
Created Date: March 14,2018
Created by: Jhebert2
I am a beginner with plcs, I am using a productivity 2000. I am trying to understand how to trigger a tag when a specified date is reached and am unsure how to do this, or if is even possible. I understand it could be done with a timer using hours, but would like to know if it can be done by using a date.
thank you,
Jerry
Created Date: March 14,2018
Created by: kewakl
Try working with some of the system time/date tags
Clock Seconds SWR-001519 current Real Time Clock Seconds
Clock Minutes SWR-001520 current Real Time Clock Minutes
Clock Hours SWR-001521 current Real Time Clock Hours
Clock Day of Week SWR-001522 current Real Time Clock Day of the week (1=Mon ...7=Sun)
Clock Day SWR-001523 current Real Time Clock Calendar Day
Clock Month SWR-001524 current Real Time Clock Calendar Month
Clock Year SWR-001525 current Real Time Clock Calendar Year
.
.
. Clock Day 1 Clock Month 1 NewYear
.----------------]= = ^
.
.
.
.
Created Date: March 14,2018
Created by: Jhebert2
Thank you, I will give that a try
Created Date: March 15,2018
Created by: MikeN
Is there a way to tell the program/CPU to pull time data from a NTP server with an ip address? It looks like the only way to set the CPU date and time is to use the 1 instruction under the "system functions " section, but there does not appear to be an easy way to put the correct data in the tags that instruction would use unless I am missing it somewhere.
It would seem the only way right now is to run an expensive SCADA type software to let the program pull data from a server on your network with the software needed to interface with the Productivity and feed it the server's time and date info. Would be much easier if it had instructions like DO-More where you have a "NETTIME " instruction to pull froim a proper NTP server. And "PING " instruction to do things like confirm LAN and WAN connectivity in the program:
@P3K_ADC_End
{ "alt ": "Click image for larger version Name:\tNETTIME.png Views:\t1 Size:\t40.2 KB ID:\t111909 ", "data-align ": "none ", "data-attachmentid ": "111909 ", "data-size ": "full "}
It would help these trigger by date or time situations be significantly more useful if a proper time could easily be pulled from a reliable time source without jumping through a bunch of hoops.