Parker Hannifin Manufacturing Srl user’s manual TPDM
11 SERIAL INTERFACE
The serial communication of the converter is half-duplex, master-slave.
The same serial line can be connected to up to 32 axes, the configuration of the address is
automatic, or by setting a different serial address in each to the Pr27 parameter. It is also
possible to set the transmission speed by using the Pr26 parameter as specified in the table
below:
For the connection diagrams, see the section, Connecting the serial line.
11.1 Communication protocol
The column on the right in the table above shows the time-out value expressed in
milliseconds for each communication speed. This is the time within which the message must
be sent, beginning from the start of each message (STX). If a message is interrupted after this
time, the converter ignores what has been received and waits for the beginning of a new
message.
The message consists of several consecutive bits. The format of the bits is the following:
1 start bit
8 bit of data defined by a following byte enclosed within brackets
1 parity bit (even)
1 stop bit
The structure of the message is the following:
[STX] [CMD+ADDR] [BK+LUN] [PAR] [D0]... [Dn] [CHK]
where:
[STX] = $7E indicator of transmission start. If a field in the message different from STX
assumes the value $7E, this field is followed by a 0 ($00) so that it will not be interpreted as
an [STX].
[CMD+ADDR] = command and address of the peripheral device. This is never 0. This data is
composed in the following way: the first 5 bits (bits 0-4) define the address of the converter
(from 0 to 31); the remaining 3 bits (bits 5-7) define the type of message sent, as described in
the following table:
reading a pico-PLC instruction
writing a pico-PLC instruction
writing a parameter to all the slaves