E
Helo everybody,
problem is: i connect to device by Citect and retrieve register values in Variable Tag. Register value keeps in QWord format(LowWord+HighWord). I wrote function to recalculate value (res=LowWord(Tag)*66535+HighWord) but failed. So, Tag has correct value of register but did not passed to function. If i put constant value to function it works properly and failed when i try to use Tag. What i do wrong?
problem is: i connect to device by Citect and retrieve register values in Variable Tag. Register value keeps in QWord format(LowWord+HighWord). I wrote function to recalculate value (res=LowWord(Tag)*66535+HighWord) but failed. So, Tag has correct value of register but did not passed to function. If i put constant value to function it works properly and failed when i try to use Tag. What i do wrong?