KB-27707: Synchronizing PLC’s and computer’s date/time (BIOS).

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

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *