Rockwell Automation Publication 5069-UM003B-EN-P - January 2020
51
Compact 5000 I/O Serial Module Features
Chapter 3
Minimum DF1 Half-Duplex Master ACK Timeout
The governing timeout parameter to configure for a DF1 Half-Duplex Master is
the ACK Timeout. The ACK Timeout is the amount of time you want the serial
module to wait for an acknowledgment of its message transmissions. Set in 20
millisecond intervals, the value is the amount of time the master will wait for:
• An ACK to be returned by a slave when the master has just sent it a
message, or
• A poll response or message to be returned by a slave when the master has
sent it a poll packet.
The timeout must be long enough that after the master has transmitted the last
character of the poll packet, there is enough time for a slave to transmit (and the
master receive) a maximum sized packet before the time expires.
To calculate the minimum ACK timeout, you must know:
• The modem baud rate
• Maximum sized data packet (the maximum number of data words that a
slave write command or read reply packet might contain)
• The RTS/CTS or ‘turnaround’ delay of the slave modem
• The configured RTS Send Delay in the slave
• The program scan time of the slave
Determining Minimum Master Serial Port ACK Timeout
To determine the minimum ACK Timeout, you must first calculate the
transmission time by multiplying the maximum sized data packet for your
serial module by the modem rate in ms/byte. For an example, we will assume
communications with SLC 5/03 slaves (103 data words or 224 ms.
For approximate modem transmission rates, see the following table.
Next, you must determine the average slave program scan time. For this example,
lets assume an average slave program scan time of 20 ms. Remember, program
scan time will vary by application.
Finally, you must determine the larger of two values, either the configured slave
RTS Send Delay or the turnaround time of the slave modem. To find the RTS
Send Delay time, navigate to the module definition page and select channel 1 to
open the configuration screen. The RTS Send Delay time is in intervals of 20 ms,
so with a value of 3 in the box, the RTS Send Delay time would be 20 ms
multiplied by 3. Using this value (60 ms) for our example, and assuming that the
Table 14 - Approximate modem transmission rates
Modem bps
Approximate ms/byte
4800
2 ms/byte
9600
1 ms/byte
19200
0.5 ms/byte