— 8-57 —
8.9.2.2. Command Entry
Input a command in the order of
Command name + Data + Carriage return (0D
H
).
◊ There are some commands that do not have data.
For an example, send the following code to the Driver Unit to set the parameter VG (Velocity
loop proportional gain) to VG0.5.
Ú
Press the ENT key when the Handy Terminal FHT21
is used.
V
code (56
H
)
G
code (47
H
)
0
code (30
H
)
.
code (2E
H
)
5
code (35
H
)
Carriage return code (0D
H
)
62
The Driver Unit echoes back for every input of a character. (The Driver Unit echoes back the
same character it has received from the communicating terminal.)
◊ However, the Driver Unit converts an input of the carriage return (0D
H
) to
Carriage return (0D
H)
) + Linefeed (0A
H
) and returns it to the terminal.
When the last carriage return code is input, the Driver Unit collectively decodes the character
string it has received (VG0.5 in the example above) and executes it. Therefore, a command
won’t be executed unless it ends with the carriage return code.
◊ When the Driver Unit is ready for an input of the next command, it returns the prompt
[colon (:)] right after the linefeed code (0A
H
).
:VG0.5
:_
Entered command.
Waitin
for the next command.
Input (to Driver Unit)
0D
H
5 . 0 GV
Echo backe (from Driver Unit)
: 0A
H
0D
H
5. 0GV