background image

- 22 - 

11.  LTS COMMAND MODE WITH MODBUS RTU PROTOCOL 

 
Laurel’s  implementation  of  the  Modbus  RTU  protocol  allows  the  LTS  to  receive  data  in  the 
form of Modbus commands. As for the customer ASCII Protocol in Command Mode, these are 
used to write values to a variable called “Item 3”, which will be used for analog output inter-
polations  and  for  relay  setpoint  comparisons  for  relay  action.  Modbus  commands  are  also 
available  to  overwrite  setup  parameters  entered  with  IS  Software  “on  the  fly,”  including  the 
following: 

1.

 

Change  scale  and  offset  or  coordinates  of  2  points  parameters  to  generate  the  analog 
output derived from Item 3. 

2.

 

Change setpoints to control relay action derived from Item 3. 

3.

 

Force relay action regardless of Item 3 

4.

 

Reset latched alarms by forcing a Function Reset. 

The Modbus RTU protocol for Counters, including model LTS, is described in the user manual 
at 

https://www.laurels.com/downloadfiles/serialcom2.pdf

.  

See  our  Modbus  Manual  for  Counters  at 

https://www.laurels.com/downloadfiles/Modbus-

Manual-CTR.pdf

 for a Modbus RTU overview and for all available Modbus commands, not just 

those for model LTS. In particular, see the long section entitled, “FC03 (READ) & FC10 (WRITE) 
HOLDING  REGISTER  ADDRESSES.”  Use  Hi  Word  starting  Register  Addresses  and  an  even 
number  of  Registers.  The  Register  Addresses  shown  in  this  section  apply  to  both  FC03  and 
FC10. They are for Modbus numbering systems that start at 00 01  (Base 1). Subtract 1 from 
each Register Address for Modbus numbering systems that start at 00 00 (Base 0). 

To write values to Item 3 with Base 1 addressing, write the Hi Word applied to Item 3 to hex 
register address  006

006

006

006C

C

C

C, and the Lo Word applied to Item3 to hex register address  006

006

006

006D

D

D

D. With 

Base  0  addressing,  the  Hi  Word  address  becomes  006B

006B

006B

006B,  and  the  Lo  Word  address  becomes 

006C

006C

006C

006C. The qModMaster example on the next page illustrates how to use Base 0 addressing to 
generate 4, 12 and 20 mA analog outputs.    

Example on how to send the value 999999 to Item #3 of an LTS using the Modbus protocol: 

1 10 00 6B 00 02 04 00 0F 42 3F F4 87

1 10 00 6B 00 02 04 00 0F 42 3F F4 87

1 10 00 6B 00 02 04 00 0F 42 3F F4 87

1 10 00 6B 00 02 04 00 0F 42 3F F4 87 

Address: 01

01

01

01 

Function Code: FC10

FC10

FC10

FC10 

Holding Register: 006C

006C

006C

006C 

Number of Registers Sent: 0002

0002

0002

0002 

Number of Bytes Sent: 04

04

04

04 

Register Data: 000F 423F

000F 423F

000F 423F

000F 423F (999999 in decimal) 

CRC: F487

F487

F487

F487    

Summary of Contents for LTS

Page 1: ...OR RS485 SERIAL INPUT ANALOG OUTPUT TRANSMITTER Modbus or Custom ASCII Protocol OWNERS MANUAL LAUREL Electronics Inc 3183 G Airway Ave Costa Mesa CA 92626 USA Tel 714 434 6131 Fax 714 434 3766 Website...

Page 2: ...120 mA solid state relays Default jumpered for RS232 LTSE6E Transmitter with 4 20 mA 0 20 mA 0 10V or 10V to 10V isolated analog output Ethernet serial data input and dual 120 mA solid state relays Po...

Page 3: ...5 SAFETY CONSIDERATIONS 6 6 TRANSMITTER FIELD WIRING 7 7 JUMPER SETTINGS 8 8 PROGRAMMING YOUR TRANSMITTER 10 9 LTS STREAMING DATA INPUT MODE WITH CUSTOM ASCII PROTOCOL 12 10 LTS COMMAND MODE WITH CUST...

Page 4: ...l values or to transmitted control characters which override the internal setpoints The relays can also be controlled independently of the serial input by applying signals to control inputs 1 and 2 Is...

Page 5: ...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 plac...

Page 6: ...Vdc will burn out the main board 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...

Page 7: ...7 6 TRANSMITTER FIELD WIRING...

Page 8: ...place a jumper at E1 cycle power remove the jumper and restart the transmitter Analog Output J4 Pins Jumpers Current 4 20 mA 1 Lo 2 Hi E2 a d Voltage 0 10V 1 Lo 2 Hi E2 b c Voltage 10V to 10V 3 Lo 2...

Page 9: ...ettings are for RS232 input and 4 20 mA output HOW TO OPEN CLOSE THE CASE The two clamshell halves of the case are held together with a bolt and a nut at each of the four corners Use a Phillips screwd...

Page 10: ...ort of the PC CBL02 incorporates and FTDI chip which is compatible with all versions of MS Windows USING INSTRUMENT SETUP IS SOFTWARE As a first step set User Account Control UAC of your version of Wi...

Page 11: ...the next time that you run IS software From the Main Menu click on Counter Get Setup to retrieve or get the existing setup data from your counter transmitter Click on View Setup to bring up screens w...

Page 12: ...haracter Another command recognition character may be chosen to make the transmitter compatible with an existing system The transmitter will still respond to an asterisk Device Address Code from 1 to...

Page 13: ...CR Remote 2 2nd value of value sequence SDDDD DDSDDDD DDSDDDD DDSDDDD DD CR Remote 3 3rd value of value sequence SDDDD DDSDDDD DDSDDDD DDSDDDD DD CR Remote 4 4th value of value sequence SDDDD DDSDDDD...

Page 14: ...ing Control Input 1 Control Input 2 or both Selections applicable to the serial input transmitter are the following Meter Reset Function Reset Meter Reset first row When this row is selected grounding...

Page 15: ...multiple data values and non numeric characters Under this tab you can reselect your Baud Rate Device Address Serial Protocol and Full Half Duplex even though you may have selected different values t...

Page 16: ...ight Under this tab you can reselect Baud Rate Device Address Serial Protocol and Full Half Duplex even though you may have selected different values to es tablish initial communications with your PC...

Page 17: ...V to 10V as your desired analog output Enter your Lo Range Reading and Hi Range Reading These will create the two endpoint values of your analog output range Only enter the numerical values The decima...

Page 18: ...reading is compared if deviation is set to zero The reading is the count in engineering units that is transmitted digitally and is also used for analog output For example if the transmitted reading is...

Page 19: ...s and Band Deviation These define how Setpoint and Deviation are to be combined to set Alarm State Span Hysteresis for heater control Band Deviation for component testing In Split Hysteresis the relay...

Page 20: ...the transmitter s control inputs which has been set to Function Reset under the Input Display tab Alarms 1 2 No Rdgs to Alarm Selections are binary steps from 1 to 128 This is the number of consecutiv...

Page 21: ...to 10V Enter the Lo Range and Hi Range numerical readings which will serve as endpoints for the selected output type Set the LTS Source value to Item 3 which will be used for analog output interpolat...

Page 22: ...section entitled FC03 READ FC10 WRITE HOLDING REGISTER ADDRESSES Use Hi Word starting Register Addresses and an even number of Registers The Register Addresses shown in this section apply to both FC0...

Page 23: ...t in a directory of your choice Create a desktop icon from the installed executable Before using qModMaster ensure that your LTSE transmitter has been set to Modbus RTU as explained in the Instrument...

Page 24: ...how Tx and Rx values written correctly For information on these values please see our Modbus Manual for Counters at https www laurels com downloadfiles Modbus Manual CTR pdf The screen captures below...

Page 25: ...rst Alarm1 is forced by writing 01 01 01 01 to holding register 0x006 This turns Relay1 on Then Alarm2 is forced by writing 03 03 03 03 to holding register 0x006 This turns Relay2 on Both relays are t...

Page 26: ...26...

Page 27: ...at 9600 baud Dual Relay Outputs standard Relay Type Two solid state relays SPST normally open Form A Load rating 120 mA at 140 Vac or 180 Vdc Relay modes Active high or low latching or non latching hy...

Page 28: ...ns 5 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 implied warranties of merchantab...

Reviews: