Perle Systems DS1, TS2 manual Set Commands

Models: DS1 TS2

1 246
Download 246 pages 24.21 Kb
Page 175
Image 175

Accessing I/O Data Via TruePort

Example 1: Read the status of the first digital input (DI1) on a D2R2 unit.

DI1 sensor is a coil register with the decimal value of 6145 (hex 0x1801).

Request: 0x01 0x18 0x01 0x00 0x01

Response: 0x01 0x01 0x01 (Digital input 1 is active)

Example 2: Read the values for the Inactive Signal Width, Active Signal Width, and Pulse count for the second digital output (DO2) on a D4 unit.

DO2, Inactive Signal Width is a holding register with the decimal value of 6210 (hex 0x1842). Request: 0x03 0x18 0x42 0x00 0x03

Response: 0x03 0x06 0x00 0x0A 0x00 0x11 0x00 0x0F

(Inactive =10*100ms, Active= 17*100ms, and Pulse count = 15)

Example 3: Read the raw current, minimum and maximum values of the third Analog input (A3) on an A4D2 unit.

A3 current raw value is an input register with the decimal value of 2150 (hex 0x0866). Request: 0x04 0x08 0x86 0x00 0x03

Response: 0x04 0x06 0x10 0x03 0x0F 0x30 0x10 0x20

(Current = 0x1003, Minimum = 0x0F30, and Maximum = 0x1020)

Set Commands

The following tables show the general structure to be used for set commands.

Note: Numeric values provided in the API documentation are in Hexadecimal (Hex) format.

Command Format

Byte(s)

# of Bytes

Value

 

 

 

1

1

Command Code (in hex):

 

 

z 0x0F – Set “Boolean registers” (R/W coils)

 

 

z 0x10 – Set “holding registers” (read/write registers)

2-3

2

Starting register number (see A4/T4 Registers , A4D2/A4R2 Registers ,

 

 

or D4/D2R2 Registers for this value).

4-5

2

Number of registers to set. If this value is greater than 1, the response

 

 

will contain the values of multiple consecutive registers.

6

1

The length of the data (in bytes) to be written to the registers.

7-n

n

Data to be written to the registers.

 

 

If accessing registers which are 2 or 4 bytes, the data is in Network

 

 

order (Big endian) format (that is, MSB, LSB).

For Boolean registers, the value field will be a bit field with the LSBit corresponding to the IO channel referenced by the starting register.

175

Page 175
Image 175
Perle Systems DS1, TS2 manual Set Commands

DS1, TS2 specifications

Perle Systems TS2 and DS1 are advanced serial-to-Ethernet devices designed to facilitate seamless integration of serial devices with modern IP networks. These devices serve as crucial tools for businesses looking to enhance their communication capabilities while leveraging existing infrastructure.

One of the standout features of the Perle TS2 and DS1 is their ability to support multiple serial protocols including RS232, RS422, and RS485. This versatile support allows businesses to connect various legacy devices to their networks, ensuring that critical equipment can still communicate effectively in an increasingly digital landscape.

The TS2 model is particularly noted for its dual serial ports, enabling simultaneous communication with multiple devices. This capability is invaluable for applications requiring real-time data transmission, such as remote monitoring and automated control systems. The DS1 model, on the other hand, is designed for single-port use, making it an ideal solution for smaller-scale operations or specific single-device connections.

Both the TS2 and DS1 incorporate advanced features such as configuration through a web interface, which simplifies setup and management. Users can easily access device settings and monitor performance metrics remotely, enhancing operational efficiency. These devices also support various network protocols such as TCP/IP, UDP, and ICMP, ensuring compatibility with a wide range of network architectures.

In terms of security, Perle Systems prioritize user data protection. The TS2 and DS1 offer features including SSL encryption and SSH protection, providing an added layer of security for sensitive information transmitted over the network. This is particularly important for industries where data integrity and security are paramount, such as healthcare and finance.

Additionally, the rugged design of both devices ensures reliable performance even in harsh environments. With extended temperature ratings and robust housing, the TS2 and DS1 can operate in diverse conditions without compromising functionality.

To summarize, the Perle Systems TS2 and DS1 provide a reliable and flexible solution for connecting legacy serial devices to modern networks. With their support for multiple serial protocols, web-based management, robust security features, and rugged design, these devices cater to a variety of industries looking to modernize their communication infrastructure while maintaining existing equipment. Whether for large-scale operations or smaller implementations, the TS2 and DS1 equip businesses with the tools needed for effective serial communication in an IP-driven world.