beautypg.com

Appendix i: convert voltage to dac – B&B Electronics ZZ24D-NA(NB,NC,ND)-SR - Manual User Manual

Page 96

background image

Appendix I: Convert Voltage to DAC

90

Manual Documentation Number: pn7515_ZlinxIO-0712m

A

A

p

p

p

p

e

e

n

n

d

d

i

i

x

x

I

I

:

:

C

C

o

o

n

n

v

v

e

e

r

r

t

t

V

V

o

o

l

l

t

t

a

a

g

g

e

e

t

t

o

o

D

D

A

A

C

C

1. Going from Voltage to Modbus Holding Register value:

Voltage Full Range = 10VDC

DAC full range is 4096 counts, 4096

Voltage Desired * 4096/10 = Holding Register Value to Send

2. Going from Current to Modbus Holding Register value:

Current Full Range = 20mA

DAC full range is 4096 counts, 4096

Current Desired * 4096/20 = Holding Register Value to Send

3. Going from Modbus Input Register to Voltage value:

Voltage Full Range = 10VDC

DAC full range is 4096 counts, 4096

Input Register * 10/4096 = Voltage Value

4. Going from Modbus Input Register to Current value:

Current Full Range = 20mA

DAC full range is 4096 counts, 4096

Input Register * 20/4096 = Voltage Value