B&B Electronics RS-485 manual Set Digital Output States, Digital I/O Mask Values

Models: RS-485

1 39
Download 39 pages 36.61 Kb
Page 28
Image 28

Table 5.1 - Digital I/O Mask Values

 

 

Mask Values

 

I/O Line

 

Hexadecimal

 

Decimal

 

 

 

 

Digital Output #0

 

1H

 

1

Digital Output #1

 

2H

 

2

Digital Output #2

 

4H

 

4

Digital Input #0

 

8H

 

8

Digital Input #1

 

10H

 

16

Digital Input #2

 

20H

 

32

Example 5.2 - Determining the status of Digital Input #1 of the module with and address of 10.

mask = &H10

Command$ = “!” + CHR$(addr) + “RD” Print #1, Command$;

Reply$ = INPUT$ (1, #1) states = ASC (Reply$) status = states AND mask

If status is equal to zero then Digital Input #1 is LOW. If status is not equal to zero then Digital Input #1 is HIGH.

Set Digital Output States

The Set Digital Output command is used to set the states of the 3 digital output lines. This command requires a data byte. The data byte is used to specify the output states. Bits 0-2 correspond to the states of digital outputs 0-2. If a bit is a 0 then the output will be set LOW. If a bit is a 1 then the output will be set HIGH. NOTE: This command ignores Bits 3-7 of the data byte.

The steps to setting the digital output states are given below:

1)Constructing the command string:

a)Set Appropriate Outputs HIGH states = states OR mask

By “ORing” the current states with the appropriate mask of a digital output (given in Table 5.1), the output’s data bit will be set to a “1” (which will be set HIGH).

24

485SDA103798 Manual

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

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

Page 28
Image 28
B&B Electronics RS-485 manual Set Digital Output States, Digital I/O Mask Values

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.