TS-1800: Difference between revisions

From embeddedTS Manuals
No edit summary
No edit summary
Line 174: Line 174:
== Operating (holding) Registers ==
== Operating (holding) Registers ==
{|class=wikitable
{|class=wikitable
|-
| -
! Address (hex)
! Address (hex)
! Address (dec)
! Address (dec)
! Access
! Access
! Description
! Description
|-
| -
| 0x0
| 0
| 0
| Read Only
| 0
| Port 0 1-wire temperature data <ref name=temp> The temperature is read in 1/100th degrees Celsius.  The temperature is only readable when the sensor is connected and the DIO port is configured to read from the sensor (0x7a).</ref>
| Read / Wrote
|-
| Channel 0 ADC Result (Refer to details below)
| 0x1
| -
| 1
| 1
| Read Only
| 1
| Port 1 1-wire temperature data <ref name=temp />
| Read / Wrote
|-
| Channel 1 ADC Result (Refer to details below)
| 0x2
| -
| 2
| 2
| Read Only
| 2
| Port 2 1-wire temperature data <ref name=temp />
| Read / Wrote
|-
| Channel 2 ADC Result (Refer to details below)
| 0x3
| -
| 3
| 3
| Read Only
| 3
| Port 3 1-wire temperature data <ref name=temp />
| Read / Wrote
|-
| Channel 3 ADC Result (Refer to details below)
| 0x4
| -
| 4
| 4
| Read Only
| 4
| Port 4 1-wire temperature data <ref name=temp />
| Read / Wrote
|-
| Channel 4 ADC Result (Refer to details below)
| 0x5
| -
5
| 5
| 5
| Read Only
| Read / Wrote
| Port 5 1-wire temperature data <ref name=temp />
| Channel 5 ADC Result (Refer to details below)
|-
| -
| 0x6
| 6
| 6
| Read Only
| 6
| Port 6 1-wire temperature data <ref name=temp />
| Read / Wrote
|-
| Channel 6 ADC Result (Refer to details below)
| 0x7
| -
| 7
| 7
| 7
| Read Only
| Read / Wrote
| Port 7 1-wire temperature data <ref name=temp />
| Channel 7 ADC Result (Refer to details below)
|-
| -
| 0x8
| 8
| 8
| 8
| Read Only
| Read / Wrote
| DIO Input data <ref>The input values are reflected in each bit for the DIO that are configured as inputs.  DIO not configured as an input will be 0</ref>
| Channel 8 ADC Result (Refer to details below)
|-
| -
| 0x9
| 9
| 9
| 9
| Read Only
| Read / Wrote
| DIO Output pins <ref>The bits in the return value will correspond with the pin configuration at 0x121 to show which pins are configured as outputs</ref>
| Channel 9 ADC Result (Refer to details below)
|-
| -
| 0x0a
| 10
| 10
| Read Only
| A
| 4 button inputs (unimplemented) <ref>Bits 0-3 of the return value correspond with the 4x optional membrane buttons on the outside of the caseThe return value is already debounced, and will indicate with a 1 if the button is pressed.</ref>
| Read / Wrote
|-
| Channel 10 ADC Result (Refer to details below)
| 0x77
| -
| 11
| B
| Read / Wrote
| Channel 11 ADC Result (Refer to details below)
| -
| 12
| C
| Read / Wrote
| Channel 12 ADC Result (Refer to details below)
| -
| 13
| D
| Read / Wrote
| Channel 13 ADC Result (Refer to details below)
| -
| 14
| E
| Read / Wrote
| Internal 2 VDC reference for channels 8-13
| -
| 15-17
| F-11
| Read / Wrote
| Unused (Reserved)
| -
| 18
| 12
| Read / Wrote
| Output 0 Control (See below)
| -
| 19
| 13
| Read / Wrote
| Output 1 Control (See below)
| -
| 20
| 14
| Read / Wrote
| Output 2 Control (See below)
| -
| 21
| 15
| Read / Wrote
| Output 3 Control (See below)
| -
| 22
| 16
| Read / Wrote
| Output 4 Control (See below)
| -
| 23
| 17
| Read / Wrote
| Output 5 Control (See below)
| -
| 24
| 18
| Read / Wrote
| Output 6 Control (See below)
| -
| 25
| 19
| Read / Wrote
| Output 7 Control (See below)
| -
| 26-31
| 1A-1F
| Read / Wrote
| Unused (Reserved)
| -
| 32
| 20
| Read / Wrote
| DIO INPUT: Bits 0-15 will reflect the state of the state corresponding input pin (0 or 1).
| -
| 33
| 21
| Read / Wrote
| Unused (Reserved)
| -
| 34
| 22
| Read / Wrote
| DIO OUTPUT: Bits 0-7 are reflected to the corresponding DIO output pins for those bits that are configured as direct outputs in the next register.  Bits not configured as direct outputs are controlled via the PWM setting for the channelA bit set to logic 1 or during the PWM high time will “assert” the associated DIO pin, which is asserted as active low with a 500 ma sink capacity.
| | -
 
|
|
|
| -
| 48
| 30
| Read / Wrote
| Channel 0 16-bit ADC raw value.  (Positive value only)
| -
| 49
| 31
| Read / Wrote
| Channel 0 extended channel data (Refer to details below)
| -
| 50
| 32
| Read / Wrote
| Channel 1 16-bit ADC value.  (Positive value only)
| -
| 51
| 33
| Read / Wrote
| Channel 1 extended channel data (Refer to details below)
| -
| 52
| 34
| Read / Wrote
| Channel 2 16-bit ADC value.  (Positive value only)
| -
| 53
| 35
| Read / Wrote
| Channel 2 extended channel data (Refer to details below)
| -
| 54
| 36
| Read / Wrote
| Channel 3 16-bit ADC value.  (Positive value only)
| -
| 55
| 37
| Read / Wrote
| Channel 3 extended channel data (Refer to details below)
| -
| 56
| 38
| Read / Wrote
| Channel 4 16-bit ADC value.  (Positive value only)
| -
| 57
| 39
| Read / Wrote
| Channel 4 extended channel data (Refer to details below)
| -
| 58
| 3A
| Read / Wrote
| Channel 5 16-bit ADC value.  (Positive value only)
| -
| 59
| 3B
| Read / Wrote
| Channel 5 extended channel data (Refer to details below)
| -
| 60
| 3C
| Read / Wrote
| Channel 6 16-bit ADC value.  (Positive value only)
| -
| 61
| 3D
| Read / Wrote
| Channel 6 extended channel data (Refer to details below)
| -
| -
| 62
| 3E
| Read / Wrote
| Channel 7 16-bit ADC value.  (Positive value only)
| -
| 63
| 3F
| Read / Wrote
| Channel 7 extended channel data (Refer to details below)
| -
 
|
|
|
| -
 
|
|
| 0x40-0x4F (Reserved)
| -
 
|
|
|
| -
| 80
| 50
| Read / Wrote
| Channel 8 16-bit ADC value.  (Positive and Negative values)
| -
| 81
| 51
| Read / Wrote
| Channel 8 extended channel data (Refer to details below)
| -
| 82
| 52
| Read / Wrote
| Channel 9 16-bit ADC value.  (Positive and Negative values)
| -
| 83
| 53
| Read / Wrote
| Channel 9 extended channel data (Refer to details below)
| -
| 84
| 54
| Read / Wrote
| Channel 10 16-bit ADC value.  (Positive and Negative values)
| -
| 85
| 55
| Read / Wrote
| Channel 10 extended channel data (Refer to details below)
| -
| 86
| 56
| Read / Wrote
| Channel 11 16-bit ADC value.  (Positive and Negative values)
| -
| 87
| 57
| Read / Wrote
| Channel 11 extended channel data (Refer to details below)
| -
| 88
| 58
| Read / Wrote
| Channel 12 16-bit ADC value.  (Positive and Negative values)
| -
| 89
| 59
| Read / Wrote
| Channel 12 extended channel data (Refer to details below)
| -
| 90
| 5A
| Read / Wrote
| Channel 13 16-bit ADC value. (Positive and Negative values)
| -
| 91
| 5B
| Read / Wrote
| Channel 13 extended channel data (Refer to details below)
| -
| 92
| 5C
| Read / Wrote
| Unused (Reserved)
| -
| 93
| 5D
| Read / Wrote
| Unused (Reserved)
| | -
 
|
|
|
| -
| 96
| 60
| Read / Wrote
| ADC Channel 0-7 Resolution & Speed
| -
| 97
| 61
| Read / Wrote
| ADC Channel 8-13 Resolution & Speed
| -
| 98
| 62
| Read / Wrote
| ADC Range
| -
| 99
| 63
| Read / Wrote
| ADC Channel Enable
| -
| 100
| 64
| Read / Wrote
| ADC Control
| -
 
|
|
|
| -
| 101
| 65
| Read / Wrote
| High serial number (MAC)
| -
| 102
| 66
| Read / Wrote
| Middle serial number (MAC)
| -
| 103
| 67
| Read / Wrote
| Low serial number (MAC)
| -
| -
| 119
| 119
| Read Only
| 77
| Device Power Supply in millivolts
| Read / Wrote
|-
| Current external bus supply voltage in millivolts  
| 0x78
| -
| 120
| 120
| Read Only
| 78
| Device temperature in 1/100th degrees Celsius
| Read / Wrote
|-
| Current internal unit temperature in 1/100th degrees Celsius
| 0x79
| -
| 121
| }
| Read/Write
 
| DIO direction and configuration <ref>See [[#DIO|this section for more details on this register]] </ref>
 
|-
| 0x7a
| 122
| Read/Write
| DIO Port DIO or Temp <ref>>The bits in the return value will correspond with the DIO to set as a DIO (0), or a temperature sensor (1).</ref>
|}


<references />
<references />

Revision as of 17:07, 14 May 2014

TS-1800
TS-1700-2.jpg
Released Feb. 2013
Product Page
Documentation
Schematic
Mechanical Drawing
FTP Path
DIO
8
External Interfaces
2x RJ45 Modbus
Power Requirements
12-24V
Operates around ??
Operating Temperature
Cold -40C
Hot 85C
Mechanical
140mm x 102mm
Height 35mm (approx without baseboard)
Weight 167

Overview

This document is currently under construction

The TS-1800 is a Modbus peripheral device that provides 14 ADC channels, 8 digital outputs, and 16 digital inputs.

Getting Started

Power Requirements

The TS-1800 will operate within a range of 10-28 VDC on either Modbus port. Power supplied on the Modbus port is passed along the bus as an active power rail on the other Modbus port. Do not apply power to both Modbus ports.

Features

TS Modbus Support

The TS-1800 can be utilized as a device in a chain of devices on the RS-485 Modbus port; or, as a single peripheral device pm a USB port. When operating on the USB port, the default device address is 0xf6 (246) and the default bit rate is 1,000,000 bps. When using all Technologic Systems Modbus devices we include functionality to create an arbitrary chain of stock peripherals to automatically enumerate all connected devices, configure them them, and generate an I/O map of all connected devices.

TS Modbus Autoconfiguration

The autoconfiguration works by using the optional mode pin on the RJ45 connector as designated in the MODBUS-2W standard. Technologic Systems uses this to indicate if it is a TS device. If it is asserted (low) to a TS device, then it will allow access to the #Holding Registers at address 0xfe. Normally 0xfe is not a valid address in Modbus, so this will not interfere with other devices.

This will identify the TS Modbus device model and revision, set the first device in the chain to 0x80, and then asserts the mode line to the next port to enumerate the next device. The next device address is set to 0x81, and they continue to increment 1 until no slave responds to the mode line indicating that all salve devices have been discovered. At this point the last device in the chain is configured to enable termination on the RS485 link, and all devices have their speed bumped up to 1M baud.

Funciontality

The TS-1800 provides the following interfaces:

  • 8 Single Rnded ADC channels in the range 0-30 or 0-7.5 VDC
    • Channels 0-1, 2-3, & 5-7 may be configured in blockes to operate as 4-20 mA instrumentation ports
  • 6 Differantial ADC channels in the range +/- 30 or +/- 7.5 VDC
  • 8 digital outputs with 6-bit PWM as open drain 500 mA sink capacity
  • 16 digital inputs (0-30 VDC)

Each ADC channel can be enabled or disabled individually and can be set for resolution and sample rate as follows:

  • 12 bits per sample @ 240 SPS
  • 14 bits per sample @ 60 SPS
  • 16 bits per sample @ 15 SPS

Holding Registers

The interface to all Modbus peripheral devices consists of a set of 127 holding registers. These registers are used to configure the device operation, read and write input output parameters, as well as various settings used to configurable Modbus Address, Termination enable, Data Format, and Bit Rate. These settings are common to all of our Modbus peripherals and can be persisted in on-board flash memory.

NOTE: The device operates ONLY in Modbus RTU communications mode. Modbus ASCII is not presently supported.

Common Configuration Holding Registers

Address (hex) Address (dec) Access Description Example Values
0x70 112 Read/Write Modbus Mode RTU 1
0x71 113 Read/Write RS485 Bus Termination Enable 0: Disable termination

1: Enable termination

0x72 114 Read/Write Modbus Device Address 1-246 (0x01-0xf7)
0x73 115 Read/Write Modbus baud rate Communication Bit Rate
0x74 116 Read Only Unit Model TS-1700
0x75 117 Read Only Verilog Version 1
0x76 118 Read Only ZPU Version 1
0x77 119 Read Only Bus supply voltage in millivolts 24000
0x78 120 Read Only Internal Temperature in 1/100th degree Celsius 22000
0x79 121 Read/Wrtie Reserved N/A
0x7a 122 Read / Write Reserved N/A
0x7b 123 Read Only Reserved N/A
0x7c 124 Read Only Reserved N/A
0x7d 125 Read/Write Write value to pogrom configuration: Set to:

0xfeed: Persist configuration parameters (set Legacy Mode) 0xdead: Kill Legacy mode (Reset to 9600,N,8,1 @ 0xf7) 0xc0de: Copy configuration parameters to hardware: i.e., Bit rate, Address, Format. The value is set to zero when completed OK or 0xfa17 (fail) for a failure such as an invalid parameter.

0x7e 124 Read Only Reserved N/A

Operating (holding) Registers

- Address (hex) Address (dec) Access Description - 0 0 Read / Wrote Channel 0 ADC Result (Refer to details below) - 1 1 Read / Wrote Channel 1 ADC Result (Refer to details below) - 2 2 Read / Wrote Channel 2 ADC Result (Refer to details below) - 3 3 Read / Wrote Channel 3 ADC Result (Refer to details below) - 4 4 Read / Wrote Channel 4 ADC Result (Refer to details below) -

5

5 Read / Wrote Channel 5 ADC Result (Refer to details below) - 6 6 Read / Wrote Channel 6 ADC Result (Refer to details below) - 7 7 Read / Wrote Channel 7 ADC Result (Refer to details below) - 8 8 Read / Wrote Channel 8 ADC Result (Refer to details below) - 9 9 Read / Wrote Channel 9 ADC Result (Refer to details below) - 10 A Read / Wrote Channel 10 ADC Result (Refer to details below) - 11 B Read / Wrote Channel 11 ADC Result (Refer to details below) - 12 C Read / Wrote Channel 12 ADC Result (Refer to details below) - 13 D Read / Wrote Channel 13 ADC Result (Refer to details below) - 14 E Read / Wrote Internal 2 VDC reference for channels 8-13 - 15-17 F-11 Read / Wrote Unused (Reserved) - 18 12 Read / Wrote Output 0 Control (See below) - 19 13 Read / Wrote Output 1 Control (See below) - 20 14 Read / Wrote Output 2 Control (See below) - 21 15 Read / Wrote Output 3 Control (See below) - 22 16 Read / Wrote Output 4 Control (See below) - 23 17 Read / Wrote Output 5 Control (See below) - 24 18 Read / Wrote Output 6 Control (See below) - 25 19 Read / Wrote Output 7 Control (See below) - 26-31 1A-1F Read / Wrote Unused (Reserved) - 32 20 Read / Wrote DIO INPUT: Bits 0-15 will reflect the state of the state corresponding input pin (0 or 1). - 33 21 Read / Wrote Unused (Reserved) - 34 22 Read / Wrote DIO OUTPUT: Bits 0-7 are reflected to the corresponding DIO output pins for those bits that are configured as direct outputs in the next register. Bits not configured as direct outputs are controlled via the PWM setting for the channel. A bit set to logic 1 or during the PWM high time will “assert” the associated DIO pin, which is asserted as active low with a 500 ma sink capacity. - - 48 30 Read / Wrote Channel 0 16-bit ADC raw value. (Positive value only) - 49 31 Read / Wrote Channel 0 extended channel data (Refer to details below) - 50 32 Read / Wrote Channel 1 16-bit ADC value. (Positive value only) - 51 33 Read / Wrote Channel 1 extended channel data (Refer to details below) - 52 34 Read / Wrote Channel 2 16-bit ADC value. (Positive value only) - 53 35 Read / Wrote Channel 2 extended channel data (Refer to details below) - 54 36 Read / Wrote Channel 3 16-bit ADC value. (Positive value only) - 55 37 Read / Wrote Channel 3 extended channel data (Refer to details below) - 56 38 Read / Wrote Channel 4 16-bit ADC value. (Positive value only) - 57 39 Read / Wrote Channel 4 extended channel data (Refer to details below) - 58 3A Read / Wrote Channel 5 16-bit ADC value. (Positive value only) - 59 3B Read / Wrote Channel 5 extended channel data (Refer to details below) - 60 3C Read / Wrote Channel 6 16-bit ADC value. (Positive value only) - 61 3D Read / Wrote Channel 6 extended channel data (Refer to details below) - - 62 3E Read / Wrote Channel 7 16-bit ADC value. (Positive value only) - 63 3F Read / Wrote Channel 7 extended channel data (Refer to details below) - - 0x40-0x4F (Reserved) - - 80 50 Read / Wrote Channel 8 16-bit ADC value. (Positive and Negative values) - 81 51 Read / Wrote Channel 8 extended channel data (Refer to details below) - 82 52 Read / Wrote Channel 9 16-bit ADC value. (Positive and Negative values) - 83 53 Read / Wrote Channel 9 extended channel data (Refer to details below) - 84 54 Read / Wrote Channel 10 16-bit ADC value. (Positive and Negative values) - 85 55 Read / Wrote Channel 10 extended channel data (Refer to details below) - 86 56 Read / Wrote Channel 11 16-bit ADC value. (Positive and Negative values) - 87 57 Read / Wrote Channel 11 extended channel data (Refer to details below) - 88 58 Read / Wrote Channel 12 16-bit ADC value. (Positive and Negative values) - 89 59 Read / Wrote Channel 12 extended channel data (Refer to details below) - 90 5A Read / Wrote Channel 13 16-bit ADC value. (Positive and Negative values) - 91 5B Read / Wrote Channel 13 extended channel data (Refer to details below) - 92 5C Read / Wrote Unused (Reserved) - 93 5D Read / Wrote Unused (Reserved) - - 96 60 Read / Wrote ADC Channel 0-7 Resolution & Speed - 97 61 Read / Wrote ADC Channel 8-13 Resolution & Speed - 98 62 Read / Wrote ADC Range - 99 63 Read / Wrote ADC Channel Enable - 100 64 Read / Wrote ADC Control - - 101 65 Read / Wrote High serial number (MAC) - 102 66 Read / Wrote Middle serial number (MAC) - 103 67 Read / Wrote Low serial number (MAC) - - 119 77 Read / Wrote Current external bus supply voltage in millivolts - 120 78 Read / Wrote Current internal unit temperature in 1/100th degrees Celsius - }



Communication Bit Rate

The TS-1700 supports 13 speeds:

Value Communication Bit Rate Maximum CAT5 Cable Length
0 300 1200 meters
1 600 1200 meters
2 1200 1200 meters
3 2400 1200 meters
4 4800 1200 meters
5 9600 1200 meters
6 19.2K 1200 meters
7 38.4K 1200 meters
8 57.6K 1200 meters
9 115.2K 800 meters
10 230.4K [1] 400 meters
11 460.8K [1] 200 meters
12 1040K [1] 100 meters
  1. 1.0 1.1 1.2 Only using TS XUART capable Modbus controller and modified libmodbus software libraries.

Connectors

2x RJ45

Both RJ45 ports, and all of our Modbus based devices are designed to be compatible with 2W-MODBUS RJ45 following this pinout:

ModbusRJ45.png

16 Pin Terminal Block

The terminal block is a removable connector that includes 5V digital I/O. Every '+' pin is configurable using the Modbus registers, and each pin labelled '-' is connected to ground.

TS-1700-IO.jpg

Product Notes

FCC Advisory

This equipment generates, uses, and can radiate radio frequency energy and if not installed and used properly (that is, in strict accordance with the manufacturer's instructions), may cause interference to radio and television reception. It has been type tested and found to comply with the limits for a Class A digital device in accordance with the specifications in Part 15 of FCC Rules, which are designed to provide reasonable protection against such interference when operated in a commercial environment. Operation of this equipment in a residential area is likely to cause interference, in which case the owner will be required to correct the interference at his own expense.

If this equipment does cause interference, which can be determined by turning the unit on and off, the user is encouraged to try the following measures to correct the interference:

Reorient the receiving antenna. Relocate the unit with respect to the receiver. Plug the unit into a different outlet so that the unit and receiver are on different branch circuits. Ensure that mounting screws and connector attachment screws are tightly secured. Ensure that good quality, shielded, and grounded cables are used for all data communications. If necessary, the user should consult the dealer or an experienced radio/television technician for additional suggestions. The following booklets prepared by the Federal Communications Commission (FCC) may also prove helpful:

How to Identify and Resolve Radio-TV Interference Problems (Stock No. 004-000-000345-4) Interface Handbook (Stock No. 004-000-004505-7) These booklets may be purchased from the Superintendent of Documents, U.S. Government Printing Office, Washington, DC 20402.

Limited Warranty

See our Terms and Conditions for more details.