Accessing I/O Data Via TruePort

Format of API Commands

There are two groups of commands:

zGet Commands—Retrieve values of the I/O channel registers

zSet Commands—Set values on the I/O channel registers.

Note: All commands need to be written to the COM port as a single write.

I/O Channel registers are all assigned unique addresses, which need to be referenced in all of the commands. Please refer to the documentation specific you the applicable mode, for the list and addresses of all the registers.

Model

Go to...

 

 

A4

A4/T4 Registers

T4

A4/T4 Registers

A4D2

A4D2/A4R2 Registers

A4R2

A4D2/A4R2 Registers

D4

D4/D2R2 Registers

D2/R2

D4/D2R2 Registers

 

 

Get Commands

The following tables show the general structure to be used for Get 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:

 

 

z 0x01

– Get “coils” (Boolean register)

 

 

z 0x03

– Get “holding registers” (R/W registers)

 

 

z 0x04

– Get “input registers” (R only register)

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 read. If this value is greater than 1, the response

 

 

will contain the values of multiple consecutive registers.

 

 

 

 

Response Format

Byte(s) # of Bytes Value

11 Command that this is a response to. If an error has been detected, the command value will have the high bit set (OR with 0x80). For example: The command is 0x04, so the command field in the response would be 0x84.

2

1

Length of data (in bytes) starting in next byte.

3-n

n

Requested register values.

 

 

 

174

Page 174
Image 174
Perle Systems TS2, DS1 manual Format of API Commands, Get Commands, Command Format, Response Format, Model Go to

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.