![Acrel APM830 Скачать руководство пользователя страница 71](http://html1.mh-extra.com/html/acrel/apm830/apm830_installation-and-operation-instruction-manual_2841076071.webp)
66
9. DL/T-645
Communication Guide
It mainly describes how to use the software to control the series of instruments through the communication port. Mastering the
content requires you to have a knowledge base of the DL/T645-2007 agreement and read through all the other sections of this volume to
gain a comprehensive understanding of the product features and application concepts. This chapter includes: DL/T645-2007 protocol
brief, communication application format, local application details and parameter address table.
9.1 DL/T645-2007
Brief description of the agreement
The instrument uses a communication protocol conforming to the DL/T645-2007 specification. The DL/T645-2007 protocol defines
the check code, data, sequence, etc., which are all necessary for specific data exchange. The DL/T645-2007 protocol uses a master-slave
acknowledgment connection (half-duplex) on a single communication line, which means that signals are transmitted in opposite
directions on a single communication line. First, the signal of the host computer is addressed to a unique terminal device (slave), and then
the response signal from the terminal device is transmitted to the host in the opposite direction. Brief description of the agreement.
The DL/T645-2007 protocol only allows communication between the host (PC, PLC, etc.) and the terminal device, and does not
allow data exchange between independent terminal devices, so that the terminal devices do not occupy the communication line when
they initialize. It is limited to responding to the inquiry signal arriving at the unit.
9.2 transmission method
The transmission method refers to a series of independent data structures in a data frame and a limited rule for transmitting data.
The following describes a transmission method compatible with the DL/T645-2007 protocol-RTU mode.
Bit per byte
1 start bit
8 data bits, the smallest valid bit is sent first
1 even parity
1 stop bit
Error checking and verification
9.3 protocol
When the data frame arrives at the terminal device, it enters the addressed device through a simple "port" that removes the
"envelope" (data header) of the data frame, reads the data, and executes the data if there are no errors. The requested task, then it adds the
data it generates to the obtained "envelope" and returns the data frame to the sender. The returned response data includes the following
contents: the terminal slave address (Address), the executed command (Function), the requested data generated by the execution
command (Data), and a check code (Check). No error will occur if any error occurs, or an error indication frame will be returned.
9.3.1 Data frame format
68H
A0 A1 A2 A3 A4 A5
68H
C
L
DI0
DI1
N1 …
Nm
CS
16H
Starter
Address field
Frame start Control Data length
Data
data
Check Terminator