Parker TPDM User Manual page 130

Table of Contents

Advertisement

Parker Hannifin Manufacturing Srl
[BK+LUN] = the LUN field (first 3 bits) indicates the number of bytes of the data transmitted
(a parameter or a PLC instruction); the values can range from 1 to 4. This value does not
include eventual 0 characters ($00) which are inserted after the values that coincide with the
character of transmission start ($7E). The length of each parameter is two bytes.
The BK field is represented by the 5 most significant bits and represents the 5 most significant
bits of the parameter address.
[PAR] = write/read address of the parameter or PLC instruction.
The parameter address is the number of the parameter * 2 with 13 bit field: PAR represents
the least significant eight bits of the address, the 5 most significant bits must be written in the
BK field.
The table CAM0 used by electronic cam starts at the address from 4096 to 4609, the table
CAM1 starts at the address from 4610 to 5123, the table CAM2 starts at the address from
5124 to 5637, the table CAM3 starts at the address from 5638 to 6151. The PLC instructions
have the address from 0 up to 511.
[D0]... [Dn] = data transmitted.
[CHK] = 256 module sum of all the fields excluding the [STX] (checksum).
Message types
[CMD1] = is the response message of the converter to a data request. The response
message has the following format:
[STX] [001+ADDR] [BK+LUN] [PAR] [D0]... [Dn] [CHK]
or it can be the confirmation message to a data write or data modify. In this case, the format is
the following:
where ADDR always identifies which converter is answering.
[CMD2] = is the read message of an instruction in the PLC area. The message has the
following format:
[CMD3] = is the write message to an instruction in the PLC area. The message has the
following format:
[STX] [011+ADDR] [BK+LUN] [PAR] [D0]... [Dn] [CHK]
[CMD4] = is the read message of a parameter. The message has the following format:
[CMD5] = is the write message of a parameter. The message has the following format:
[STX] [101+ADDR] [BK+LUN] [PAR] [D0]... [Dn] [CHK]
[CMD6] = is the change bit message of a byte parameter. The message has the following
format:
[STX] [110+ADDR] [BK+LUN] [PAR] [D0] [D1] [CHK]
In this case LUN=2 or else two bytes are sent for the data. The first byte is the mask
containing the 0s in the positions of the bits to be changed and 1s in the other positions, while
the second byte contains 1s in the positions of the bits that are to be set to 1 and 0s in the other
[STX] [001+ADDR]
[STX] [010+ADDR] [BK+LUN] [PAR] [CHK]
[STX] [100+ADDR] [BK+LUN] [PAR] [CHK]
user's manual TPDM
129

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents