6 - programming examples, Chapter 6, Programming examples – Rockwell Automation 1746-XXXX SLC 500 4-Channel Analog I/O Modules User Manual User Manual

Page 63: Chapter

Advertising
background image

1

Publication 1746-UM005B-EN-P - June 2004

Chapter

6

Programming Examples

This chapter shows several programming examples that provide
additional capabilities such as:

Addressing, Out-of-Range Detection, and Scaling of Analog
Inputs

Addressing and Scaling of Analog Outputs

Scaling Offsets when > 32,767 or < -32,768

Scaling and Range Checking of Analog Inputs and Outputs

The following example uses an NI4 analog input module to show
input addressing, range checking and scaling of analog inputs into
engineering units.

Addressing, Out-of-Range
Detection, and Scaling of
Analog Inputs

The following assumptions are being made:

The NI4 is located in slot 3 of a modular system.

A temperature transducer with a 0 to 10V dc output is wired to
the second input channel on the analog module.

The transducer voltage signal is proportional to a range of 100°
C to 500° C (212° F to 932° F).

The process temperature must stay between 275° and 300° C
(527° F to 572° F). If the temperature deviates from this range, a
flag is set and this out-of-range value is not processed. The data
is presented in degrees C for monitoring and display purposes.

IMPORTANT

The programming examples in this chapter are for
informational purposes only. Because of the many
variables and requirements associated with any
application, the Allen–Bradley Company cannot
assume responsibility or liability for actual use based
on these examples.

Advertising