# Vitaly K.

Members

10

## Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

0

1. ## Shift right (FB SHR)

I understand that this bit means the sign. It isn't moving left or right like other bits. One more example is below. 8000h = 1000000000000000 E000h = 1110000000000000 But if I shift right 2 positions the result must be 2000h = 0010000000000000.
2. ## Shift right (FB SHR)

I understand this solution. I think my solution (multipliing by -1) isn't worse. And I suppose the fact (MSB must be 0 if you shift right) must be noticed in help-files.
3. ## Shift right (FB SHR)

Hi. Dividing by 8192 gives the same result. I see the solution. I must analyze the result and multiply by -1 if MSB=1. But seems to me that it is PLC's bug. There must be possible to shift bits from any position.
4. ## Shift right (FB SHR)

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?
5. ## Shift right (FB SHR)

I think the result must be 0000000000000100 but not 1111111111111100.
6. ## Shift right (FB SHR)

In my application I shift right 13 bits in a numeric value (for example 8000h). FB SHR puts FFFCh on its output. Is it right?
7. ## IEEE 754 double float

I use FB protocol. Thank you for the answer.
8. ## IEEE 754 double float

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.
9. ## IEEE 754 double float

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?
10. ## Modbus ASCII

Hi. Who can give me an example how to connect PLC Unitronics and some device supporting only Modbus ASCII? I know that Unitronics supports only Modbus RTU. I need a program using FB Protocol.
×