Modbus IP Slave - Code 40

3 Posts
2 Users
0 Likes
17 Views
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
Topic starter
 

Hello,

I tried to implement the XBUS_IP_SLAVE protocol and have always a time out with the code 40.
According to the documentation it is the following error:
Frame size not a multiple of 16. Only for WordBit frame type.

My frame is a standard WORD frame.

Any idea?

Nico
Version: 11.2 and 12.0

My configuration in screenshot

4237=634 Slave
4237=630 Slave 02
4237=631 Slave 03
4237=632 Slave 04
 
Posted : 26/06/2018 3:17 pm
e.mahaut
(@e-mahautarcinfo-com)
Posts: 270
Member Moderator
 

Hi Nico,

Another reason for code 40 is the PLC slave memory state is not initialized.

4238=635 MbIpSlaveNotInit

Edouard

 
Posted : 26/06/2018 4:19 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
Topic starter
 

Indeed that was the reason!!
I will make a doc. SPR

Thanks Edouard.

 
Posted : 27/06/2018 7:42 am