Instruction Manual DS2
l. PNP/NPN output piloting command - 0x4E (‘N’ ASCII)
Turns on and/or turns off the PNP/NPN output.
Host sends:
DS2 replies:
where:
o = 1 byte with the PNP/NPN output status (0 off, 1 on)
x = checksum (complement to one of the Length, Type and Data field bytes sum)
m. Analogue output piloting command - 0x4F (‘O’ ASCII)
Sets the analogue output level.
Host sends:
DS2 replies:
where:
p = 1 byte with the analogue output percentage (0 = 0V, 100 = 10V)
x = checksum (complement to one of the Length, Type and Data field bytes sum)
n. 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:
DS2 replies:
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
serial transmission speed, 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.
The serial transmission parameters are: