This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Script to get the system time and load it to the logic machine.
#4
You could do it from visu with such script
Code:
date = grp.getvalue('date_object')
time = grp.getvalue('time_object')

cmd = string.format("date -s '%d-%d-%d %d:%d:%d'", date.year, date.month, date.day, time.hour, time.minute, time.second)
os.execute(cmd)
------------------------------
Ctrl+F5
Reply


Messages In This Thread
RE: Script to get the system time and load it to the logic machine. - by Daniel - 27.08.2019, 07:52

Forum Jump: