Page 40
Anhang | ASCII Communication with Sensor
optoNCDT ILR2250
A 3.3
General Commands
A 3.3.1 HELP
HELP [<command>]
Output help for each command.
Command without parameters
<Command> //
Command is executed
Command with parameters
<Command>
// Show current parameter values
<Command> <Parameter1> [<Parameter2> [...]]
// Set the parameters; the number of
parameters varies
<Command> <Parameter1> <Parameter2> ... <Parameter...>
// Set the parameters; the number of
parameters stays the same
Response to a command
->
Cursor; the sensor is waiting for an entry
E<ddd>
Error message; execution rejected
<ddd>
Error code
Format explanation
() Grouping
[]
Optional parameters
<> Placeholders
| Alternative
If a parameter contains spaces, they must be placed in quotation marks.
Examples:
a|b
// Use a or b
a b
// Both parameters are required
a [b [c]]
// Non-fixed number of parameters: a, a b, or a b c
A 3.3.2 GETINFO, Sensor Information
GETINFO
Request sensor information. Output see example below:
->GETINFO
Name:
ILR2250
//Model name of sensor
Serial:
1252
//Serial number
Option:
000
//Sensor option number
Article:
7112015
//Sensor article number
Measuring range:
150000.0mm
//Measuring range of sensor
Version:
1.0
//Software version
Hardware-rev:
00
->
A 3.3.3 GETTEMP
GETTEMP
Reports the inner temperature of the sensor in °C with one decimal place.