Interfaces – Communication
Leuze electronic
DCR 248i
91
Reading a reference code
Command
’RR’
Description
The command reads out the reference code defined in the code reader. If no param-
eters are specified, all defined codes are output.
Parameter
<reference code number>
’1’
Reference code 1
Acknowledgment
Output in the following format:
’
RCyvxxzzzz
’
If no reference codes are defined, nothing is entered for
zzzz
.
y
,
v
,
x
and
z
are placeholders (variables) for the actual input.
y
Def. reference code no.
’1’
(Code 1)
v
Storage location for reference code:
’3’
RAM only
xx
’00’ is always output
z
Defined code information (1 … 244 characters)
Device status
Command
’SST?’
Description
The command queries the device status. If the command is sent via the host
interface (Ethernet, RS 232/RS 422), acknowledgment is only given in the
Process
operating mode. The host interface is blocked in the
Service
operating
mode.
Parameter
None
Acknowledgment
’SST=xxxxxxxx’
x
stands for a single bit (value ’1’ or ’0’)
Bit 7 is at the far left, bit 0 is at the far right
0
Ready for testing
’1’
The code reader is ready to receive a trigger and start a
check program.
’0’
The code reader does not respond to an incoming trigger
signal.
1
Operating mode
’1’
Process
operating mode
’0’
Service
operating mode
2
Device error
’1’
Device error, no inspection possible
’0’
No device error, ready
3 … 7
No function, value is always ’0’
Alternatively, the following acknowledgment is output:
’DS=xx’
x
Error acknowledgment
’00’
Syntax error
’01’
Other error