
Kele • RUT-G Manual 2005 • www.kele.com • USA 888-397-5353 • International 901-382-6084
50
RS232/485 INTERFACE KEY
Transmitting RS485 to User Device from Frontier Network Interface Key (User Device Receiving Data)
The network interface key must be pulled (request update) by the user device for all data. The network interface key
will not transmit to the user’s device without first being polled. All policing action of the network is the responsibility of
the user’s device. There are no enable/disable or bus active inputs to the network interface key. When the network in-
terface key receives a pull request it will transmit to the user device the current requested data. If the ACK is enabled,
the user device must send an ACK character to the network interface key acknowledging the packet was received.
The user device must allow enough response time for a complete data transfer. This response time is the Gateway
processing (retrieving the data) and the data transfer from the Gateway interface key to the user device. The times
shown below
do not include
the pull request transmit time sent from the user device to the Gateway interface key.
For a 4800 baud communication rate, allow a response time of 120 ms.
For a 9600 baud communication rate, allow a response time of 60 ms.
For a 19,200 baud communication rate, allow a response time of 30 ms.
Transmitting RS485 to the Frontier Network Interface Key from the User Device
The network interface key is always waiting for data from the user interface. The address must match the network
interface key’s dip switch setting (refer to Table 6). There are no global addresses or special function addressing
available on the network interface key. All data packets must include the address as outlined in this text. Data can be
transmitted from the user device to the network interface key dependent only on the user’s control of the RS485 bus.
When the user device transmits data, the network interface key processor is interrupted and immediately starts to
read the incoming data packet. The address is compared to the dip switch setting and if a match is found, the data
is processed. If no match is found, the data is discarded. When the user device is sending data to a Frontier field de-
vice (RO-4, RDO-2, etc.) and if the ACK is enabled, the network interface key will send an ACK as outlined in Defi-
nitions “PACKET ACKNOWLEDGE (ACK) ENABLE/DISABLE.”
Note: When the interface key is sending a polled
(requested) data packet to the user interface, the transmitted packet is the ACK.
Transmission
Timeout Periods
or
Character Counts
must be used to prevent data buffer overruns. If the end char-
acter is not detected (or not sent), these measures provide a means to stop transmitting or receiving.
The following example can be used for determining transmission timeouts. Not all devices allow users to set timeouts
for communication ports, but for those that do, the following is a good process to use.
This timeout period is based on individual data packets. It uses the baud rate and packet size:
Timeout = 1.5 * (1/Baud) * 10 bits * number of bytes in data packet). The constant 1.5 value adds extra time for basic
processing and processor delays. If the timeout period is exceeded before the transmission is completed, the user
device must terminate the transmission.
For a 4800 baud rate and a 12 byte data packet (including start byte, end byte, and comma bytes), the Timeout Pe-
riod is approximately 38 ms. For a 9600 Baud rate and a 12 byte data packet, the Timeout Period is approximately 19
ms. For a 19,200 baud rate and a 12 byte data packet, the Timeout Period is approximately 10 ms. Because the data
packet transmissions vary by byte count, the timeout values must be calculated before each transmission.
Other means of control can also be used. Since data packet sizes are not known when receiving, this prohibits us-
ing a timeout based on packet size. Instead, test with character counting based on the maximum byte count possible
in the largest data packet (40 characters is a good number). As an alternative, or in addition to character counting,
a fixed maximum timeout can be used. Use 100 milliseconds for 4800 baud, 50 milliseconds for 9600 baud, and 30
milliseconds for 19,200 baud. These values allow buffering time for processing and may need to be adjusted depend-
ing on the application.
COMMUNICATION FORMAT
Содержание RUT-G 2005
Страница 1: ...RUT G Manual 2005...
Страница 9: ...Connecting Accessing ETHERNET...
Страница 14: ...LON INTERFACE KEY Diagrams Installation Con gurations And More...
Страница 41: ...LON INTERFACE KEY Kele RUT G Manual 2005 www kele com USA 888 397 5353 International 901 382 6084 41 NOTES...
Страница 42: ...ASCII RS232 485 Communications Diagrams Installation Con gurations And More...
Страница 61: ...TABLES...
Страница 62: ...LON INTERFACE KEY Kele RUT G Manual 2005 www kele com USA 888 397 5353 International 901 382 6084 65 TABLE 1...