Modbus data 32 bit
It means Slave is sending data as 2 words (4 Bytes) with request of 1 (2 Bytes) as a default. When I make request of 2 words, I am getting back data of 4 words.
While testing on AC500, I am getting following error
8215: Invalid length COM_MOD_MAST: Invalid data length received
Is there any method to eliminate above error?
I have tried defining one word as a request and DINT address at DATA at modbus block. Still it is not working out.
here is my working example for read of 2 consequence words.
You have to use ADR block at DATA input and variable of type DWORD (DINT will not work) at ADR block !
May be have to try with FCT=3 or 4:
FCT_READ: BYTE := 3;
START_ADDRESS_ANSW: WORD := 1001;
NUMBER_REG_READ: WORD := 2;