Clear bit 2 of states to make digital output 2 LOW states = states AND (NOT(4))

Command$ = “!” + CHR$(addr) + “SS” + CHR$(states) Print #1, Command$

At power-up digital output 0 will be HIGH, digital output 1 will be HIGH, and digital output 2 will be LOW.

Set Turn-around Delay

The Set Turn-around Delay command sets the amount of time the 485SDA10 waits to respond after executing a command. This delay is necessary when two RS-485 transmitters are sharing a pair of wires to ensure that two transmitters are not enabled at the same time. Refer to B&B Electronics’ free RS-422/RS-485 Application Note for more information on RS-422/485. The turn-around delay is stored in non-volatile memory. This command requires a data byte. The data byte is used to specify the turn-around delay. One unit of turn-around delay is equal to the transmission time of one character. This transmission time can be computed as follows:

time = (1 / baud rate) * 10

The steps to setting a module’s turn-around delay are given below:

1)Constructing the command string:

Command$ = “!” + CHR$(addr) + “SC” + CHR$(delay)

Where addr is the module’s address and delay is the turn- around delay. Refer to Chapter 3 for more information on turn-around delay.

2)Transmitting the command string:

Print #1, Command$

Example 5.6 – Set the turn-around delay on the module with address 5 to 100 character transmission times.

addr = 5 delay = 100

Command$ = “!” + CHR$(addr) + “SC” + CHR$(delay) Print #1, Command$

The module at address 5 will now have a turn-around delay of 100 character transmission times.

485SDA103798 Manual

27

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

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

Page 31
Image 31
B&B Electronics RS-485 manual Set Turn-around Delay, Command$ = ! + CHR$addr + SC + CHR$delay

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.