Replies: 1 comment 2 replies
-
Hey ho! A DWORD (double word) contains 2 WORD and each WORD contains 2 BYTES -- 8 Bytes in sum. ;) Could this be the fault? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone !
I'm not very accustomed to working with bytes, so if someone can help me understand my issue, I'll be really glad.
I created a fake s7 server (thanks for the server class, so useful !!) and I can read the data from the datablock with a client. But I tried to put a DWORD in a db before byte_index 6 and when I read it, I have a completly different value. Same thing when I try with a REAL before byte_index 8 in a db.
Obviously, a DWORD is 6 bytes and a REAL 8 so it is related. But I'd like to know why.
And is it the same with a real s7 plc ? Because I know someone who wants to put data on the first bytes of many datablocks...
Thank you to everyone who can help me understand.
Beta Was this translation helpful? Give feedback.
All reactions