Jump to content

Recommended Posts

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?

Link to comment
Share on other sites

About the second question - you can store/copy received MI to another MI and there to perfomr Swap. In this case you will have two registers - each one with its value.

About 64 bit Floating point - currently Unitronics OPLC support 32 bit FP. You can receive the bitmap in two sequental DW, but I don't know how you can decode them to receive the floating point number.

Link to comment
Share on other sites

About the second question - you can store/copy received MI to another MI and there to perfomr Swap. In this case you will have two registers - each one with its value.

If I copy MI to another MI during every program scan, the swapped value of another MI will be overwritten by the unswapped value in the next program scan. There must be condition for copiing.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...