Paul Chernoch
Paul Chernoch

Reputation: 5553

Modscan64 gives Timeout Errors for all responses

I am using Modscan64 to poll a service using TCP. I always receive this message:

** MODBUS Message TIME-OUT **

Is timeout really the issue?

How do I change the timeout? I see no settings for TCP Timeout. (googling explains how to set it for RTU only.)

If it is not really a timout, then what?

Here is a typical request / response:

01 00 00 00 00 06 01 04 00 00 00 02 04 04 42 ca 00 00

Request (12 bytes):

Response (6 bytes):

Does MODSCAN expect a TCP envelope in the response?

Do I need to do something to indicate byte order?

Upvotes: 1

Views: 2591

Answers (1)

Paul Chernoch
Paul Chernoch

Reputation: 5553

There is a MODBUS spec and a MODBUS implementation guide. The first is less detailed and was what I was using. The second has more details, including crucial information:

MODBUS responses need to have an MBAP header, just like the requests.

See section 3.1.2 of: https://modbus.org/docs/Modbus_Messaging_Implementation_Guide_V1_0b.pdf

Upvotes: 1

Related Questions