
Parker Hannifin S.p.A. - S.B.C. Division HPD N User’s Manual
85
Serial line application examples
For a better understanding of how to implement the serial line communication protocol, we
have provided a few examples for each type of message.
The values are entered simply by way of example.
Case 1: reading a 1 byte parameter
Assume you want to read the value of parameter Pr.31 (operating mode), and that the value of
this parameter is 9; assume the drive serial address is 0. The message to transmit is:
[$7E][$80][$01][$54][$D5]
The drive answers with the message:
[$7E][$20][$01][$54][$09][$7E][$00]
Case 2: reading a 2 byte parameter
Assume you wish to read the reference speed (Pr.7) and that the relative value is 2000;
assume also that the drive serial address is 1. The message to transmit is:
[$7E][$81][$02][$42][$C5]
The drive answers with:
[$7E][$21][$02][$42][$D0][$07][$3C]
Case 3: writing a 1 byte parameter
Assume you want to select operating mode 1 (Pr.31); assume also that the drive serial address
is 3. The message to transmit is:
[$7E][$A3][$01][$54][$01][$F9]
The drive answers with:
[$7E][$23]
Case 4: writing a 2 byte parameter
Assume you intend to set rated current at 25.3% (Pr.33); assume also that the drive serial
address is 3. The message to transmit is:
[$7E][$A3][$02][$C6][$FD][$00][$68]
The drive answers with:
[$7E][$23]
Case 5: setting a bit to 1
Assume you want to enter the command to save the PLC program (b99.14=1); assume also
that the drive serial address is 0. The message to transmit is:
[$7E][$C0][$02][$93][$BF][$40][$54]
The drive answers with:
[$7E][$20]
Summary of Contents for HPD2N
Page 3: ......
Page 4: ......
Page 121: ...Parker Hannifin S p A S B C Division HPD N User s Manual 118...
Page 125: ......