7/26/2011 12:24 PM | |
Posts: 12 Rating:
|
Hi guys, searched and don't found some useful solution. I have unusual problem. I have 2 int variables: HourCounter and CounterF7 in Siamatic Manager simulation they seem to be the same, but in VAT and PLCSim simulation, they are different. Actually, CounterF7 changes very strange, i want him to increase 1 by 1, as HourCounter, but it increases every 32 items (value 20 in HEX). so to clarify: HourCounter CounterF7 1 0 2 0 3 0 . . 31 0 32 32 (20 Hex) 33 32 . 63 32 64 64 . 96 96 . 127 128 160 0 and so on... Attached pics(1,3 from simatic manager; 2,4 from vat) AttachmentPics.zip (28 Downloads) |
7/27/2011 10:37 AM | |
Posts: 12 Rating:
|
Hi Aret, actually i want that code work only when time is like i set. I want HourCounter set to 0 when the time cames, for example in 11:00:00. But it seems like don't compare at all. I also done this in KOP (attached pic 1.jpg), it looks ok, and it's realy simple code, i don't know what is wrong. MM1234, yes, i know that U() is not really nesessary, but i was just trying to make it work also, when i trying 2.jpg it works ok. AttachmentAT.zip (30 Downloads) |
Last edited by: Oleh at: 7/27/2011 11:05 AMLast edited by: Oleh at: 7/27/2011 10:39 AM |
|
Follow us on