Jump to content

Vitaly K.

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by Vitaly K.

  1. If you would like to see what is happening with the bits, i would recommend using the memory field and setting it up like in this image. You can watch the bits shifting right. If the MSB is a 0, it will shift in a 0, and if it is a 1, it will shift in a 1.

    8000h has MSB=1. So MI will be filled by 1 while shifting. Am I right?

    Then how can I fill MI by 0 while shifting to get 0000000000000100?

  2. PLC V130 receives double float (64 bit) as 8 bytes with the following format:

    http://en.wikipedia.org/wiki/IEEE_754-1985#Double-precision_64_bit

    Can I easily get double float like here: http://www.unitronics.com/forum/topic.asp?TOPIC_ID=2102&SearchTerms=swap+bytes ?

    And one more question about FB Swap bytes. It puts swapped bytes into the same MI's. But these MI's are cyclically got from COM-port. So MI's values blink: swapped-unswapped. How can I avoid of the blinking?

×
×
  • Create New...