Hi,
I have a PLC with some DATE_AND_TIME values (DT) that are periodically updated. The idea is use a OPC Tag for each one. But there is a problem with the format. The ignition date and time format is different from the Siemens one. SIEMENS Format is :
BYTE Contents BCD Code Limits
0 Year 90-99h (19__)
00-89h (20__)
1 Month 01-12 h
2 Day 01-31h
3 Hour 00-23h
4 Minute 00-59h
5 Second 00-59h
6 MSEC(high)
7 MSEC (low) 000-999h
The only solution I found is to put every byte in different tags and then generate a tag that is a String combining the diferent values. But this involves using 7 tags and some code for something that has to be simple. There is also the problem that doing this you need a function to transform from decimal to hex. Is there a easier and more direct solution?