12.05.2014 Views

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

plc analog - 22.14<br />

R = 2 N = R max – R min<br />

V<br />

V max<br />

– V min<br />

ERROR<br />

= ⎛----------------------------<br />

⎞<br />

⎝ 2R ⎠<br />

V I<br />

INT V desired<br />

– V<br />

= ⎛-----------------------------------<br />

min ⎞<br />

⎝ – ⎠ ( R – 1)<br />

+ Rmin<br />

V max<br />

V min<br />

V<br />

V I<br />

– R min<br />

output = ⎛---------------------<br />

⎞( Vmax – V<br />

⎝ ( R – 1)<br />

⎠<br />

min ) + V min<br />

(5)<br />

(6)<br />

(7)<br />

(8)<br />

where,<br />

RR , min , R max = absolute <strong>and</strong> relative resolution of A/D converter<br />

= the maximum quantization error<br />

V ERROR<br />

V I<br />

=<br />

V output<br />

V desired<br />

the integer value representing the desired voltage<br />

= the voltage output using the integer value<br />

= the desired analog output value<br />

Figure 22.11<br />

Analog Output Relationships<br />

Assume we are using an 8 bit D/A converter that outputs values between 0V <strong>and</strong><br />

10V. We have a resolution of 256, where 0 results in an output of 0V <strong>and</strong> 255 results in<br />

10V. The quantization error will be 20mV. If we want to output a voltage of 6.234V, we<br />

would specify an output integer of 159, this would result in an output voltage of 6.235V.<br />

The quantization error would be 6.235V-6.234V=0.001V.<br />

www.PA<strong>Control</strong>.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!