Question:
How can I synchronize the PLC’s date/time with the computer’s date/time (BIOS)?
Solution:
To do so, use this script:
dim oShell
Set oShell = CreateObject(“WSCript.shell”)
oShell.run “cmd /K DATE “& Application.GetObject(“Dados.Data”).Value,0 ’12/18/2002″,0 ‘Set day
oShell.run “cmd /K TIME “& Application.GetObject(“Dados.Hora”).Value,0 ’12:00:00″,0 ‘Set time
Set oShell = Nothing