Question
When a command was sent using Z300 High-precision Laser Profiling System serial communications output, an error was returned. Why is this?
Answer
Because an error was returned, it is likely that the serial communications specifications were set up correctly. It could be that the command format was not input correctly.
For example, to obtain the latest measurement outcome of OUT1 with MEASURE (or M), the input must be as follows:
M 1 delimiter
Where there is a space between "M" and "1".
The output will be
111.1111 delimiter.
The command must be entered in ASCII.
Spaces must be entered between the items but not in front of the delimiter.
Spaces must be entered between the items but not in front of the delimiter.
Another command format example is shown.
Input: JUDPARA 0 10.0000-10.0000 delimiter
(This command changes the OUT0 upper limit to 10.0000, and the lower limit to −10.0000.)
"OK delimiter" is returned when the command is normally executed.
"ER delimiter" is returned when the command is not normally executed.
Refer to the operation manual for Z300 High-precision Visual Displacement Sensor for commands and how they work.