Parker Hannifin Manufacturing Srl
user's manual TPDM
positions. The PAR address is that of the parameter (byte) where one or more bits are to be
modified. If the parameter is a word and the bit to be modified is one of the first 8 (b0...b7):
PAR = the parameter address; otherwise, if the bit to be modified is one of the upper 8
(b8...b15): PAR = the address parameter + 1.
[CMD7] = is the write message of a parameter to all converters connected to the serial line.
The message has the following format:
[STX] [11100000] [BK+LUN] [PAR] [D0]... [Dn] [CHK]
The address of the peripheral device (ADDR) must be 0.
Notes:
- The parameters that are represented on the screen with decimals must be treated as
complete values. For example, a value of 978.5 is read and written as 9785.
- All values that are receded by the $ symbol are to be understood as hex numbers.
- The value included inside the brackets identifies the base unit (byte) of the message.
- All messages must be terminated with a time-out which is a function of the speed, well
defined to be considered valid and must have the exact parity and checksum.
- The converter responds to a request or to a data send only if the message has been received
correctly. In the case of an error in the message, no response is transmitted. The only
exception is message type 7 that is used to send data with a single message to all the
converters connected to the serial line.
Initializing and managing the serial line
The converter is delivered with auto-addressing (Pr27) and a speed of 115200 bps (Pr26=9).
To modify the configuration, first set the speed in Pr26, then disable the auto-addressing by
b230.6=1, and after set the serial address in Pr27, and finally initialise it by issuing the
command b42.3. Use the b99.15 command to store the configuration.
Each pico-PLC instruction occupies 2 or 4 bytes whose format is the following:
Since the maximum length of each instruction in 2 bytes and the total area available in the
PLC is 512 bytes, the PLC program can have at the most 256 instructions.
130