Mv ] = bit – IDEC DS2_Series User Manual

Page 41

Advertising
background image

DS2

series

Instruction

manual

40

l. PNP/NPN output piloting command - 0x4E (‘N’ ASCII)

Turns on and/or turns off the PNP/NPN output.

Host sends:

0x02 0x02 0x4E

o

0x03

x


DS2 replies:

0x02 0x01 0x6E 0x03 0x90

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:

0x02 0x02 0x4F

p

0x03

x


DS2 replies:

0x02 0x01 0x6F 0x03 0x8F

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:

0x02 0x02 0x50

e

0x03

x


DS2 replies:

0x02 0x16 0x70

a ….. n

0x03

x


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:

Baud-rate

Equity

Data bits

Stop bits

9600

19200
38400
57600

None 8

1

Advertising