Hi all... I have an easy one for you, of which, I need some clarification. I have searched and have not found the answer... and thus...
I have a PLC-5 program that uses several FLL instructions, each having a negative number as the source. As such I have played around a bit to see what exactly this negative number is doing and have made an assumption:
Reference the attached image…
For the source, I understand that a positive decimal number is placed into the destination as a binary number. It would appear to me that a negative decimal number does the same, however, the binary number is now inserted with the opposite value: the 1’s are now 0’s and a 0’s are now 1’s… Except for all the bits up to and including the first bit location that would have normally been a 1 if the source had been a positive decimal number. These “excepted” locations remain unchanged.
And thus, I am looking for clarification…
Thanks in advance.
I have a PLC-5 program that uses several FLL instructions, each having a negative number as the source. As such I have played around a bit to see what exactly this negative number is doing and have made an assumption:
Reference the attached image…
For the source, I understand that a positive decimal number is placed into the destination as a binary number. It would appear to me that a negative decimal number does the same, however, the binary number is now inserted with the opposite value: the 1’s are now 0’s and a 0’s are now 1’s… Except for all the bits up to and including the first bit location that would have normally been a 1 if the source had been a positive decimal number. These “excepted” locations remain unchanged.
And thus, I am looking for clarification…
Thanks in advance.