DS2 Ethernet  Instruction Manual 
 
 
b.  Complete ASCII scanning result (Complete beam status array) - 0x41 (‘A’ ASCII) 
Sends to host the pattern with the ASCII information relative to each beam. 
 
DS2 sends: 
aaaaaa bbbbbb cccccc ….. zzzzzz ss 
 
where: 
aaaaaa  =  6 ASCII codes (3 bytes) with information concerning the 01-21 photoelements 
bbbbbb  =  6 ASCII codes (3 bytes) with information concerning the 22-42 photoelements 
cccccc  =  6 ASCII codes (3 bytes) with information concerning the 42-63 photoelements 
zzzzzz  =  6 ASCII codes (3 bytes) with information concerning the last 21 photoelements 
ss  =  2 ASCII codes (1 byte) indicating scanning status (see above) 
 
 
c.  Partial Binary scanning result (Measurements) - 0x42 (‘B’ ASCII) 
Sends to host one or due numeric measurements. 
 
DS2 sends (only one measurement): 
 
 
where: 
m  =  ASCII char linked to kind of measure (ASCII code linked to kind of measure get as sum of  
char “A” and numeric value of kind of measure . 
a  =  1 byte with the (0 – 231) 
x  =  checksum (complement to one of the Length, Type and Data field bytes sum) 
s  =   1 byte with scan state: 
bit 0 = Power Led (0 OFF, 1 ON) 
bit 1 = Failure Led (0 OFF, 1 ON) 
bit 2 = Output Led (0 OFF, 1 ON) 
bit 3 = Output PNP/NPN (0 disable, 1 enable)    
bit 4 = short-circuit switching output (0 none, 1 yes) 
bit 5 = stability (0 none, 1 yes) 
bit 6 = n.a. 
bit 7 = n.a. 
 
DS2 sends (two measurements): 
 
 
where: 
m  =  ASCII char linked to kind of measure (ASCII code linked to kind of measure get as sum of  
char “A” and numeric value of kind of measure . 
a  =  1 byte with #1 measurement (0 – 231) 
n  =  1 ASCII code with #2 measurement (‘A’ + numerical value of the measurement type) 
b  =  1 byte with #2 measurement (0 – 231) 
x  =  checksum (complement to one of the Length, Type and Data field bytes sum) 
s  =   1 byte with scan state: 
bit 0 = Power Led (0 OFF, 1 ON) 
bit 1 = Failure Led (0 OFF, 1 ON) 
bit 2 = Output Led (0 OFF, 1 ON) 
bit 3 = Output PNP/NPN (0 disable, 1 enable)    
bit 4 = short-circuit switching output (0 none, 1 yes) 
bit 5 = stability (0 none, 1 yes) 
bit 6 = n.a. 
bit 7 = n.a.