Download Instruction Manual
Transcript
DS2 Ethernet Instruction Manual m. A/D Photoelement Conversion Reading Command - 0x50 (‘P’ ASCII) Reads the result of the A/D conversion for an expansion of 21 photoelements. Host sends: 0x02 0x02 0x50 e 0x03 x 0x70 a ….. n 0x03 x DS2 replies: 0x02 0x16 where: e = 1 byte with the expansion number to read (1 to 21) a = 1 byte with the result in bit of the conversion for the photoelement 1 n = 1 byte with the result in bit of the conversion for the photoelement 21 x = checksum (complement to one of the Length, Type and Data field bytes sum) The result of a conversion can be interpreted as follows: V Photoelement [ mV ] = Bit Photoelement * 5000 / 255 Note: the 3 less important bits of a conversion [2-0] have to be zeroed before the calculation. The scanning times vary and depend on different factors such as the number of photoelements, the measurement type selected and the binary or ASCII data format. The values can vary from a minimum of 8 reaching a maximum of 90 milliseconds. 38