Appendix A: Adding Data Field Confirmation

With serial communications in a laboratory environment, the possibility of a communication error occurring is minimal. However, in a harsh or an industrial environment the possibility increases. A communication error occurs when a bit transmitted as a “1” is received as a “0” or vice versa. If the 485SDA10 receives an error in one or more of the first four command characters (“!0xx”), the unit will not execute the command. However, if the 485SDA10 receives a communication error on a data byte (channel byte for Read Analog command or state byte for Set Output State command), the command will be executed since the unit has no way of knowing that there was an error.

To provide the 485SDA10 with a way of detecting errors in the data fields, an additional set of commands can be used. This set of commands begins with the “#” (23h) character, instead of the “!” (21h) character. Refer to Table A-1. With these commands every data byte that is transmitted or received is followed by its complement.

Example A.1 - To read A/D channel zero: Command syntax:

#{addr}RA{00}{FF}

Response syntax:

{ch0 msb}{~ ch0 msb}{ch0 lsb} {~ ch0 lsb} Where “~” is used to indicate the “complement of.”

If A/D channel 0 has a reading of 1, the following would be received:

{00}{FF}{01}{FE}

Where FFh is the complement of 0 and FEh is the complement of 1. The complement of number “x” can be calculated in QuickBasic as follows:

comp = (NOT x) AND &HFF

485SDA103798 Manual

Appendix A

A-1

B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 434-7094

Page 33
Image 33
B&B Electronics RS-485 manual #addrRA00FF, 00FF01FE, Comp = not x and &HFF

RS-485 specifications

B&B Electronics is renowned for its reliable and efficient solutions for industrial communication, and their Multi-Interface Ethernet Serial Servers stand out as versatile tools for connecting legacy serial devices to modern Ethernet networks. The compatibility with various serial communication protocols, including RS-485, RS-232, and RS-422, makes these servers indispensable in numerous applications that require reliable data transfer.

One of the main features of B&B Electronics Multi-Interface Serial Servers is their ability to support multiple serial communication standards. This flexibility allows businesses to integrate older equipment with newer technologies seamlessly. The servers can act as a bridge, ensuring that data from RS-232 devices can be transmitted over Ethernet networks without modification.

These servers also boast a robust design that is built for industrial environments. With an operating temperature range suitable for harsh conditions, they ensure uninterrupted service in settings such as factories or outdoor installations. The metal housing of the devices provides durability and protection from physical damage, ensuring long-lasting performance.

In terms of connectivity, B&B Electronics Multi-Interface Serial Servers come with numerous options to accommodate different network configurations. They support various IP addressing schemes, allowing for easy integration into existing network infrastructures. Their Ethernet compatibility means they can handle high-volume data traffic, making them ideal for applications that demand high-speed communication.

Another significant feature is their user-friendly configuration options. The servers can be configured via a web interface, providing an intuitive and straightforward approach for users to set up and manage their devices remotely. This feature is especially beneficial for businesses with distributed operations, as it allows for easy monitoring and management from a central location.

The serial servers also incorporate advanced technologies such as TCP/IP and UDP protocols, enhancing data transmission reliability. This ensures that even in instances of network interruptions, data is not lost, thus maintaining the integrity of information being communicated between devices.

In summary, B&B Electronics Multi-Interface Ethernet Serial Servers serve as a crucial link between legacy serial devices and modern Ethernet networks. Their flexibility, robust design, and user-friendly features make them a preferred solution for industries looking to improve their communications infrastructure and streamline their operations. With the integration of cutting-edge technologies, these servers not only meet the current demands but also adapt to future advancements in network communications.