11/14/2022 0 Comments Rslogix copy int to two bytesUse two scratch registers to reverse the order of the incoming words The LSW and MSW are in reverse order from the way we want to put them into the floating point register. In the PLC-5 floating-point format, the 32 bit data type is comprised of a sign bit (s), eight exponent bits (e), and twenty-three bits of aīecause the PLC-5 receives the least-significant word (LSW) first, it puts it first into the data table of the 1771-SDN block transfer. If the incoming number is a DeviceNet REAL number, it should conform to IEE754's definition of a single-precision floating point number just like the PLC-5 does. > How do I make the MSB and LSB convert to a Float. > AB PLC5 example: F9:0 = MSB Word 0, LSB Word 1 > However, the floating point value is split into 2 Integer words. Receiving a floating point value from a device over DeviceNet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |