There are two options for this, simply open the PLC processor properties then click the button to sync the PLC with the workstation. Or use the Rockwell tool to sync everything
Can you use a GSV to obtain the IP of the controller or module (ex: PF525)? If not, how would you display the IP of the controller or module? Thanks for your videos
Hi shane, I have done the same in my program, using the Emulate 5570 Studio 5000, but I don´t receive anything in System_Timming.Year // the routine is called, the data type is created as your recommendations... do you have any idea about why is not it working?
We have the code for that in one of our logic processors. I wanted it for a dynamic password generator. I didn't realize it would be so complex. Our current calendar system is a 200 year cycle. I'll try and post a link to the file.
I have go to controller property and select set date, time and zone from workstation under Date/Time tag. And it show correct date and time as per my workstation. However when I create GSV and follow the instructions, the retrieved hours is 4 hours more compare my workstation
I just tried setting this up and mine defaulted to 24 hour military time, but I did have to change mine to localdatetime to get the right hour displayed
It is just an example and a free TH-cam video that was done off the cuff....meaning realtime so it is best to show the learning as things happen to give everyone the best chance to learn. Please send me a link to the video you did and I will be happy to start learning from you....after all, we learn as we do and should continuously learn. Programming isn't the same for all, in fact, oftentimes you can do things completely different and get the same outcome.
@@ShaneWelcher Hey man, sorry if I offended you or something, I appreciate all of your videos. I was just fumbling through until I found this one that helped tremendously, I just noticed that we made the same mistake with getting the local time instead of the UTC time and I figured for anyone else watching that that ran into the same issue it's nice to see in the comments where the fix could be
Awesome video as always man. Curious though, how do you have a battery fault from an emulated controller?
Depending on the version of the emulator, some show battery faults
@@ShaneWelcher good to know, thank you
Why does my PLC appear the time in the past instead of today date? Do I have to config something in the PLC? Thank.
There are two options for this, simply open the PLC processor properties then click the button to sync the PLC with the workstation.
Or use the Rockwell tool to sync everything
Can you use a GSV to obtain the IP of the controller or module (ex: PF525)?
If not, how would you display the IP of the controller or module?
Thanks for your videos
If you want to know the IP addresses then open the properties of the device to see that data.
Not sure why you want to pull this from a GSV
@@ShaneWelcher Thanks, I was hoping to obtain these IP addresses and then transfer to a HMI display.
Thanks a lot,,,,,HAT's OFF
How to set time for 1444 dynamic measurement module?
Maybe this will help mmini.me/1444-PDF
Awesome lesson!
Glad that it was helpful.
thank you very much :)
Hi shane, I have done the same in my program, using the Emulate 5570 Studio 5000, but I don´t receive anything in System_Timming.Year // the routine is called, the data type is created as your recommendations... do you have any idea about why is not it working?
Not off hand, if you do as I show them it should work just fine
Thanks for the video: is there any way to know the day of the week (Sunday, Monday, etc.)?
Thanks.
You would have to write code for leap years and such but yes....only if you write logic for it.
Depending on hardware and software versions
@@ShaneWelcher Ok, I wish there was a way to get that information from the CPU, something like a number 1=Sunday, 2=Monday, and so on...
@@Andrea_69
I agree.
I think in the L8 processors there is an option
@@ShaneWelcher Well, I was thinking about doing it on an existing machine with the L71-S... thank you very much!
We have the code for that in one of our logic processors. I wanted it for a dynamic password generator. I didn't realize it would be so complex. Our current calendar system is a 200 year cycle. I'll try and post a link to the file.
why my time different 4 hours between PC and PLC ?
Use local date & time to get the right time without a difference
I have go to controller property and select set date, time and zone from workstation under Date/Time tag.
And it show correct date and time as per my workstation. However when I create GSV and follow the instructions, the retrieved hours is 4 hours more compare my workstation
@@lirn3171 use local date & time for the GSV type
@@ShaneWelcher noted, it work. Thanks Sir.
How do you change the time format from 12 hr clock to 24 military time?
I just tried setting this up and mine defaulted to 24 hour military time, but I did have to change mine to localdatetime to get the right hour displayed
Hey Shane, good job but shouldn't your "microseconds" be "milliseconds"
Direct info from the PLC processor
I believe your day and hour were off because you were using DateTime for your Attribute Name in the GSV instead of LocalDateTime
It is just an example and a free TH-cam video that was done off the cuff....meaning realtime so it is best to show the learning as things happen to give everyone the best chance to learn.
Please send me a link to the video you did and I will be happy to start learning from you....after all, we learn as we do and should continuously learn.
Programming isn't the same for all, in fact, oftentimes you can do things completely different and get the same outcome.
@@ShaneWelcher Hey man, sorry if I offended you or something, I appreciate all of your videos. I was just fumbling through until I found this one that helped tremendously, I just noticed that we made the same mistake with getting the local time instead of the UTC time and I figured for anyone else watching that that ran into the same issue it's nice to see in the comments where the fix could be