Omega A2400 manual Command $1RS Response *31070000, Command $1WE Response Command $1SU31020000

Page 44

SetUp Command 5-5

changed, a module reset must occur. A reset is performed by sending a Remote Reset (RR) command or powering down. This extra level of write protection is necessary to ensure that communications to the module is not accidentally lost. This is very important when changing the baud rate of an RS-232C string. For more information on changing baud rate, refer to Chapter 3.

Let’s run through an example of changing the baud rate. Assume our sample module contains the setup data value of ‘31070000’. Byte 2 is ‘07’. By referring to the SU command chart we can determine that the module is set for no linefeeds, no parity, and baud rate 300. If we perform the Read Setup command with this module we would get:

Command: $1RS

Response: *31070000

Let’s say we wish to change the baud rate to 9600 baud. The code for 9600 baud is ‘0010’ (from Table 5.2). This would change byte 2 to ‘02’. To perform the SU command we must first send a Write Enable command because SU is write protected:

Command: $1WE

Response: *

Command: $1SU31020000

Response: *

This sequence of messages is done in 300 baud because that was the original baud rate of the module. The module remains in 300 baud after this sequence. We can use the Read Setup (RS) command to check the setup data:

Command: $1RS

Response: *31020102

Notice that although the module is communicating in 300 baud, the setup data indicates a baud rate of 9600 (byte 2 = ‘02’). To actually change the baud rate to 9600, send a Remote Reset (RR) command (RR is write protected):

Command: $1WE

Response: *

Image 44
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 ResponseOpen/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