Stationmaster
Member
Am using an IDEC MICROSMART PLC, have a good deal of experience, but am having trouble getting it to read out negative numbers. I am using the (INTEGER) option for the ADD instruction but the sum keeps coming out in very high positive numbers for what should be a negative result. Positive sums display just fine. Any one had experience with this? I have scoured the manual, and the "help" pages and find nothing that helps. The manual even has an example:
-4 + -11 = -15
I put in the same values and get "65521" which apears to be the "maximum" less the sum (15)?
any help?
-4 + -11 = -15
I put in the same values and get "65521" which apears to be the "maximum" less the sum (15)?
any help?