+ All Categories
Home > Documents > RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy...

RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy...

Date post: 04-Apr-2018
Category:
Upload: buikhanh
View: 225 times
Download: 3 times
Share this document with a friend
24
TS SERIAL INPUT TRANSMITTER RS-232 or RS-485 SERIAL INPUT MODBUS or CUSTOM ASCII PROTOCOL 4-20 mA, 0-20 mA or 0-10V ANALOG OUTPUT OWNERS MANUAL LAUREL Electronics Inc. 3183-G Airway Ave, Costa Mesa, CA, 92626, USA Tel: (714) 434-6131 Fax: (714) 434-3766 Website: www.laurels.com
Transcript
Page 1: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

TS SERIAL INPUT TRANSMITTER

RS-232 or RS-485 SERIAL INPUT MODBUS or CUSTOM ASCII PROTOCOL

4-20 mA, 0-20 mA or 0-10V ANALOG OUTPUT OWNERS MANUAL

LAUREL Electronics Inc. 3183-G Airway Ave, Costa Mesa, CA, 92626, USA

Tel: (714) 434-6131 Fax: (714) 434-3766 Website: www.laurels.com

Page 2: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 2 -

1. ORDERING GUIDE, TS SERIAL INPUT TRANSMITTER

Configure a model number in this format: TS00, CBL03

TS…...Transmitter with 4-20 mA, 0-20 mA or 0-10V isolated analog output, and RS232 or RS485 serial data input. Default jumpered for RS232.

Power 0.......................... 95-240V ac or 90-300V dc 1.............................. 12-30V ac or 10-48V dc

Relay Output 0............................................................None 2................................. Dual solid state relays

ACCESSORIES

CBL03……RS232 cable, 3-pin connector on transmitter end, DB9 con-nector on computer end.

CBL02……USB to DB9 adapter cable. Can be used with CBL01 or CBL03.

2. TABLE OF CONTENTS

1. ORDERING GUIDE, TS SERIAL INPUT TRANSMITTER..................................................... 2 2. TABLE OF CONTENTS ....................................................................................................... 2 3. INTRODUCTION, TS SERIAL INPUT TRANSMITTER ........................................................ 3 4. RECEIVING & UNPACKING YOUR TRANSMITTER ........................................................... 3 5. SAFETY CONSIDERATIONS .............................................................................................. 4 6. TRANSMITTER FIELD WIRING ......................................................................................... 5 7. PROGRAMMING YOUR TRANSMITTER............................................................................ 6 8. SETTING RS232 OR RS485 SIGNAL LEVELS ................................................................... 8 9. DUAL RELAY OPERATION ............................................................................................... 10 10. MODBUS PROTOCOL TRANSMITTER COMMUNICATIONS.............................................. 12 11. CUSTOM ASCII PROTOCOL TRANSMITTER COMMUNICATIONS .................................... 17 12. SPECIFICATIONS, TS SERIAL INPUT TRANSMITTER....................................................... 20 13. WARRANTY ...................................................................................................................... 21

Page 3: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 3 -

3. INTRODUCTION, TS SERIAL INPUP TRANSMITTER The TS serial input to analog output transmitter (or serial-to-analog converter) accepts RS232 or RS485 serial data using the Modbus or Custom ASCII protocol, and converts it to an isolated, scalable 4-20 mA, 0-20 mA or 0-10V analog output. The unit fits on a 35 mm DIN rail and is only 22.5 mm (0.89") thick. It is normally powered by AC (95-240V ac ±10%), but can optionally be powered by low voltage AC or DC. All electrical connections are via detachable screw-clamp plugs.

The current or voltage transmitter output is selectable at the connector and is transformer isolated to avoid ground loops. Either output provides 12-bit (4096 step) resolution of the output span and is ultra-linear to within one bit. The output is scaled to the serial input in software. Output accuracy is ±0.05% of span.

Dual solid state relays rated 120 mA at 125V ac or 240 mA at 150V dc are available as an option.

Isolation to 250V rms is provided for power, signal input, analog output, relay outputs, and communications. Isolation adds safety and avoids possible ground loops.

Internal jumpers are used to select RS232 or RS485 communications. A user can reconfigure the transmitter by opening the case and moving jumpers, as explained in this manual. RS232 is the factory default jumper setting for Model TS.

Transmitter setup is via the unit’s three-terminal serial port using an external PC and Instrument Setup software. This software is provided on a mini-CD, which accompanies this manual, and can also be downloaded at no charge. The required 3-wire transmitter-to-PC interface RS232 cable is easy to build and is also available for purchase.

4. RECEIVING & UNPACKING YOUR TRANSMITTER

Your transmitter was carefully tested and inspected prior to shipment. Should the transmitter be damaged in shipment, notify the freight carrier immediately. In the event the transmitter is not configured as ordered or is inoperable, return it to the place of purchase for repair or replacement. Please include a detailed description of the problem.

Page 4: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 4 -

5. SAFETY CONSIDERATIONS

Warning: Use of this transmitter in a manner other than specified may impair the protection of the device and subject the user to a hazard. Visually inspect the unit for signs of damage. If the unit is damaged, do not attempt to operate.

Caution:

• This unit may be powered with AC (mains) from 95-240V ac ±10% or 90-300V dc with the high voltage power supply option, or 12-30V ac or 10-48 Vdc with the low voltage power supply option. Verify that the proper power option is installed for the power to be used. This transmitter has no AC (mains) switch. It will be in operation as soon as power is applied.

• The 95-240V ac or 90-300V dc mains connector (P1 Pins 1-3) is colored green to differentiate it from other input and output connectors. The 12-30V ac or 10-48V dc mains connector is colored black.

• To avoid dangers of electrocution and/or short circuit, do not attempt to open the case while the unit is under power. However, signal wiring changes external to the case can be made safely while the unit is under power.

• To prevent electrical or fire hazard, do not expose the transmitter to excessive moisture.

• Do not operate the transmitter in the presence of flammable gases or fumes. Such an environ-ment constitutes an explosion hazard.

• Secure the transmitter to a 35 mm DIN rail. Symbols used:

Caution (refer to accompanying documents) Earth (ground) terminal.

Caution, risk of electric shock. Both direct and alternating current.

Equipment protected throughout by double insulation or reinforced insulation.

Operating environment:

Class II (double insulated) equipment designed for use in Pollution degree 2.

Page 5: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 5 -

6. TRANSMITTER FIELD WIRING

P3 - SOLID STATE RELAY DETAIL

Switching two DC Loads150V dc @ 120 mA each

+ DC #1 3DC return 2

+ DC #2 1

Switching a DC Load150V dc @ 240 mA max

+ DC 3DC return 2Not used 1

Switching an AC Load125V ac @ 120 mA max

AC 3Not used 2

AC 1

RX / A/A' / D0 1TX / B/B' / D1 2Comm. GND 3

P6 - COMMUNICATIONS DETAILWiring of serial cable to PC

54321

9876

Female DB9connector, rear view.

P7 - ANALOG OUTPUT DETAIL

Driving a Load with 4-20 mA Driving a Load with 0-10V

Analog GND 10-10V output 2

4-20 mA output 3

Analog GND 10-10V output 2

4-20 mA output 3500 Ohms max

5 kOhms min

P3. Optionalsolid state

relay #1P2. Optional

solid staterelay #2

P1. Powerinput

P6. Serialcommunications

P7. Analogoutput

RX / A/A' / D0 1TX / B/B' / D1 2Comm. GND 3Analog GND 10-10V output 2

4-20 mA output 3

3 AC or +DC2 N/C or -DC1 AC or +DC3 AC or +DC2 N/C or -DC1 AC or +DC3 Power GND2 AC neutral or -DC 1 AC high or +DC

Control input B 1Control input A 2

Digital.GND 3

P5. Controllogic inputs

Page 6: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 6 -

7. PROGRAMMING YOUR TRANSMITTER

OVERVIEW

TS transmitters are easily programmed using a PC with an RS232 port and Instrument Setup (IS) software, which provides a graphical user interface. The software allows uploading, editing, downloading and saving of setup data.

If the transmitter is jumpered for RS232, the transmitter and PC are connected via a 3-wire RS232 cable (P/N CBL03).

If the transmitter is jumpered for RS485, the transmitter-to-PC interface should include the following items:

1. RS232-to-RS422/485 converter, B & B Electronics Model 485OT9L, www.bb-elec.com.

2. 120 VAC to 12VDC wall plug power supply for converter, B & B Model 485PS2.

3. DB9 extension cable (male & female connectors) from PC to converter.

4. Three-wire bundle from converter to transmitter (which both have screw terminals).

GETTING STARTED WITH IS SOFTWARE

To install IS software, insert the CD ROM into your PC. The CD is self-booting and will present you with a menu of choices. Click on “Install Instrument Setup Software” and follow the prompts. Or double-click on IS2_x_x.exe if you have downloaded that file.

To launch IS software, press on Start => Programs => IS2 => IS2. With your transmitter connected to your computer via RS232, click on the Transmitter RS232 button. From the Establish Communications Counter screen, specify your computer Com port (normally 1), baud rate (normally 9600), Custom ASCII Protocol, and No Parity. Click on Establish. Once com-munications have been confirmed, click on Main Menu. The computer will remember your communication settings for the next time that you run IS software.

The best way to learn IS software is to experiment with it. From the Main Menu, click on Transmitter => Get Setup to retrieve (or get) the existing setup data from the transmitter. Click on View => Setup to bring up screens which allow you to easily edit the setup file using pull-down menus and other selection tools. You can save your file to disk by clicking on File => Save Setup. You can download (or put) your edited file into the transmitter by clicking on Transmitter => Put Setup.

Programmable items will only be displayed if you have told the software that you have the appropriate hardware. Pressing the F1 key at any time will bring up detailed help information.

Page 7: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 7 -

SETTING UP YOUR TRANSMITTER

Under the Input+Display tab, select None for Input Option. Select Analog Out for Analog Option. Select 2-Relay Board for Relay Option if appropriate. By not specifying a signal conditioner board, your counter/timer transmitter will be interpreted as a Model TS, where readings are received serially.

To scale the analog output, click on the Analog Out tab. Under Range, select 4-20 mA Current, 0-20 mA Current, or 10V Voltage, as appropriate Then enter the Lo Range Reading and Hi Range Reading which correspond to the two endpoints of your analog output range.

To set up the optional dual relays, click on the Relay Alarms tab. You can then enter Setpoint 1 and Setpoint 2, as well as other parameters applicable to relays. Please see the Dual Relay Operation section of this manual.

Scaling the analog output.

Setting up the optional dual relays

Page 8: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 8 -

8. SETTING RS232 OR RS485 SIGNAL LEVELS

WHEN TO CHANGE JUMPERS

RS232 and RS485 signal levels are set byjumpers on the main board. The factory de-fault setting is for RS232, which allows directconnection to a PC. A termination resistorjumper should be selected if the transmitter isthe last device on an RS485 line longer than200 feet (60 m). To change jumper settings,you will need to open the transmitter case.

Serial Output Jumpers

RS232 RS485

Termination resistor*

a, c b, d

e c ea db

HOW TO OPEN & CLOSE THE CASE

The two clamshell halves of the case snap together. They are secured by means of four molded spring clips. They will come apart when the spring clips are bent outward with a small flat blade screwdriver, and then easily snap back together again.

1. To release your transmitter from the DIN rail, insert the flat-blade screwdriver into the spring-loaded red tab, and use it as a lever to pull down the tab. In very tight spaces, use a wire hook.

2. Remove all connectors. While pressing down in its center, push the spring-loaded red tab toward the center of the case and remove it. Do not lose the coil spring!

Page 9: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 9 -

3. Insert the screwdriver between the two front spring tabs and the case, and push down.

4. Insert the screwdriver between the top rear tab spring tab and the case, and push down.

5. Use the screwdriver to lift the fourth tab at the rear of the case. The case will now open.

6. Unplug the signal conditioner board. This will provide access to all jumpers.

7. To reassemble the case, simply snap the two clamshell halves back together.

8. Use the screwdriver to lift the spring-loaded red tab as an aid to sliding it back in place.

Page 10: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 10 -

9. DUAL RELAY OPERATION The optional dual solid state relays can operate in a basic alarm mode, in a hysteresis band mode, or in a deviation band modes, as explained below. Setpoint operation is referenced to the digital reading that is received as serial data. For example, temperature alarm or control would be referenced to a setpoint in °C or °F.

Time

1000

Dig

ital R

eadi

ng

Setpoint

OFF OFF

ON

Time

1000Setpoint OFF

ONON

Dig

ital R

eadi

ng

Active High Basic Alarm Active Low Basic Alarm

A basic alarm changes state automatically when the reading rises above a specified limit, and changes back automatically when the reading falls below that limit. A red LED indicates the relay is in an alarm condition, which can be active high or active low, as programmed.

Time

Rea

ding

1050

950 PassFail

Fail

Time

1050

Setpoint = 1000Hysteresis value = 50

HeaterOFF

Rea

ding

ON ONON

OFF OFF

950

Setpoint = 1000Deviation value = 50

1000 1000Pass

Hysteresis Band Alarm Deviation Band Alarm

A hysteresis band alarm controls relay action symmetrically around a setpoint. The relay closes (or opens) when the reading goes above the setpoint plus one hysteresis value, and opens (or closes) when the reading falls below the setpoint less one hysteresis value. A narrow

Page 11: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 11 -

hysteresis band is often used to minimize relay chatter. A wide hysteresis band can be used for on-off control applications.

A deviation band alarm controls relay action symmetrically around a setpoint. The relay actuates when the reading falls within the deviation band, and de-actuates when the reading falls outside. A deviation value (such as 50 counts) is set up around both sides of the setpoint to create the deviation band. Passbands around a setpoint are often used for component testing.

Page 12: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 12 -

10. MODBUS PROTOCOL TRANSMITTER COMMUNICATIONS

1.0 GENERAL

The Modbus capability conforms to the Modbus over Serial Line Specification & Implemen-tation guide, V1.0. Both the Modbus RTU and Modbus ASCII protocols are implemented:

Modbus RTU

Baud Rate........... 300, 600, 1200, 2400, 4800, 9600 or 19200 Data Format ....... 1 start bit, 8 data bits, 1 parity bit, 1 stop bit (11 bits total) Parity.................. None, Odd, Even (if None, then 2 Stop bits for 11 total) Address.............. 0 for broadcast, 1-247 for individual devices

Modbus ASCII

Baud Rate........... 300, 600, 1200, 2400, 4800, 9600 or 19200 Data Format ....... 1 Start bit, 7 Data bits, 1 Parity bit, 1 Stop bit (10 bits total) Parity.................. None, Odd, Even (if None, then 2 Stop bits for 10 total) Address.............. 0 for broadcast, 1-247 for individual devices

2.0 FRAMING

Modbus RTU

Message frames are separated by a silent interval of at least 3.5 character times. If a silent interval of more than 1.5 character times occurs between two characters of the message frame, the message frame is considered incomplete and is discarded. Frame Check = 16 bit CRC of the complete message excluding CRC characters.

Modbus ASCII

The message begins immediately following a colon (:) and ends just before a Carriage Return/ Line Feed (CRLF). All message characters are hexadecimal 0-9, A-F (ASCII coded). The system allowable time interval between characters may be set to 1, 3, 5 or 10 seconds. Frame Check = 1 byte (2 hexadecimal characters) LRC of the message excluding the initial colon (:) and trailing LRC and CRLF characters.

3.0 ELECTRICAL INTERFACE

Two-wire (plus common) half-duplex RS485 or RS232 signal levels are jumper selectable on the transmitter main board. The RS485 selection provides a jumper selection for insertion of a line termination resistor. Please see Section 14. In case of a long line (greater then 500 ft) to the first device, a termination resistor should be selected for the first device. In case of a long line between the first and last devices, a termination resistor should be selected for the first and last devices. Never add termination resistors to more than two devices on the same line.

Page 13: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 13 -

4.0 COMMUNICATIONS SETUP

Parameters selectable via Instrument Setup software, distributed on CD ROM:

Serial Protocol ...............................Custom ASCII, Modbus RTU, Modbus ASCII Modbus ASCII Gap Timeout...........1 sec, 3 sec, 5 sec, 10 sec Baud Rate.......................................300, 600, 1200, 2400, 4800, 9600, 19200 Parity .............................................No parity, odd parity, even parity Device Address .............................0 to 247

5.0 SUPPORTED FUNCTION CODES

FC03: Read Holding Registers Reads internal registers containing setup parameters (Scale, Offset, Setpoints, etc.)

FC10: Write Multiple Registers (FC10 = 16 dec) Writes internal registers containing setup parameters (Scale, Offset, Setpoints, etc.)

FC04: Read Input Registers Reads measurement values and alarm status. Returns values in 2's Complement Binary Hex format without a decimal point. The displayed system decimal point can be read with FC03 at address 0057. Use only odd Register Addresses and an even number of Registers.

FC05: Write Single Coil Action command to transmitter

Output Output Address Value Action Command ------------ -------- ---------------------------------------------- 00 01 FF 00 Transmitter Reset (No Response) 00 03 FF 00 Latched Alarm Reset

FC08: Diagnostics Checks communications between the Master and Slave, and returns the count in the Modbus Slave counters (which are reset when the transmitter is reset).

Hex Sub Function

Code

Data Send

Response Data

Description

00 00 Any Same as sent

Returns Query Data (N x 2 bytes). Echo Request.

00 01

FF 00 00 00

FF 00 00 00

Restarts Communications. If in the Listen-Only mode, no response occurs. Takes Slave out of Listen-Only mode and one of the following: Clears communications event counters. Does not clear communications event counters.

Page 14: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 14 -

00 04 00 00 None Forces Listen-Only. All addressed and broadcast Messages are monitored and counters are incremented, but no action is taken or response sent. Only Sub-Function 00 01 causes removal of this Listen-Only state.

00 0A 00 00 00 00 Clears all Modbus slave counters. 00 0B 00 00 Total

Message Count

Returns total number of messages detected on the bus, including those not addressed to this Slave. Excludes bad LRC/CRC, parity error or length < 3.

00 0C 00 00 Checksum Error Count

Returns total number of messages with bad LRC/ CRC, parity or length < 3 errors detected on the bus including those not addressed to the Slave.

00 0D 00 00 Exception Error Count

Returns total number of Exception responses returned by the Addressed Slave or that would have been returned if not a broadcast message or if the Slave was not in a Listen-Only mode.

00 0E 00 00 Slave Message

Count

Returns total number of messages, either broadcast or addressed to the Slave. Excludes bad LRC/CRC, parity or length < 3 errors.

00 0F 00 00 No Response

Count

Returns total number of messages, either broadcast or addressed to the Slave, for which Slave has returned No Response, neither a normal response nor an exception response. Excludes bad LRC/CRC, parity or length < 3 errors.

00 11 00 00 Slave Busy

Returns total number of Exception Code 6 (Slave Busy) responses.

6.0 SUPPORTED EXCEPTION RESPONSE CODES

Code Name Error Description ------- --------------------------- -------------------------------------------------------------------------- 01 Illegal Function Illegal Function Code for this Slave. Only hex Function Codes 03, 04, 05, 08, 10 (dec 16) are allowed. 02 Illegal Data Address Illegal Register Address for this Slave. 03 Illegal Data Value Illegal data value or data length for the Modbus protocol. 04 Slave Device Failure Slave device failure (eg. Transmitter set for external gate).

7.0 MESSAGE FORMATTING

MA = Device Address DD = Data (Hex) CL = CRC Lo Byte FC = Function Code WW = Data (On/Off) CH = CRC Hi Byte RA = Register Address SF = Sub-Function CR = Carriage Return

Page 15: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 15 -

NR = Number of Registers EC = Error Code LF = Line Feed NB = Number of bytes LRC = ASCII Checksum

Modbus RTU Format

Byte Number FC Action > 3.5

Char 1 2 3 4 5 6 7 8 9 10 11 03 03

Request Response

NoTx NoTx

MA MA

FC FC

RA NB

RA DD*

NR DD*

NR CL

CL CH

CH

04 04

Request Response

NoTx NoTx

MA MA

FC FC

RA NB

RA DD*

NR DD*

NR CL

CL CH

CH

05 05

Request Response

NoTx NoTx

MA MA

FC FC

RA RA

RA RA

WW WW

WW WW

CL CL

CH CH

08 08

Request Response

NoTx NoTx

MA MA

FC FC

SF SF

SF SF

WW DD

WW DD

CL CL

CH CH

10 10

Request Response

NoTx NoTx

MA MA

FC FC

RA RA

RA RA

NR NR

NR NR

NB CL

DD* CH

DD* CL CH

Exception Response

NoTx MA FC +80

EC CL CH

DD* = (DD DD) times NR (Number of Registers)

Modbus ASCII Format

Byte Number FC Action

1 2 3 4 5 6 7 8 9 10 11 12 13

03 03

Request Response

: :

MA MA

FC FC

RA NB

RA DD*

NR DD*

NR LRC

LRC CR

CR LF

LF

04 04

Request Response

: :

MA MA

FC FC

RA NB

RA DD*

NR DD*

NR LRC

LRC CR

CR LF

LF

05 05

Request Response

: :

MA MA

FC FC

RA RA

RA RA

WW WW

WW WW

LRC LRC

CR CR

LF LF

08 08

Request Response

: :

MA MA

FC FC

SF SF

SF SF

WW DD

WW DD

LRC LRC

CR CR

LF LF

10 10

Request Response

: :

MA MA

FC FC

RA RA

RA RA

NR NR

NR NR

NB LRC

DD* CR

DD* LF

LRC CR LF

Exception Response

: MA FC +80

EC LRC CR LF

DD* = (DD DD) times NR (Number of Registers)

Page 16: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 16 -

8.0 MESSAGE EXAMPLES

All examples are for Transmitter Address = 01 and No Parity.

Ser_4 -> Addr ->

Action Modbus RTU

010 001

Modbus ASCII 020 001

Restart Com-munications

Request Response*

010800010000B1CB 010800010000B1CB

:010800010000F6crlf :010800010000F6crlf

Device Reset Request Response

01050001FF00DDFA None

:01050001FF00FAcrlf None

Write Value 1 = +37.00***

Request Response

0110000100020400000E743624 01030400000E74FE74

:0110000100020400000E7466crlf :011000010002ECcrlf

* Suggested as first message after power-up. If transmitter is in Listen-Only mode, no response is returned.

** Example while reading +25.18 *** Decimal point is ignored.

9.0 INTERNAL REGISTERS: Please see CD or website.

Page 17: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 17 -

11. CUSTOM ASCII PROTOCOL TRANSMITTER COMMUNICATIONS 1.0 SERIAL COMMUNICATION FORMAT

The Custom ASCII serial communication format for both RS232 and RS485 is the following:

Modes............ Full Duplex (separate transmit and receive lines) or Half Duplex (RS485 only). Baud Rate ......300, 600, 1200, 2400, 4800, 9600, 19200 selectable with Instrument Setup

software. Data Format ...8 data bits, no parity, 1 stop bit

2.0 DATA FORMAT

The basic measurement data format consists of 9 ASCII characters, such as +9999.99<CR>, where <CR> is the carriage return character. The first character is always a plus or minus sign. A decimal point is always required, even when it follows the last digit.

Adding a Coded Data Character to the Basic Format

A coded character from A to H may be added to the data string according to the table below to indicate the alarm and overload status of the device. If used, this character precedes the <CR>, so that it is the last printable character in the string. With the optional <LF> and coded character selected, the data string will consist of 11 characters, such as +9999.99A<CR><LF>.

Alarm Status No Overload

Neither Alarm set Alarm 1 set only Alarm 2 set only Both Alarms set

A B C D

For example, a coded character “G” indicates that Alarm 2 only is set and that the transmitter is in the overload condition. This information is useful when data is supplied to a computer for listing and analysis, or when data is supplied to a Remote Display in a Master-Slave confi-guration.

The counter is capable of supplying more than one measurement value (or “Item”) with each reading. There can be up to three Items plus Peak and Valley. Values are transmitted in a continuous string with no intervening spaces. If the 5th digit in is set to 1 using Instrument Setup software, the termination characters of <CR> and optional <LF> appear after each value. If the 5th digit is et to 0, the termination characters appear only once at the end of the string. In either case, if included, the coded character appears at the end of the last value only.

Page 18: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 18 -

3.0 NETWORK CONFIGURATIONS

Using the Custom ASCII protocol, TM Series transmitters can operate in a point-to-point mode using RS232 or RS485, or in a multi-point mode using RS485.

The point-to-point mode is a direct connection between a computer (or other digital device) and the transmitter. An device address can be selected; however, it is suggested that address 1 be selected as a standard for the point-to-point mode.

The multi-point mode is a connection from a host computer to a multiplicity of transmitters bused together with their inputs and outputs connected in parallel. For long cable runs, the last device should have a termination resistor installed. It is necessary to set up each device on the bus with a different address from 1 to 31. To command a particular device, its address is used in conjunction with the command, and only that device responds. The outputs of all of the devices on the bus are set to a high impedance state, except the device being addressed. The device addresses range from 1 to 31, with 0 being a special address to which a device responds only internally (e.g. Reset), but does not transmit any response on the output lines. All devices may be commanded simultaneously with a 0 address, and there will not be any output response contention. Addressing of transmitters can be set with Instrument Setup software.

4.0 COMMAND MODE FOR TS TRANSMITTER

The TS Transmitter has 7 serial input modes (6-C), which are dedicated to the analog output of serial data received via RS232 or RS485. The data requirements vary for the different input modes and selected input functions:

Serial Input Addressable Commands

0 Normal display, Exponent Overflow 1 Normal display, 999999 Overflow 2 1 right-hand dummy zero 3 2 right-hand dummy zeros 4 Real time clock, multi-format 5 Real time clock, hh.mm.ss

H, K or L H, K or L H, K or L H, K or L H, K or L H, K or L

Analog Output Addressable Commands

6 Addressable remote display 7 Single value remote display 8 1st value of value sequence 9 2nd value of value sequence

A A 3rd value of value sequence B 4th value of value sequence

H, K or L commands 1 value only 1-4 sequential Values 2-4 sequential Values 3-4 sequential Values 4 sequential Values

Page 19: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 19 -

C Programmed to select specific data from a data string

1 value only

The addressable commands of Modes 0-6 can convert remote data on one or more transmitters having the command address in a multi-point configuration or a single transmitter having the command address in a point-to-point configuration. Modes 7 - 11 (B) do not use addressable commands, but values only. They are primarily designed for Host Counter or Scale meter to Slave Counter or remote display applications but may be used also in Host Computer to Remote Display Counter configurations. Since the Host Counter may be selected to transmit up to four sequential measurement values, Item 1, Item 2, Item 3 and Peak, (Scale meter transmits up to 3 values) each measurement cycle, Modes 8-11 provide the ability of the Remote Display to extract one of four sequential values and display it.

Modes 0-5 are normal counter modes that may be commanded as follows:

1. 10 Command. Override the normal display reading only. 2. K Command. The value is not displayed but stored as Item 3 if Item 3 is not being used,

where it may become the source, if selected, for the Alarm comparison and the Analog Output. Item 3 is used only for the Batch and Arithmetic functions.

3. L Command. Both 1 and 2.

In addition, the H, K, L commands may or may not include a coded Alarm character. If included, this character always overrides the internal Alarm comparisons and determines the alarm indicators, the relay operation and the alarm character sent with the serial communi-cations. Readings continue to be made internally during Remote Display operation and may be received by a Host Computer, manipulated, and returned as remote data. When reset by a *1C4 Command, the display returns to its internal readings, the Alarms to its internal comparisons, the Analog Output to zero and the Item 3 value to zero. A signal conditioner board must be present in these modes to return to normal readings. If no signal conditioner board is present, any Mode setting from 0-5 automatically changes to Mode 6.

Modes 6-11 are used for remote display only. No normal readings are made. A signal condi-tioner board is optional, and if present, is ignored. When reset, the display shows “rESEt” until the first remote display data is received.

Mode 6 is an addressable remote display mode that uses the H, K, L commands.

Mode 7 is not addressable, and data representing a value to be displayed is received in a Pt-Pt connection. Besides displaying the value, it is put into Item 3 where it may be selected for Alarm comparisons and for Analog Output. If a Coded Alarm character is included, it overrides the internal alarm comparisons.

Modes 8-11 are able to extract one value of data from a sequence of values and display that particular value only. It could be one of several slave counters connected to a Host Counter, each displaying a different Item value. Also, the extracted value is put into Item 3 where it may

Page 20: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 20 -

be selected for Alarm comparisons and Analog Output. If a Coded Alarm character is included at the end of the sequence, it is ignored.

The remote display reading can only be changed by Meter Reset, a *1C4 Remote display reset command, or another remote display H or L command.

Mode 12 - Remote display "C" - is used to extract data from an ASCII string that contains more than multiple data values or non-numeric characters. When in Remote Display C mode, it can accommodate selected Start and Stop characters and any number of characters between the Start character and the data can be masked OFF and up to 8 display characters (including sign and DP) can be masked ON and any number of characters between the last displayed character and the Stop character masked OFF.

When CONFIG, CXXX is set, it is a Masked Remote Display and the following parameters determine the operation. They must be set while the meter is set to something other than CONFIG, CXXX however, because that is the one setting for which there is no serial com-munications with the meter. It is suggested to use CONFIG, 6XXX to set the following parameters and then to use CONFIG, CXXX for operation.

1. START character (set to 00 if none desired). 2. STOP character (set to 00 if none desired). Note: Only one of the above can be set to 00. 3. Number of characters following the START character to be ignored. 4. Number of characters following the ignored characters to be displayed.

Either Instrument Setup.exe or Serial.exe may be used to set the values for the Remote Display C mode. These programs may be downloaded from our website.

DATA FORMATS

The basic two Command formats of the data sent via Serial Communications are:

*#CSDDDDDD.A<CR><LF> where the decimal point is to the right of any one of the D’s (digits). *#CSD.DDDEPA<CR><LF> This is the exponential format. The decimal point is fixed.

Alarm comparison and Analog Output are not valid in this format.

* = Recognition character # = Device address from 1-9, A to V, or 0 for common address. C = Command letter H, K, L. S = Sign of value, space (or +) for positive, - for negative value. Sign is optional in display modes 0-7, required in 8-11. D = Digit from 0 to 9. Number of digits may be 1-6 in display modes 0-7, but must

be 6 in 8-11. P = Power of 10. 0-9, A-F where A-F represents 10-15 A = Optional Alarm Character as defined in section 2.1 <CR> = Carriage return character <LF> = Optional line feed character (ignored)

Page 21: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 21 -

These basic Command formats are used when the Remote Display Counter is in display modes 0 - 6. The basic Data formats are the same except *#C is omitted. The basic Data formats are used in display mode 7.

Single or multiple (2-4) Data formats are used in display modes 8-11. Example:

SDDDDDD.SDDDDDD.SDDDDDD.SDDDDDD.A<CR><LF> <LF> optional, “Ser 3” “Digit 5” = 0, termination characters only at end of data string or SDDDDDD.<CR><LF>SDDDDDD.<CR><LF>SDDDDDD.<CR><LF>SDDDDDD.A<CR><LF> “Ser 3” “Digit 5” = 1, termination characters at end of each data item.

8.6 RECOGNITION CHARACTER, AND START AND STOP CHARACTERS

The transmitter recognizes an asterisk ( * ) as the command recognition character. Another command recognition character may be chosen to make the transmitter compatible with an existing system. The transmitter will still respond to an asterisk. For all transmitters, in continuous mode, a device, such as a printer, may require a start and stop bit to recognize the data string being sent. Normally there is no start bit, and the stop bit is a carriage return <CR>. When the transmitter is in a normal operating mode (not Remote Display), SER 3, XDXXX can be set for the following combinations:

Continuous Readings D Command Recognition Character

Start Character Stop Character

0 1 2 3

* Selected

* Selected

None None

Selected Selected

CR CR

Selected Selected

Either Instrument Setup.exe or Serial.exe may be used to set the Command recognition charac-ter and the start stop characters. These programs may be downloaded from our website.

5.0 COMMAND MODE FORMAT

CHAR 1 - Command Identifier

All commands begin with “*” followed by the transmitter address, then a command letter followed by a sub-command number or letter. Additional characters may be appended. All commands terminate with <CR> (<LF> ignored).

Char # Character Description

1 2 3

* 0-V A-Z

Command Identifier. Recognition Character. Device Address. 0 addresses all devices, 1-V specific devices. Command Function

Page 22: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 22 -

4 0-U Sub-command. Number of Bytes of RAM or Words (2 Bytes) of non-volatile memory data being transferred.

CHAR 2 - Address Codes

A Serial Communications Address Code from 1 to V follows the “*” to indicate the device address number from 1 to 31.

Device # Address Code Device # Address

Code Device # Address

Code

1 2 3 4 5 6 7 8 9 10 11

1 2 3 4 5 6 7 8 9 A B

12 13 14 15 16 17 18 19 20 21 22

C D E F G H I J K L M

23 24 25 26 27 28 29 30 31

N O P Q R S T U V

Reset Functions, Counter / Timer Cold reset *1C0 Reads NVMEM into RAM locations after RAM zeroed Latched alarms reset *1C2 Remote display reset *1C4 Resets Item 3 to zero if not Arithmetic or Batch. External Input B true *1C5 External Input B false *1C6 External Input A true *1C7 External Input A false *1C8

6.0 READING & WRITING TO RAM & NONVOLATILE MEMORY

CHAR 1, 2

The Recognition character and Meter Address Code are the same as shown in previous table.

.

Page 23: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 23 -

12. SPECIFICATIONS, TS SERIAL INPUT TRANSMITTER Serial Data Input

Signal Levels.........................RS232 or half-duplex RS485 (jumper selectable, default is RS232) Protocol .................................Modbus RTU, Modbus ASCII, Custom ASCII (software selectable) Serial Connector .......................................... Detachable 3-position plug for TX, RX, Comm. GND

Analog Output Output Levels.................................................................................... 0-20 mA, 4-20 mA or 0-10V Voltage or Current Selection ......................................................................................At connector Compliance at 20 mA..................................................................................10V (0-500 ohm load) Compliance at 10V.........................................................................2 mA (5 kohm minimum load) Output Resolution.........................................................................................12 bits (4,096 steps) Output Accuracy ............................................................................................< 0.05% of full span Output Update Rate .......................................................................... Approx 60/sec at 9600 baud

Dual Relay Output (optional) Relay Type ..................................................Two solid state relays, SPST, normally open, Form A AC load rating ..................................................... 120 mA at 125V AC, 20 ohms series resistance DC load rating....................................................... 240 mA at 150V DC, 5 ohms series resistance Relay modes ............... Active high or low, latching or non-latching, hysteresis or band deviation

Power & Electrical Power to Transmitter .................................. 95-240V AC ±10% or 90-300V DC (standard power) ...................................................................12-30V AC or 10-48V DC (low voltage power option) Power Isolation.................250V RMS between power, analog output, signal input, and serial I/O

Transmitter Setup Transmitter setup ..................................... Instrument Setup software using PC and CBL03 cable

Mechanical Case Dimensions .........................................................................................120 x 101 x 22.5 mm Case Mounting................................................................................35 mm DIN rail per EN 50022 Electrical Connections............................................................. Detachable screw plug connectors

Environmental Operating Temperature ...............................................................................................0°C to 70°C Storage Temperature ...............................................................................................-40°C to 85°C Relative Humidity........................................................... 95% from 0°C to 40°C, non-condensing

Page 24: RS-232 or RS-485 SERIAL INPUT MODBUS or … or RS-485 SERIAL INPUT ... interface RS232 cable is easy to build and is also available for purchase. ... signal wiring changes external

- - 24 -

13. WARRANTY

Laurel Electronics Inc. warrants its products against defects in materials or workmanship for a period of one year from the date of purchase.

In the event of a defect during the warranty period, the unit should be returned, freight prepaid (and all duties and taxes) by the Buyer, to the authorized Laurel distributor where the unit was purchased. The distributor, at its option, will repair or replace the defective unit. The unit will be returned to the buyer with freight charges prepaid by the distributor. LIMITATION OF WARRANTY

The foregoing warranty shall not apply to defects resulting from:

1. Improper or inadequate maintenance by Buyer. 2. Unauthorized modification or misuse. 3. Operation outside the environmental specifications of the product. 4. Mishandling or abuse.

The warranty set forth above is exclusive and no other warranty, whether written or oral, is expressed or implied. Laurel specifically disclaims the implied warranties of merchantability and fitness for a particular purpose. EXCLUSIVE REMEDIES

The remedies provided herein are Buyer’s sole and exclusive remedies. In no event shall Laurel be liable for direct, indirect, incidental or consequential damages (including loss of profits) whether based on contract, tort, or any other legal theory.

Copyright 2006-2008 Laurel Electronics, Inc. REV 03/08


Recommended