Hello, I hope you can help me understand what I’m doing wrong. Here’s the situation:
Attached is an image showing (in a red box) the result of converting some data I receive through a socket. These data are stored in a structure I call DATA_IN, which is a type defined by me, BUFFER_DE_FICHERO_2K: ARRAY[0…2048] OF BYTE;
I receive 32-bit integers sent as Big Endian. I perform shifts of these bytes, storing them in DWORD (32b), and sum them with XOR.
My problem arises because the PLC behaves differently if the indices for the array are calculated in advance or if I calculate them dynamically.
I’m not sure if I’m overlooking something.
Thank you in advance for your time.
