Omega A2400 Data Structure, Write Protection, Miscellaneous Protocol Notes, Response Structure

Page 23

Command Set 4-2

All commands must be terminated by a carriage return character (ASCII $0D). In all command examples in this text the carriage return is either implied or denoted by the symbol ‘CR’.

Data Structure

Many commands require additional data values to complete the command definition as shown in the example commands in Table 4.1. The particular data necessary for these commands is described in full in the complete command descriptions.

Write Protection

Some commands listed in Table 4.1 are under the heading of ‘Write Protected Commands’. These commands are used to alter setup data in the module’s EEPROM. These commands are write protected to guard against accidental loss of setup data. All write-protected commands must be preceded by a Write Enable (WE) command before the protected command may be executed.

Miscellaneous Protocol Notes

The address character must transmitted immediately after the command prompt character. After the address character the module will ignore any character below ASCII $23 (except, of course, CR). This allows the use of spaces (ASCII $20) within the command message for better readability if desired.

The length of a command message is limited to 25 printable characters. If a properly addressed module receives a command message of more than 25 characters the module will abort the whole command sequence and no response will result.

If a properly addressed module receives a second command prompt before it receives a CR, the command will be aborted and no response will result.

Response Structure

Response messages begin with either an asterisk ‘*’ (ASCII $2A) or a question mark ‘?’ (ASCII $3F) prompt. The ‘*’ prompt indicates acknowledg- ment of a valid command. The ‘?’ prompt precedes an error message. All response messages are terminated with a CR. Many commands simply return a single ‘*’ character to acknowledge that the command has been executed by the module. Other commands send data information following the ‘*’ prompt. The response format of all commands may be found in the detailed command description. The maximum response message length is 25 characters.

Image 23
Contents User’sGuide Servicing Europe Servicing North AmericaFor immediate technical or application assistance STAMFORD, CT Phone 1-800-DAS-IEEE Revised 4/17/95Omega Engineering ONE Omega Drive BOXTable 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 SetResponse Structure Data StructureWrite Protection Miscellaneous Protocol NotesLong Form Responses Command Checksum$1WEF ?1 Syntax Error?1 BAD Checksum A2400 User Commands RT3 A2400 Command SetClosed Channel CC Extended Command DescriptionsCommand 01CC Response Response *01CC11 Digital Output do Command $1DO01 Response Command #1DO01 Response *1DO014FExtended 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 1RID Tank Farm 11F $1RIDTank Farm #1RID#1RSP $1RSU#1RSU $1RSPResponse *+00100.00 Read Time Delay 1 RT1Response *1RT1+00100.00DC Read Time Delay 2 RT2 Page Page Short Prompt SP BAD Checksum Command 01WE Response *01WE27Error Messages Address ErrorValue Error Command ErrorParity Error Syntax 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 Baud Command $1RR ResponseBit Byte 2 Linefeed, Parity and Baud RateNormal 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 02OC Response Command 01OC ResponseCommand $1RD Response +00100.00 Typical $2RD +00123.45 Command 01CC ResponseExtended Address Syntax Structured AddressingCommand Response OC and CC Command FormatsImplied CC Command Implied OC CommandExplicit 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