plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Get system date time in a Script

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIMATIC Automation Systems -Reg.U
View previous topic :: View next topic  
Author Message
jonnystekkino1
Junior
Junior
jonnystekkino1

Joined: 17 Dec 2015
Posts: 18
Location: Berghem

PostPosted: 21/11/2016 13:20    Post subject: Get system date time in a Script Reply with quote

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


:-D
Back to top
View user's profile Send private message
machoka
Junior
Junior


Joined: 25 Oct 2016
Posts: 5

PostPosted: 21/11/2016 18:26    Post subject: Re: Get system date time in a Script Reply with quote

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


:-D


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
View user's profile Send private message
jonnystekkino1
Junior
Junior
jonnystekkino1

Joined: 17 Dec 2015
Posts: 18
Location: Berghem

PostPosted: 22/11/2016 08:59    Post subject: Reply with quote

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.

:smile:
Back to top
View user's profile Send private message
machoka
Junior
Junior


Joined: 25 Oct 2016
Posts: 5

PostPosted: 22/11/2016 18:52    Post subject: Reply with quote

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.

:smile:


Maybe you do not understand correctly
Get system date time in a Script Re: Get system date time in a Script
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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIMATIC Automation Systems -Reg.U All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro