Omega A2400 manual Chapter Communications, Command $1RD Response *+99999.99

Page 17

Chapter 3

Communications

Introduction

The A2400 modules have been carefully designed to be easy to interface to all radio modems and many leased-line modems. All communications to and from the modules are performed with printable ASCII characters. This allows the information to be processed with string functions common to most high- level languages such as BASIC. The ASCII format makes system debugging easy with a dumb terminal.

This system allows multiple modules to be connected through the A2400 to a modem with a single 4-wire cable. Up to 32 RS-485 modules may be strung together on one cable; 121 with repeaters. The modules communicate with the host on a polling system; that is, each module responds to its own unique address and must be interrogated by the host. A module can never initiate a communications sequence. A simple command/response protocol must be strictly observed to avoid communications collisions and data errors.

Communication to the A2400 modules is performed with two- or three- character ASCII command codes such as RD for Read Data. A complete description of all commands is given in the Chapter 4. A typical command/ response sequence would look like this:

Command: $1RD

Response: *+99999.99

A command/response sequence is not complete until a valid response is received. The host may not initiate a new command until the response from a previous command is complete. Failure to observe this rule will result in communications collisions. A valid response can be in one of three forms:

1)a normal response indicated by a ‘ * ‘ prompt

2)an error message indicated by a ‘ ? ‘ prompt

3)a communications time-out error

When a module receives a valid command, it must interpret the command, perform the desired function, and then communicate the response back to the host. Each command has an associated delay time in which the module is busy calculating the response. If the host does not receive a response in an appropriate amount of time specified in Table 3.1, a communications time-out error has occurred. After the communications time-out it is assumed that no response data is forthcoming. This error usually results when an

Image 17
Contents User’sGuide Servicing Europe Servicing North AmericaFor immediate technical or application assistance Omega Engineering ONE Omega Drive Revised 4/17/95BOX STAMFORD, CT Phone 1-800-DAS-IEEETable of Contents Introduction Chapter Getting StartedLeased Lines System Overview+99999.99 $1RDDefault Mode Page Chapter Functional Description Block DiagramFunctional Description Pinout Character Filter RS-485 TerminationA2400 Operation Page Programmable Delay Times Page Chapter Communications Command $1RD Response *+99999.99DO, OC, CC, RD, REA, RID, RLP, RS, RSP, RSU Communication DATA+ RS-485 Multidrop SystemPage Command Structure Chapter A2400 Command SetWrite Protection Data StructureMiscellaneous Protocol Notes Response StructureLong Form Responses Command Checksum$1WEF ?1 Syntax Error?1 BAD Checksum A2400 User Commands RT3 A2400 Command SetCommand 01CC Response Response *01CC11 Digital Output do Command DescriptionsCommand $1DO01 Response Command #1DO01 Response *1DO014F Closed Channel CC ExtendedExtended Address EA Command $1DO00 Response Command #1DO00 Response *1DO004E1ID Tank Farm 1CD $1ID Tank Farm#1ID Tank Farm Read Data RD Command 01OC Response Response *01OCEDOpen Channel OC Extended Tank Farm $1RID#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 Error Messages Command 01WE Response *01WE27Address Error BAD ChecksumParity Error Command ErrorSyntax Error Value Error$1SUbyte 1byte 2byte 3byte Chapter Setup Information/SetUp CommandCommand Syntax Byte HEX Ascii Byte 1 Ascii Printable CharactersBaud Rate ParityCommand $1RS Response *31020102 Command $1WE Command $1RS Response *31070000Command $1WE Response Command $1SU31020000 Bit Command $1RR ResponseByte 2 Linefeed, Parity and Baud Rate BaudNormal addressing Chapter Delay Time Programming Delay Time Programming Page Command $1RT1 Response *+00100.00 Command $1T3+00050.00 Set T3 to 50 ms ResponseChapter 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 ResponseOpen/Close Channel Commands Typical system overview Command $1RD Response +00100.00 Typical $2RD +00123.45 Command 01OC ResponseCommand 01CC Response Command 02OC ResponseExtended Address Syntax Structured AddressingImplied CC Command OC and CC Command FormatsImplied OC Command Command ResponseExplicit Open and Close Channel Commands Command Response *01OC1D Single Command Module AddressCommand 01$1RD Response *+00100.00 Command 02OC Response 02OC1E ‘1E’ is the checksum Command 01CC Response 01CC11 ‘11’ is the checksumTransparent Mode Functions Chapter Transparent ModeA2400 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