Unity pro DATE and TIME STL

Suncrimes

Member
Join Date
Feb 2012
Location
Sweden
Posts
6
Hi guys!

Im trying to make a program in STL in UNITY PRO.

I want to move a value each month and store it in a array for 2 years, so i got 2x arrays one for each year, and at new years eve i want to overwrite the old year so i only store 2 years at the same time.

Ive been googling och searching to find a way to make my plc store a value at the start of a new month.
And found this variabel that exsist in schneider's plcs.

SW52, system variabel thats shows month and day. (IN BCD)

Feb 29 = 0229 = 0000 0010 0010 1001
Mar 29 = 0329 = 0000 0011 0010 1001
0629 = 0000 0110 0010 1001
1029 = 0001 0000 0010 1001
1229 = 0001 0010 0010 1001

And from this variabel i hope i can tell the plc when to store the value.

Im new at Unity, done most work in S7 and dont know how to read the BYTE with the month and ignore the day byte in the word.

Hope someone understand what i mean and got a quick answear.
 

Similar Topics

Hello, I am using Unity pro V15. I have Quantum CPU 671 and Ethernet NOE 77101 configured. I have configured IO scanning on NOE. I have attached...
Replies
5
Views
160
HELLO MY FRİENDS ı have problem. ı tought you can solved thıs problem for me. First of all When I checked all the cable connections of the...
Replies
0
Views
395
Hi All, I haven't installed Unity Pro in years and needed to install it recently. I initially tried installing Version 11.1 and the whole...
Replies
3
Views
675
Hello i want to implement a Read_var / Write_var functions to communicate with a modbus tcp device at the moment i use the unity simulator at the...
Replies
4
Views
1,892
Hi, I've exported a PL7 application to the .FEF file succesfully. Imported the .FEF file in my Unity Pro project, but two of the five sections in...
Replies
0
Views
761
Back
Top Bottom