Omega A2400 manual Long Form Responses, Command Checksum

Page 24

Command Set 4-3

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

A communications time-out error can occur if the A2400 has not received a command correctly. This may be due to noise on the communications channel, incorrect address, hardware failures, etc. There is certain amount of time after which it can be assumed by the host that a response message will never occur. With the A2400, the response time is variable due to the programmable delays built into the unit. Delay times T1 and T2 must be added to the message times listed in Table 2.0 to calculate the maximum time necessary to respond to a command.

Long Form Responses

When the pound sign ‘#’ command prompt is used, the module will respond with a ‘long form’ response. This type of response will echo the command message, supply the necessary response data, and will add a two-character checksum to the end of the message. Long form responses are used in cases where the host wishes to verify the command received by the A2400. The checksum is included to verify the integrity of the response data. The ‘#’ command prompt may be used with any command. For example:

Command:

$1RD

(short form)

Response:

*+99999.99

 

Command:

#1RD

(long form)

Response:

*1RD+99999.99D9

 

Checksum

The checksum is a two character hexadecimal value appended to the end of a message. It verifies that the message received is exactly the same as the message sent. The checksum ensures the integrity of the information communicated.

Command Checksum

A two-character checksum may be appended to any command transmitted to an addressable converter module as a user option. When a module

Image 24
Contents User’sGuide Servicing North America For immediate technical or application assistanceServicing Europe 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 RS-485 Termination A2400 OperationCharacter Filter 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?1 Syntax Error ?1 BAD Checksum$1WEF 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 EA$1ID Tank Farm #1ID Tank Farm1ID Tank Farm 1CD Command 01OC Response Response *01OCED Open Channel OC ExtendedRead Data RD $1RID Tank Farm#1RID 1RID Tank Farm 11F$1RSU #1RSU$1RSP #1RSPRead Time Delay 1 RT1 Response *1RT1+00100.00DC Read Time Delay 2 RT2Response *+00100.00 Page Page Short Prompt SP Command 01WE Response *01WE27 Error MessagesAddress Error BAD ChecksumCommand Error Parity ErrorSyntax Error Value ErrorChapter Setup Information/SetUp Command Command Syntax$1SUbyte 1byte 2byte 3byte Byte Byte 1 Ascii Printable Characters HEX AsciiParity Baud RateCommand $1RS Response *31070000 Command $1WE Response Command $1SU31020000Command $1RS Response *31020102 Command $1WE 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 Chapter Troubleshooting Symptom RS-232 Module is not responding to commandsSymptom RS-485 Module is not responding to commands Command 01WE Response Open/Close Channel CommandsChapter Extended Addressing 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 ResponseCommand Response *01OC1D Single Command Module Address Command 01$1RD Response *+00100.00Explicit Open and Close Channel Commands 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