Omega A2400 manual Structured Addressing, Extended Address Syntax

Page 56

Extended Addressing 9-4

Figure 7.1 shows a very simple system but the same addressing methodmay be used to construct very large systems. Each RS-485 string may handle up to 122 addresses, and up to 14884 A2400’s may have unique addresses.

Structured Addressing

Even for a relatively small system, it can be advantageous to employ a hierarchical addressing system as used in Fig. 7.1. This is particularly true in systems that consist of many sites that are identical. From a host software standpoint, each site can be treated identically with the same module addresses, with each site having a different A2400 address.

Extended Address Syntax

The command syntax used with Extended Addressing is quite similar to the normal protocol. The Extended Address commands are initiated with a ‘{‘ character (left curly brace, ASCII $7B), or a ‘}’ character (right curly brace, ASCII $7E). The ‘{‘ prompt is analogous to the ‘$’ prompt in that it returns the shortest possible response to complete the command. The ‘}’ prompt is similar to the ‘#’ prompt in that the command is echoed and a checksum is generated along with the other data necessary to complete the response. The ‘*’ response prompt is used in all command forms.

The Extended Address commands use a two-character ASCII address, each character may be one of 122 legal possibilities. Illegal characters are: NULL ($00), CR ($0D), $ ($24), # ($23), { ($7B), and } ($7E).

Command examples with Extended Address ‘01’:

Command:

{01WE

 

Response:

*

 

Command:

}01WE

 

Response:

*01WE27

 

Command:

{01RS

 

Response:

*31070000

(typical)

Command:

}01RS

 

Response:

*01RS31070000BB

(typical)

Checksums may be appended to commands:

Command: {01WE78

Response: *

Image 56
Contents User’sGuide Servicing Europe Servicing North AmericaFor immediate technical or application assistance Revised 4/17/95 Omega Engineering ONE Omega DriveBOX STAMFORD, CT Phone 1-800-DAS-IEEETable of Contents Chapter Getting Started IntroductionSystem Overview Leased Lines$1RD +99999.99Default Mode Page Block Diagram Chapter Functional DescriptionFunctional Description Pinout Character Filter RS-485 TerminationA2400 Operation Page Programmable Delay Times Page Command $1RD Response *+99999.99 Chapter CommunicationsDO, OC, CC, RD, REA, RID, RLP, RS, RSP, RSU Communication RS-485 Multidrop System DATA+Page Chapter A2400 Command Set Command StructureData Structure Write ProtectionMiscellaneous Protocol Notes Response StructureCommand Checksum Long Form Responses$1WEF ?1 Syntax Error?1 BAD Checksum A2400 User Commands A2400 Command Set RT3Command Descriptions Command 01CC Response Response *01CC11 Digital Output doCommand $1DO01 Response Command #1DO01 Response *1DO014F Closed Channel CC ExtendedCommand $1DO00 Response Command #1DO00 Response *1DO004E Extended Address EA1ID Tank Farm 1CD $1ID Tank Farm#1ID Tank Farm Read Data RD Command 01OC Response Response *01OCEDOpen Channel OC Extended $1RID Tank Farm#1RID 1RID Tank Farm 11F$1RSU #1RSU$1RSP #1RSPResponse *+00100.00 Read Time Delay 1 RT1Response *1RT1+00100.00DC Read Time Delay 2 RT2 Page Page Short Prompt SP Command 01WE Response *01WE27 Error MessagesAddress Error BAD ChecksumCommand Error Parity ErrorSyntax Error Value Error$1SUbyte 1byte 2byte 3byte Chapter Setup Information/SetUp CommandCommand Syntax Byte Byte 1 Ascii Printable Characters HEX AsciiParity Baud RateCommand $1RS Response *31020102 Command $1WE Command $1RS Response *31070000Command $1WE Response Command $1SU31020000 Command $1RR Response BitByte 2 Linefeed, Parity and Baud Rate BaudNormal addressing Chapter Delay Time Programming Delay Time Programming Page Command $1T3+00050.00 Set T3 to 50 ms Response Command $1RT1 Response *+00100.00Chapter Power Supply Symptom RS-485 Module is not responding to commands Chapter TroubleshootingSymptom RS-232 Module is not responding to commands Chapter Extended Addressing Command 01WE Response Open/Close Channel Commands Typical system overview Command 01OC Response Command $1RD Response +00100.00 Typical $2RD +00123.45Command 01CC Response Command 02OC ResponseStructured Addressing Extended Address SyntaxOC and CC Command Formats Implied CC CommandImplied OC Command Command ResponseExplicit Open and Close Channel Commands Command Response *01OC1D Single Command Module AddressCommand 01$1RD Response *+00100.00 Command 01CC Response 01CC11 ‘11’ is the checksum Command 02OC Response 02OC1E ‘1E’ is the checksumChapter Transparent Mode Transparent Mode FunctionsA2400 interfacing a PLC to a leased-line modem A2400 networking several RS-232 devices to a host computer A2400 interfacing a laboratory instrument with modules Transparent Mode Adding secondary control using A2400 modules Transparent Mode WARRANTY/DISCLAIMER Shop online at omega.com