1/27/2021 7:57 PM | |
Joined: 7/3/2006 Last visit: 12/4/2022 Posts: 70 Rating:
|
this is the buffer data I've now after loading OB121 |
1/28/2021 1:29 AM | |
Joined: 10/7/2005 Last visit: 3/20/2023 Posts: 2962 Rating:
|
Hi Hassan
your above code will (and must) execute correctly and does so when run in my PLCSIM as per attached pic. You will though get "alignment errors" that you are seeing in your diag buffer if you have a bit address <> 0 during BYTE, WORD or DWORD access. In other words, any of the examples below will cause alignment errors so please check your actual code again to see if this is the case:
|
Cheers |
|
Follow us on