Reputation: 81
I am looking for a tag in KepServerEX 6 to get the current system date and time, these tags could be used for further usages such as PLC date time updates.
The time must be separated into simple HH and MM tags.
I have searched in the simulator and advanced simulator tags but nothing found.
Any help appreciated
Upvotes: 1
Views: 970
Reputation: 1
With an OPC-Ua client, exploring the KepwareEX 6 opc-ua server tags (in my case namespace is 2) there are:
ns=2;s=_System._Time
ns=2;s=_System._Time_Hour
ns=2;s=_System._Time_Hour24
ns=2;s=_System._Time_Minute
You can cast them (the last 3 tag that are numbers) in strings using a derived advanced tag. I not found the solution to preserve the 2 char format (01:01 become 1:1)
Alternatively you can use the HH:MM:SS _System._Time string directly that respect the format.
Upvotes: 0
Reputation: 49
For that you could mount a local mqtt broker that retrieves the srtructre of mqtt like:
Links example:
>http://localhost/webservices/home/GETSERVERTIME+Hour
> http://localhost/webservices/home/GETSERVERTIME+Minutes
> http://localhost/webservices/home/GETSERVERTIME+Seconds
mount a mqtt client on your kepserverex
Maybe Using c# could be more easy to you:
C# .net guide
Also you can mount a Modbus master on your windows and retrive the info you need with modbus tcp/ip client, i think this is easiest way: Mosbus master and slave c# .net
Upvotes: 0