godfrey Member Join Date Apr 2002 Location Charlotte, NC Posts 412 Jun 23, 2003 #1 Using RSLogix 500 can I MOV a float to an integer? If so, will the command round up, round down or just drop the fraction?
Using RSLogix 500 can I MOV a float to an integer? If so, will the command round up, round down or just drop the fraction?
Kim Gold Member Join Date Jun 2002 Location Stoney Creek, Ontario Posts 241 Jun 23, 2003 #2 See the following code:
chavak Member Join Date Jul 2002 Posts 750 Jun 23, 2003 #3 Take precautions not to move anything more than 32767, else the processor will fault on maths overflow error.
Take precautions not to move anything more than 32767, else the processor will fault on maths overflow error.
shahn4 Member S Join Date Feb 2003 Location Georgia Posts 104 Jun 24, 2003 #4 I believe you clould move more than 32767, however, the high-byte will be moved to the next integr register.
I believe you clould move more than 32767, however, the high-byte will be moved to the next integr register.