D3 04AD 4-Channel Analog Input

Similar documents
This Errata Sheet contains corrections or changes made after the publication of this manual.

F3 08AD 1 8-Channel Analog Input

F3 16AD 16-Channel Analog Input

F4-04DA-1 4-Channel Analog Current Output

F4 08DA 2 8-Channel Analog Voltage Output

F4 16DA 2 16-Channel Analog Voltage Output

F4-04ADS 4-Channel Isolated Analog Input

F2-04AD-2, F2-04AD-2L 4-Channel Analog Voltage Input

F2-04AD-1, F2-04AD-1L 4-Channel Analog Current Input

F4 04DAS 1 4-Channel Isolated 4 20mA Output

This Errata Sheet contains corrections or changes made after the publication of this manual.

F4-08RTD 8-Channel RTD Input

Chapter. F0-04AD-1, 4-Channel Analog Current Input. In This Chapter...

Chapter. F2-08DA-2, 8-Channel Analog. In This Chapter...

Chapter. F2-02DAS-1, Isolated 2-Channel Analog Current Output. In This Chapter...

Chapter. F2-02DA-1, F2-02DA-1L 2-Channel Analog. Current Output. In This Chapter...

Chapter. F2-02DA-2, F2-02DA-2L 2-Channel Analog. In This Chapter...

Chapter. F2-04AD-1, 4-Channel Analog Current Input. In This Chapter:

Chapter. F2-08AD-2 8-Channel Analog Voltage Input. In This Chapter...

CHAPTER F0-08ADH-1 8-CH. ANALOG CURRENT INPUT. In This Chapter...

Chapter. F2-04THM 4-Channel. In This Chapter...

Chapter. F2-4AD2DA 4-Ch. In / 2-Ch. Out. In This Chapter...

Chapter. F2-8AD4DA-1 8-Ch. In / 4-Ch. Out Current Analog. In This Chapter...

Chapter F2-04RTD. 4-Channel RTD Input. In This Chapter...

Allen-Bradley. User Manual. SLC 500 Analog I/O Modules. (Cat. Nos NI4, -NIO4I, -NIO4V, -NO4I, and -NO4V)

This Datasheet is for the IC693ALG220. Analog Voltage Input - 4 Channel.

This Datasheet is for the IC693ALG391. Analog Current Output - 2 Channel.

Chapter. Getting Started. In This Chapter...

VersaPoint I/O Module

FC-33, DC SELECTABLE SIGNAL CONDITIONER

FC Series Signal Conditioners

INSTALLATION & OPERATION MANUAL

VARIO RTD 2. Function. I/O Extension Module With Two Analog Input Channels for the Connection of Temperature Shunts (RTD) User Manual

VersaPoint I/O Module

General Application Notes Remote Sense Remote On / Off Output Trim Series Operation Parallel Operation...

DS1806 Digital Sextet Potentiometer

Series SIX Programmable Controllers

DS1633. High Speed Battery Recharger PIN ASSIGNMENT TO 220 FEATURES. PIN DESCRIPTION V CC Supply Voltage V BAT Battery Output GND Ground

Automationdirect.com. D i r e c t L o g i c L o o p P I D C o p r o c e s s o r F P I D

BusWorks 900EN Series Modbus TCP/IP 10/100M Industrial Ethernet I/O Modules

P a g e 1. Introduction

P1-04ADL-2 Analog Input

DS1267B Dual Digital Potentiometer

P1-04THM Analog Input

IB IL AO 1/U/SF. Function. INTERBUS Inline Terminal With One Analog Voltage Output. Data Sheet 5736CC01

Continental Hydraulics Installation Manual CEM-RA-A

DIN Thermocouple Conditioner MODEL 5M14(V)

IB IL AI 2/SF. Function. INTERBUS Inline Terminal With Two Analog Input Channels. Data Sheet 5564A

HE693THM884/888 High Resolution Thermocouple Module Product Specifications and Installation

IB IL TEMP 2 UTH. Function. INTERBUS Inline Terminal With Two Analog Input Channels for Measuring Temperature. Data Sheet 5722B

Tel: Fax:

RTD Input Module. Product Specifications and Installation Data 1 DESCRIPTION 2 INSTALLATION

DS1867 Dual Digital Potentiometer with EEPROM

Introduction (concepts and definitions)

SmartBlock I/O Module - HE579DAC107/HE579DAC207 8/4 Channel Current and Voltage Output 0-5V / 0-10V / 4-20mA / 0-20mA - CsCAN

Chapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition

April 1994 UCM-420A. Setpoint Controller. Operating and Installation Instructions

Installation Instructions Space Temperature Transmitter

IB IL AI 8/IS IB IL AI 8/IS-PAC

EN SERIES NEMA CASED DIGITAL PANEL METERS ELECTRO- NUMERICS, INC.

Section 1, General information Introduction... 3 Description... 3 Specifications... 4 Wiring connections... 5

Serial Input 18-Bit Monolithic Audio DIGITAL-TO-ANALOG CONVERTER

Operational Amplifiers (Op Amps)

DS1720 ECON-Digital Thermometer and Thermostat

Microprocessor-Compatible ANALOG-TO-DIGITAL CONVERTER

DS1803 Addressable Dual Digital Potentiometer

NetBiter I/O Extender 4RO 6RTD 8DIO - DAIO User Manual Revision 1.00

8-Bit A/D Converter AD673 REV. A FUNCTIONAL BLOCK DIAGRAM

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

SCXI 8-Channel Isolated Analog Input Modules

Peer Master Example. In This Chapter...

DUAL OUTPUT AC CURRENT/VOLTAGE TRANSDUCER

High Resolution Thermocouple Module Product Specifications and Installation Data

Quantum I/O Modules. At a Glance. The following section provides information on the Quantum Input/Output (I/O) modules. What s in this Chapter?

MODEL AT-10 ANALOG TRANSMITTER

Analog Signal Conditioning Accessories

The SCB-68 is a shielded board with 68 screw terminals for easy connection to National Instruments 68-pin products.

EE 109 Midterm Review

DS1267 Dual Digital Potentiometer Chip

Digital Potentiometers Selection Guides Don t Tell the Whole Story

DS1807 Addressable Dual Audio Taper Potentiometer

Contents. Warranty and Disclaimer 2 Introduction 3

Programmable Clock Generator

The Allen-Bradley Servo Interface Module (Cat. No SF1) when used with the Micro Controller (Cat. No UC1) can control single axis

22. ANALOG INPUTS AND OUTPUTS

USER S MANUAL PULSE INPUTS MODULE WITH PROVER SUPPORT

Chapter 1: Digital logic

Analog Inputs and Outputs

Microprocessor-Compatible 12-Bit D/A Converter AD667*

EX CHANNEL ISOLATED THERMOCOUPLE AND VOLTAGE MEASUREMENT INSTRUMENT

UniStream Uni-I/O Modules

Specifying A D and D A Converters

DS1307ZN. 64 X 8 Serial Real Time Clock

SCM5B48 ACCELEROMETER INPUT MODULE USER S MANUAL

USING RS-232 to RS-485 CONVERTERS (With RS-232, RS-422 and RS-485 devices)

SilverMax Datasheet. QuickSilver Controls, Inc. NEMA 23 Servomotors.

KMC Input Wizards. Application Guide. Contents. Introduction to the Binary and Analog Wizards

AD557 SPECIFICATIONS. T A = 25 C, V CC = 5 V unless otherwise noted) REV. B

DIN SERIES DIGITAL PANEL METERS ELECTRO- NUMERICS, INC.

Serial Input 18-Bit Monolithic Audio DIGITAL-TO-ANALOG CONVERTER

Transcription:

4-Channel Analog Input

22 Module Specifications The following table provides the specifications for the Analog Input Module. Review these specifications to make sure the module meets your application requirements. Number of Channels 4 Input Ranges 5V, 4 2 ma Resolution 8 bit ( in 256) Channel Isolation Non-isolated (one common) Input Type Differential or Single ended Input Impedance M minimum, voltage 25 current Absolute Maximum Ratings V maximum, voltage 3 ma maximum, current Linearity.8% maximum Accuracy vs. Temperature 7 ppm / C maximum Maximim Inaccuracy % maximum at 25 C Conversion Method Conversion Time Power Budget Requirement Sequential comparison 2 ms maximum 55 ma @ 9V External Power Supply 24 VDC, %, 65 ma, class 2 Operating Temperature 32 to 4 F ( to 6 C) Storage Temperature 4 to 58 F (2 to 7 C) Relative Humidity Environmental air 5 to 95% (non-condensing) No corrosive gases permitted Vibration MIL STD 8C 54.2 Shock MIL STD 8C 56.2 Noise Immunity Noise Rejection Ratio NEMA ICS334 Normal mode: 6 db/25hz Common mode: 6dB/6Hz (5 to V) Analog Input Configuration Requirements The Analog Input appears as a 6-point module. The module can be installed in any slot configured for 6 points. See the DL35 User Manual for details on using 6 point modules in DL35 systems. The limitation on the number of analog modules are: For local and expansion systems, the available power budget and 6-point module usage are the limiting factors.

23 Setting the Module Jumpers There are four jumpers located on the module that select between 5V and 42 ma signals. The module is shipped from the factory for use with 5V signals. If you want to use 4 2 ma signals, you have to install a jumper. No jumper is required for 5V operation. Each channel range may be selected independently of the others. Range Jumper 5V Removed 4 2 ma Installed Connecting the Field Wiring Wiring Guidelines User Power Supply Requirements Your company may have guidelines for wiring and cable installation. If so, you should check those before you begin the installation. Here are some general things to consider. Use the shortest wiring route whenever possible. Use shielded wiring and ground the shield at the signal source. Do not ground the shield at both the module and the source. Don t run the signal wiring next to large motors, high current switches, or transformers. This may cause noise problems. Route the wiring through an approved cable housing to minimize the risk of accidental damage. Check local and national codes to choose the correct method for your application. The requires a separate power supply. The DL35 bases have built-in 24 VDC power supplies that provide up to ma of current. If you only have one analog module, you can use this power source instead of a separate supply. If you have more than two analog modules, or you would rather use a separate supply, choose one that meets the following requirements: 24 VDC %, Class 2, 65mA current (or greater, depending on the number of modules being used.)

24 Custom Input Ranges Occasionally you may have the need to connect a transmitter with an unusual signal range. By changing the wiring slightly and adding an external resistor to convert the current to voltage, you can easily adapt this module to meet the specifications for a transmitter that does not adhere to one of the standard input ranges. The following diagram shows how this works. R = V max I max NOTE: Your choice of resistor can affect the accuracy of the module. A resistor that has.% tolerance and a 5ppm / C temperature coefficient is recommended.

25 Current Loop Transmitter Impedance Standard 4 to 2 ma transmitters and transducers can operate from a wide variety of power supplies. Not all transmitters are alike and the manufacturers often specify a minimum loop or load resistance that must be used with the transmitter. The provides 25 ohm resistance for each channel. If your transmitter requires a load resistance below 25 ohms, then you do not have to make any adjustments. However, if your transmitter requires a load resistance higher than 25 ohms, then you need to add a resistor in series with the module. Consider the following example for a transmitter being operated from a 36 VDC supply with a recommended load resistance of 75 ohms. Since the module has a 25 ohm resistor, you need to add an additional resistor. R = Tr Mr R = 75 25 R 5 DC Supply V 36V R Resistor to add Tr Transmitter Requirement Mr Module resistance (internal 25 ohms) R Module Channel Two-wire Transmitter

26 Removable Connector The module has a removable connector to make wiring easier. Simply squeeze the tabs on the top and bottom and gently pull the connector from the module. Wiring Diagram Note : Terminate all shields of the cable at their respective signal source. Note 2: Unused channels should be shorted to V or have the Jumper installed for current input for best noise immunity. Internal Module Wiring Note 3: When a differential input is not used V should be connected to the of that channel. OV OV 24VDC 2 V V 3 4 V V Internally Connected CH CH2 CH3 CH4 24VDC V V V 25 25 25 25 Internal Circuitry AD Convertor Analog Switch 2 V V ANALOG INPUT CH 2 3 4 CH DSPY SEL 3 4 V 24 V 2 3 4 6 2 32 4 64 8 28

27 Module Operation Channel Scanning Sequence Before you begin writing the control program, it is important to take a few minutes to understand how the module processes and represents the analog signals. The module supplies channel of data per each CPU scan. Since there are four channels, it can take up to four scans to get data for all channels. Once all channels have been scanned, the process starts over with channel. You do not have to select all of the channels. Unused channels are not processed, so if you select only two channels, then each channel will be updated every other scan. Scan I/O Update Channel Channel 2 Execute Application Program Read the data Channel 3 Channel 4 Store data Channel Even though the channel updates to the CPU are synchronous with the CPU scan, the module asynchronously monitors the analog transmitter signal and converts the signal to a 8-bit binary representation. This enables the module to continuously provide accurate measurements without slowing down the discrete control logic in the RLL program.

28 Understanding the I/O Assignments You may recall the module appears to the CPU as a 6-point module. Some of the points are inputs to the CPU and some are outputs to the module. These 6 points provide: an indication of which channel is active. the digital representation of the analog signal. Since all I/O points are automatically mapped into Register (R) memory, it is very easy to determine the location of the data word that will be assigned to the module. 5 57 4 47 3 37 2 27 2 27 7 7 7 7 R 2, R2 R, R MSB R LSB MSB R LSB All Channel Scan Output 7 Within these two register locations, the individual bits represent specific information about the analog signal. The most significant point (MSP) assigned to the module acts as an output to the module and controls the channel scanning sequence. This allows flexibility in your control program. If this output is on, all channels will be scanned sequentially. If the output is off, you can use other points to select a single channel for scanning. Scan Out 7 Channel Input N Off None N On N2 On 2 N3 On 3 N4 On 4 N5 On N6 Off None N7 Off None MSB 7 6 7 5 R 4 3 2 LSB

29 Single Channel Scan Outputs Active Channel Selection Inputs The upper register also contains two additional outputs that can be used to choose a single channel for scanning. These outputs are ignored if the channel scan output is turned on. (Note, our example shows outputs 4 and 5. Your output point will depend on where you have installed the module.) Out 4 Out 5 Channel Off Off On Off 2 Off On 3 On On 4 The first four points of the upper register are used as inputs to tell the CPU which channel is being processed. (Remember, the previous bits only tell the module which channels to scan.) In our example, when input is on the module is telling the CPU it is processing channel. Here s how the inputs are assigned. Input Active Channel 2 2 3 3 4 MSB 7 6 5 R 4 3 2 LSB MSB 7 6 5 R 4 3 2 LSB

2 Analog Data Bits The first register contains 8 bits which represent the analog data in binary format. Bit Value Bit Value 4 6 2 5 32 2 4 6 64 3 8 7 28 MSB 7 R LSB Since the module has 8-bit resolution, the analog signal is converted into 256 pieces ranging from 255 (2 8 ). For example, with a to 5V scale, a V signal would be, and a 5V signal would be 255. This is equivalent to a a binary value of to, or to FF hexadecimal. The following diagram shows how this relates to each signal range. V 5V 4 2mA Each piece can also be expressed in terms of the signal level by using the equation shown. The following table shows the smallest signal levels that could possibly result in a change in the data value for each signal range. Resolution = (HL)/255 H = high limit of the signal range L = low limit of the signal range Range Highest Signal Lowest Signal Smallest Change to 5V 5V V 5.6 mv 4 to 2mA 2mA 4mA 62.7 µa Now that you understand how the module and CPU work together to gather and store the information, you re ready to write the control program.

2 Writing the Control Program (DL33 / DL34) Identifying the Data Locations Since all channels are multiplexed into a single data word, the control program must be setup to determine which channel is being read. Since the module provides input points to the CPU, it is very easy to use the channel status bits to determine which channel is being monitored. 5 57 4 47 3 37 R 2, R2 2 27 2 27 7 7 7 7 R, R MSB R LSB MSB R LSB 7 7 Single Channel on Every Scan The following example shows a program that is designed to read a single channel of analog data into a Register location on every scan. Once the data is in a Register, you can perform math on the data, compare the data against preset values, etc. This example is designed to read channel. If you choose another channel, you would have to add a rung (or rungs) that use the channel select bits to select the channel for scanning. You would also have to change the rung that stores the data. Read the data 374 DSTR R F5 This rung loads the data into the accumulator on every scan. (You can use any permissive contact.) BCD F86 The DL35 CPUs perform math operations in BCD. This instruction converts the binary data to BCD. (You can omit this step if your application does not require the conversion.) Store channel R4 F6 The channel selection inputs are used to let the CPU know which channel has been loaded into the accumulator. Channel input has been used in the example, but you could easily use a different input for a different channel. By using these inputs to control a instruction, you can easily move the data to a storage register. The BCD value will be stored in R4 and R4. (Two bytes are required for four digit BCD numbers.)

22 Reading Multiple Channels over Alternating Scans The following example shows a program that is designed to read multiple channels of analog data into Register locations. This example reads one channel per scan. Once the data is in a Register, you can perform math on the data, compare the data against preset values, etc. Scan all channels 374 7 Turn on output 7, which instructs the module to scan all channels. Read the data 7 Store channel Store channel 2 DSTR R BCD R4 R42 F5 F86 F6 F6 This rung loads the data into the accumulator. This rung executes for all channels. The DL35 performs math operations in BCD. This instruction converts the binary data to BCD. (You can omit this step if your application does not require the data in BCD format.) The channel selection inputs are used to let the CPU know which channel has been loaded into the accumulator. By using these inputs to control a instruction, you can easily move the data to a storage register. Notice that the instruction stores the data in two bytes. (Two bytes are required for four digit BCD numbers.) Store channel 3 2 R44 F6 Store channel 4 3 R46 F6

23 Single or Multiple Channels The following example shows how you can use the same program to read either all channels or a single channel of analog data into Register locations. Once the data is in a Register, you can perform math on the data, compare the data against preset values, etc. Select all channels 7 Inputs and are used to select between single channel scanning and all channel scanning. These two points were arbitrarily chosen and could be any permissive contacts. When output 7 is on, all channels will be scanned. Single Channel 2 Single Channel 3 4 5 Input selects single channel scan. Inputs 2 and 3 select which channel by turning on outputs 4 and 5 as necessary. 4 5 Channel Off Off Ch. On Off Ch. 2 Off On Ch. 3 On On Ch. 4 Read the data DSTR R BCD F5 F86 This rung loads the data into the accumulator. This rung executes for all channel scan or single channel scan. The DL35 performs math operations in BCD. This instruction converts the binary data to BCD. (You can omit this step if your application does not require the data in BCD format.) Store channel Store channel 2 R4 R42 F6 F6 The channel selection inputs are used to let the CPU know which channel has been loaded into the accumulator. By using these inputs to control a instruction, you can easily move the data to a storage register. Notice that the instruction stores the data in two bytes. This is because two bytes are required to store the BCD number. Store channel 3 2 R44 F6 Store channel 4 3 R46 F6

24 The following instructions are required to scale the data. We ll continue to use the 42.9 PSI example. In this example we re using channel. Input is the active channel indicator for channel. Of course, if you were using a different channel, you would use the active channel indicator point that corresponds to the channel you were using. This example assumes you have already read the analog data and stored the BCD equivalent in R4 and R4 Scale the data DSTR R4 DIV K256 DSTR F5 F74 F5 This instruction brings the analog value (in BCD) into the accumulator. Accumulator Aux. Accumulator The analog value is divided by the resolution of the module, which is 256. ( / 256 =.4296) Accumulator This instruction moves the two-byte decimal portion into the accumulator for further operations. Accumulator 4 2 9 6 R577 Aux. Accumulator 4 2 9 6 R577 Aux. Accumulator 4 2 9 6 R577 MUL K DSTR F73 F5 The accumulator is then multiplied by the scaling factor, which is. ( x 4296 = 4296). Notice that the most significant digits are now stored in the auxilliary accumulator. (This is different from the way the Divide instruction operates.) Accumulator 9 6 Aux. Accumulator 4 2 R577 R45 F6 This instruction moves the two-byte auxilliary accumulator for further operations. Accumulator 4 2 Aux. Accumulator 4 2 R577 This instruction stores the accumulator to R45 and R45. R45 and R45 now contain the PSI, which is 42 PSI. Accumulator 4 2 Store in R45 & R45 4 2 R45 R45

25 You probably noticed that the previous example yielded 42 PSI when the real value should have been 42.9 PSI. By changing the scaling value slightly, we can imply an extra decimal of precision. Notice in the following example we ve added another digit to the scale. Instead of a scale of, we re using, which implies. for the PSI range. This example assumes you have already read the analog data and stored the BCD equivalent in R4 and R4 Scale the data DSTR R4 DIV K256 DSTR F5 F74 F5 This instruction brings the analog value (in BCD) into the accumulator. Accumulator Aux. Accumulator The analog value is divided by the resolution of the module, which is 256. ( / 256 =.4296) Accumulator This instruction moves the two-byte decimal portion into the accumulator for further operations. Accumulator 4 2 9 6 R577 Aux. Accumulator 4 2 9 6 R577 Aux. Accumulator 4 2 9 6 R577 MUL K DSTR F73 F5 The accumulator is multiplied by the scaling factor, which is now. ( x 4296 = 4296). The most significant digits are now stored in the auxilliary accumulator. (This is different from the way the Divide instruction operates.) Accumulator 6 Aux. Accumulator 4 2 9 R577 R45 F6 This instruction moves the two-byte auxilliary accumulator for further operations. Accumulator 4 2 9 Aux. Accumulator 4 2 9 R577 This instruction stores the accumulator to R45. R45 now contains the PSI, which implies 42.9. Accumulator 4 2 9 Store in R45 & R45 4 2 9 R45 R45

26 This example program shows how you can use the instructions to load the equation constants into data registers. The example is written for channel, but you can easily use a similar approach to use different scales for all channels if required. You may just use the appropriate constants in the instructions dedicated for each channel, but this method allows easier modifications. For example, you could easily use an operator interface or a programming device to change the constants if they are stored in Registers. Load the constants 374 DSTR K256 R43 DSTR K R432 F5 F6 F5 F6 On the first scan, these first two instructions load the analog resolution (constant of 256) into R43 and R43. These two instructions load the high limit of the Engineering unit scale (constant of ) into R432 and R433. Note, if you have different scales for each channel, you ll also have to enter the Engineering unit high limit for those as well. Read the data 374 DSTR F5 This rung loads the data into the accumulator on R every scan. (You could use any permissive contact.) BCD F86 The DL35 CPUs perform math operations in BCD. Since we will perform math on the data, the data must be converted from binary data to BCD. Store channel DIV R43 F74 The analog value is divided by the resolution of the module, stored in R43. DSTR F5 This instruction moves the decimal portion from the auxilliary accumulator into the regular accumulator for further operations. MUL R432 F73 The accumulator is multiplied by the scaling factor, stored in R432. DSTR F5 This instruction moves most significant digits (now stored in the auxilliary accumulator) into the regular accumulator for further operations. R4 F6 The scaled value is stored in R4 and R4 for further use.

27 Writing the Control Program (DL35) Multiplexing: DL35 with a Conventional DL35 Base The example below shows how to read multiple channels on an Analog module in the 7/7 address slot. This module must be placed in a 6 bit slot in order to work. Load the data _On SP LDF BCD X K8 X7 ( ) This rung loads analog data and converts it to BCD. When X7 is On, all channels will be scanned. Store Channel X V3 This writes channel analog data to V3 when bit X is on. Store Channel 2 X V3 This writes channel 2 analog data to V3 when bit X is on. Store Channel 3 X2 V32 This writes channel 3 analog data to V32 when bit X2 is on. Store Channel 4 X3 V33 This writes channel 4 analog data to V33 when bit X3 is on.

28 Multiplexing: DL35 with a D3xx Base The example below shows how to read multiple channels on an Analog module in the X address of the base. If any expansion bases are used in the system, they must all be D3xx to be able to use this example. Otherwise, the conventional base addressing must be used. Load the data _On SP LDF X K8 This rung loads analog data and converts it to BCD. BCD X7 ( ) When X7 is On, all channels will be scanned. Store Channel X V3 This writes channel analog data to V3 when bit X is on. Store Channel 2 X Store Channel 3 X2 Store Channel 4 X3 V3 V32 V33 This writes channel 2 analog data to V3 when bit X is on. This writes channel 3 analog data to V32 when bit X2 is on. This writes channel 4 analog data to V33 when bit X3 is on.

29 Scaling the Input Data Most applications usually require measurements in engineering units, which provide more meaningful data. This is accomplished by using the conversion formula shown. Units = (A/255)*S Units = value in Engineering Units A = Analog value ( 255) S = Engineering unit range The following example shows how you would use the analog data to represent pressure (PSI) from to. This example assumes the analog value is, which is slightly less than half scale. This should yield approximately 43 PSI. Units = (A/255)*S Units = (/255)* Units = 43 Here is how you would write the program to perform the engineering unit conversion. This example assumes you have the analog data in BCD format data loaded into V3. NOTE: This example uses SP, which is always on. You could also use an X, C, etc. permissive contact. SP LD V3 MUL K When SP is on, load channel data to the accumulator. Multiply the accumulator by (to start the conversion). DIV K255 V3 Divide the accumulator by 255. Store the result in V3.

22 Analog and Digital Value Conversions Sometimes it is helpful to be able to quickly convert between the signal levels and the digital values. This is especially helpful during machine startup or troubleshooting. The following table provides formulas to make this conversion easier. Range If you know the digital value... If you know the analog signal level... to 5V A = (4D/255) D = (255/4)(A) 4 to 2mA A = (6D/255) 4 For example, if you are using the to 5V range and you have measured the signal at 3V, you would use the following formula to determine the digital value that should be stored in the register location that contains the data. D = (255/6)(A4) D = (255/4)(A) D = (255/4)(3V) D = (63.75) (2) D = 27.5 (or 28)