DS2 Ethernet
Instruction Manual
36
g. Teach-
in 0x49 reading command (‘I’ ASCII)
Reads the pattern with the binary information relative to the shape of the object used in the Teach-
in mode.
Host sends:
0x02
0x01
0x49
0x03
0xB5
DS2 replies:
0x02
0x22
0x69
aaa bbb ccc ….. zzz
0x03
x
where:
aaa = 3 bytes with Teach-in of the 01-21 photoelements
bbb = 3 bytes with Teach-in of the 22-42 photoelements
ccc = 3 bytes with Teach-in of the 42-63 photoelements
zzz = 3 bytes with Teach-in of the 211-231 photoelements
x
= checksum (complement to one of the
Length
,
Type
and
Data
field bytes sum)
The correspondence between the photoelements (21) and the bits of a bytes tern is similar to the
Scanning Result
packet.
h. Writing command 0x4A Teach-
in (‘J’ ASCII)
Saves in the DS2 non-volatile memory the new pattern with the binary information relative to the
shape of the object to use in the Teach-in mode.
Host sends:
0x02
0x22
0x4A
aaa bbb ccc ….. zzz
0x03
x
DS2 replies:
0x02
0x01
0x6A
0x03
0x94
where:
aaa
= 3 bytes with Teach-in of the 01-21 photoelements
bbb
= 3 bytes with Teach-in of the 22-42 photoelements
ccc
= 3 bytes with Teach-in of the 42-63 photoelements
zzz
= 3 bytes with Teach-in of the 211-231 photoelements
x
= checksum (complement to one of the Length, Type and Data field bytes sum)
The correspondence between the photoelements (21) and the bits of a bytes tern is similar to the
Scanning Result packet.
i. Firmware release reading command -
0x4B ( ‘K’ ASCII)
Reads the firmware release.
Host sends:
0x02
0x01
0x4B
0x03
0xB3
DS2 replies:
0x02
0x0B
0x6B
vvvvvvvvvv
0x03
x
where:
vvvvvvvvvv = 10 ASCII codes with the firmware version
x = checksum (complement to one of the
Length
,
Type
and
Data
field bytes sum)