B&B Electronics RS-485 manual States = states and NOTmask, Addr = 5 states =

Page 30

Example 5.4 – Change the address of a model from 5 to 10. addr = 5

newaddr = 10

Command$ = “!” + CHR$(addr) + “SA” + CHR$(newaddr) Print #1, Command$

Set Power-up States Command

The Set Power-up States command is used to set the states of the digital outputs at power-up. This command requires a data byte. The data byte is used to specify the power-up output states. Bits 0-2 correspond to the power-up states of digital outputs 0-2. If a bit is a 0 then the output will be set LOW at power-up. If a bit is a 1 then the output will be set HIGH at power-up. Refer to Table 3.6.

NOTE: This command ignores bits 3-7 of the data byte.

The steps to setting a module’s power up states are given below:

1)Construct 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” (HIGH).

b)Set appropriate outputs LOW

states = states AND (NOT(mask))

By “ANDing” the current states with the complement of the appropriate mask of a digital output given in Table 5.1, the output’s data bit will be set to a “0” (LOW).

c) Construct the string

Command$ = “!” + CHR$(addr) + “SS” + CHR$(states) Where addr is the module’s address.

2)Transmitting the command string:

Print #1, Command$

Example 5.5 – Set digital outputs 0 and 1 HIGH and digital output 2 LOW on the module with address 5.

addr = 5 states = 0

Set bit 0 of states to make digital output 0 HIGH states = states OR 1

Set bit 1 of states to make digital output 1 HIGH states = states OR 2

26

485SDA103798 Manual

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

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

Image 30
Contents Electronics Mfg. Co. Inc Designed and Manufactured Ottawa, IllinoisInternet Table of Contents Software Tables485SDA103798 Manual Table of Contents Iii 485SDA10 Features 485SDA10 UnitSoftware Installation Packing ListWindows UninstallGetting Started Windows 9x and Windows NTA/D with Variable Resistor 485SDA10 Specifications Inputs #0-10 Ref Input +Ref Input Analog GroundTypical Connections Digital Inputs #0-2 Digital I/O Connections485SDA10 I/O Port Pinout Digital Outputs #0-2Digital Ground Typical Digital I/O ConnectionsSerial Port Connections RS-485 Terminal Block ConnectionsPower Supply Connections Typical RS-485 2-wire ConnectionCommands 485SDA10 CommandsReading A/D Channels Command SyntaxEquivalent Values AddrRA# Ch#MSBch#LSBch#-1MSB...ch0MSBch0LSBRead A/D Response States Reading Digital I/O CommandAddrRD Read Digital I/O Response for OutputsAddrSOstates Set Digital Output CommandSet Module Address Command Set Digital Output Data Byte ValuesSet Power-up States Command Set Turn-around Delay CommandRead Module Configuration Command Addressstatesdelay Sampling Rate Input RangeReference Inputs Data Range Converting DataPage Print #1, Command$ Read A/D CommandCommand$ = ! + CHR$addr + RA + CHR$channel MSB$ = INPUT$1, #1 LSB$ = INPUT$1, #1Read Digital I/O Command Command$ = ! + CHR$addr + RDReply$ = INPUT$ 1, #1 Set Digital Output States Digital I/O Mask ValuesSet Module Address Command$ = !0SO + CHR$statesCommand$ = ! + CHR$addr + SO + CHR$newaddr Addr =States = states and NOTmask Addr = 5 states =Set Turn-around Delay Command$ = ! + CHR$addr + SC + CHR$delayRead Module Configuration #addrRA00FF 00FF01FEComp = not x and &HFF Table A-1 Extended Commands Appendix B Analog Input Impedance Simplified Analog Input Analysis 1 2 LSB = R s + 1k Ω × 60pF × ln2048485SDA103798 Manual Appendix B Appendix C Decimal to HEX to Ascii Table Table C-1 Decimal to HEX to Ascii TableClass a Equipment
Related manuals
Manual 46 pages 1.37 Kb

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.