| View previous topic :: View next topic |
| Author |
Message |
jonnystekkino1 Junior


Joined: 17 Dec 2015 Posts: 18 Location: Berghem
|
Posted: 21/11/2016 13:20 Post subject: Get system date time in a Script |
|
|
Goodmorning to All.
I need to get the System date and time from a COMPACT PANEL TP1900, in a VB script.
But I could't found this variable...
Someone have already done this thing???
Thanks
 |
|
| Back to top |
|
 |
machoka Junior

Joined: 25 Oct 2016 Posts: 5
|
Posted: 21/11/2016 18:26 Post subject: Re: Get system date time in a Script |
|
|
| jonnystekkino1 wrote: | Goodmorning to All.
I need to get the System date and time from a COMPACT PANEL TP1900, in a VB script.
But I could't found this variable...
Someone have already done this thing???
Thanks
 |
Clock synchronization between a HMI operator panel and a SIMATIC PLC
https://support.industry.siemens.com/cs/document/69864408/clock-synchronization-between-a-hmi-operator-panel-and-a-simatic-plc
How do you synchronize the time of the HMI Basic Panel with an S7-1200 PLC?
https://support.industry.siemens.com/cs/document/39182145/how-do-you-synchronize-the-time-of-the-hmi-basic-panel-with-an-s7-1200-plc-?dti=0&dl=en&lc=nl-NL |
|
| Back to top |
|
 |
jonnystekkino1 Junior


Joined: 17 Dec 2015 Posts: 18 Location: Berghem
|
Posted: 22/11/2016 08:59 Post subject: |
|
|
Thank you for the reply,
but I don't need to syncronize the panel with the plc,
I wanna take the DATE and TIME from the system and put it in a VARIABLE for other use.
 |
|
| Back to top |
|
 |
machoka Junior

Joined: 25 Oct 2016 Posts: 5
|
Posted: 22/11/2016 18:52 Post subject: |
|
|
| jonnystekkino1 wrote: | Thank you for the reply,
but I don't need to syncronize the panel with the plc,
I wanna take the DATE and TIME from the system and put it in a VARIABLE for other use.
 |
Maybe you do not understand correctly
As long as you have synchronized date and time PLC <->HMI you then can read from PLC the time from HMI.
In STEP 7 (TIA Portal), how can you input, read out and edit the date and time for the CPU modules?
https://support.industry.siemens.com/cs/document/43566349/in-step-7- (tia-portal)-how-can-you-input-read-out-and-edit-the-date-and-time-for-the-cpu-modules-?dti=0&lc=en-WW
How can you read out the date and time with SFC1 (READ_CLK) and set them with SFC0 (SET_CLK)?
https://support.industry.siemens.com/cs/document/21222026/how-can-you-read-out-the-date-and-time-with-sfc1- (read_clk)-and-set-them-with-sfc0-(set_clk)-?dti=0&lc=en-WW
Time synchronization - Time synchronization in the automation environment
https://support.industry.siemens.com/cs/document/86535497/time-synchronization-time-synchronization-in-the-automation-environment?dti=0&lc=en-WW
example
http://www.mediafire.com/file/o4gxgzeekkan5xo/DATE_TIME_FROM_DISPLAY.rar |
|
| Back to top |
|
 |
|