IDEC DS2_Series User Manual

Page 33

Advertising
background image

DS2

series

Instruction

manual

32

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:

0x2A 0x41

aaaaaa bbbbbb cccccc ….. zzzzzz ss

0x0D


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):

0x02 0x04 0x42

m a s

0x03

x


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 = Uscita 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 = Programming Mode (0 local, 1 remote)


DS2 sends (two measurements):

0x02 0x06 0x42

m a n b s

0x03

x


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 = Uscita 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 = Programming Mode (0 local, 1 remote)

Advertising