Omega A2400 manual

Page 14

Functional Description 2-5

reaching the RS-485 bus.

The first operation performed on the modem data is to check for noise and framing errors. If either condition exists, the bad character is re-formatted as a null character (ASCII $00). Since the null is not a legal character for use as an address in the modules, transmitting a null is preferable to aborting the character when an error is detected. This cuts down on the possibility of a module being incorrectly addressed.

After noise and framing errors are checked, the data must be qualified with a character filter. This filter will flush any data until a valid prompt character is detected. These characters are: ‘$’, ‘#’, ‘{‘, and ‘}’. Parity is ignored. Once a prompt character is received, The A2400 assumes that a valid command is being transmitted. The A2400 will transfer the data to the RS-485 bus or hold it in an internal buffer depending on the address data. At this time the character filter checks for a carriage return character which terminates the command. If a carriage return is detected, the character filter is reset to flush characters until another valid prompt is found. If 32 characters are received after a prompt without a carriage return found, the data is considered to be noisy and the character filter is reset for prompt detection.

The character filter may be disabled for non-D series systems.

The qualified data may take one of two paths depending on the address data. Commands addressed to the A2400 itself are not transmitted on the RS-485 bus. Therefore the prompt character is saved in buffer memory until the address character can be examined. If the A2400 detects its own address, the subsequent command data is processed internally to the A2400. No data will appear on the RS-485 bus.

If the address does not match the A2400, the prompt and address charac- ters are transmitted to the RS-485 port, along with any subsequent data until a carriage return or character over-run occurs.

The A2400 ignores parity on all data except for commands addressed to itself.

The RS-485 port is normally in receive mode, and when the A2400 places data on the bus it enables the RS-485 transmitter on a per-character basis. This means that the port is returned to receive mode immediately after a command has been transmitted.

Assume that a module on the RS-485 bus has received a correctly

Image 14
Contents User’sGuide Servicing Europe Servicing North AmericaFor immediate technical or application assistance BOX Revised 4/17/95Omega Engineering ONE Omega Drive 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 Description Functional 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 StructureMiscellaneous Protocol Notes Data StructureWrite Protection Response StructureCommand Checksum Long Form Responses$1WEF ?1 Syntax Error?1 BAD Checksum A2400 User Commands A2400 Command Set RT3Command $1DO01 Response Command #1DO01 Response *1DO014F Command DescriptionsCommand 01CC Response Response *01CC11 Digital Output do 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 $1RIDTank Farm 1RID Tank Farm 11F$1RSP $1RSU#1RSU #1RSPResponse *+00100.00 Read Time Delay 1 RT1Response *1RT1+00100.00DC Read Time Delay 2 RT2 Page Page Short Prompt SP Address Error Command 01WE Response *01WE27Error Messages BAD ChecksumSyntax Error Command ErrorParity 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 Byte 2 Linefeed, Parity and Baud Rate Command $1RR ResponseBit 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 01CC Response Command 01OC ResponseCommand $1RD Response +00100.00 Typical $2RD +00123.45 Command 02OC ResponseStructured Addressing Extended Address SyntaxImplied OC Command OC and CC Command FormatsImplied CC 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