8/31/2023 5:25 PM | |
Joined: 1/21/2013 Last visit: 8/29/2025 Posts: 4087 Rating:
|
Hi REPLY73, Your screenshot shows exactly what you are asking for. You are passing a value of data type DInt - which is a 32-bit value - to the DWord %QD34. The "D" in DWord stands for double, because a word is 16 bits and double the size will be 32 bits. However, especially when communicating with other systems, the byte order can be a problem. If the two systems work with a different byte order, the value will not be what you expect. To solve this problem, one of the partners must swap the byte order. In the case of your PLC, you can do this with the "Swap" instruction. Kind regards |
Follow us on