F3 16AD 16-Channel Analog Input

Similar documents
F3 08AD 1 8-Channel Analog Input

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

D3 04AD 4-Channel 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 16DA 2 16-Channel Analog Voltage Output

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

F4 08DA 2 8-Channel Analog Voltage Output

F4-04ADS 4-Channel Isolated Analog Input

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

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

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

F4-08RTD 8-Channel RTD Input

Chapter. F0-04AD-1, 4-Channel Analog Current Input. 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-08AD-2 8-Channel Analog Voltage Input. 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-04THM 4-Channel. In This Chapter...

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

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

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

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

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

VersaPoint I/O Module

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

FC Series Signal Conditioners

VersaPoint I/O Module

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

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

Continental Hydraulics Installation Manual CEM-RA-A

LT3000 ULTRASONIC LEVEL TRANSMITTER

Peer Master Example. In This Chapter...

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

DS1806 Digital Sextet Potentiometer

Drum Instruction Programming

INSTALLATION & OPERATION MANUAL

Tel: Fax:

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

Chapter. Getting Started. In This Chapter...

WiNRADiO WR-G35DDCi Multichannel Coherent Application Guide

Digital Potentiometers Selection Guides Don t Tell the Whole Story

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

Bulletin 1402 Line Synchronization Module (LSM)

HE693THM884/888 High Resolution Thermocouple Module Product Specifications and Installation

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

JPQ2 PULSE ACCUMULATOR

Analog Inputs and Outputs

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

Current Loop Interface Module M 2025D

Continental Hydraulics Installation Manual CEM-PA-A

Model PRESET 8 Installation and Operations Manual

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

Lab Exercise 6: Digital/Analog conversion

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

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

Ameritron RCS-10 INTRODUCTION

DIN SERIES DIGITAL PANEL METERS ELECTRO- NUMERICS, INC.

Experiment #3: Micro-controlled Movement

PEAKTRONICS AMC-103 ADDITIONAL FEATURES. AC Motor Controller, 2A AMC-103 AMC-103A AMC-103B

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

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

AMERITRON RCS-12 AUTOMATIC ANTENNA SWITCH

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

2F. No.25, Industry E. 9 th Rd., Science-Based Industrial Park, Hsinchu, Taiwan Application Note of OGM220, AN001 V1.8

Installation, Operation and Maintenance Manual

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?

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

PL420 PROGRAMMABLE LOGIC CONTROLLER

Combinational Logic Circuits. Combinational Logic

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

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

2 Building Blocks. There is often the need to compare two binary values.

Analog-to-Digital-Converter User Manual

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

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

Specifying A D and D A Converters

MODEL AT-10 ANALOG TRANSMITTER

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

Analog Signal Conditioning Accessories

Data Acquisition: A/D & D/A Conversion

D0 DEVNETS Think & Do/Entivity Setup

FC-33, DC SELECTABLE SIGNAL CONDITIONER

Inductive Loop Detector

EE 109 Midterm Review

GE Fanuc IC695ALG600. Rx3i PacSystem

TECHNICAL DOCUMENT EPC SERVO AMPLIFIER MODULE Part Number L xx EPC. 100 Series (1xx) User Manual

Resistive Circuits. Lab 2: Resistive Circuits ELECTRICAL ENGINEERING 42/43/100 INTRODUCTION TO MICROELECTRONIC CIRCUITS

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

Materials (other materials see WIKA diaphragm seal program) Model S-10

GE Fanuc IC695ALG312. Rx3i PacSystem

DS1621. Digital Thermometer and Thermostat FEATURES PIN ASSIGNMENT


APPLICATION BULLETIN PRINCIPLES OF DATA ACQUISITION AND CONVERSION. Reconstructed Wave Form

High Resolution Thermocouple Module Product Specifications and Installation Data

An American Control Electronics Brand PCM4 SERIES USER MANUAL PCM4.

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

DS1867 Dual Digital Potentiometer with EEPROM

Dallastat TM Electronic Digital Rheostat

Transcription:

F3 6AD 6-Channel Analog Input

5 2 F3 6AD 6-Channel Analog Input Module Specifications The following table provides the specifications for the F3 6AD Analog Input Module from FACTS Engineering. Review these specifications to make sure the module meets your application requirements. Number of Channels 6, single ended (one common) Input Ranges 5V, V, 5V, V, 2 ma, 4 2 ma 2 Resolution 2 bit ( in 496) Input Impedance 2M, voltage input 5 %, current input Absolute Maximum Ratings Conversion Time Converter Type Linearity Error Maximum Inaccuracy at 77 F (25 C) Accuracy vs. Temperature Recommended Fuse Power Budget Requirement External Power Supply 25V, voltage input 3 ma, current input 35s per channel channel per CPU scan Successive Approximation, AD574 count maximum.25% of full scale, voltage input.25% of full scale, current input 57 ppm / C maximum full scale.32 A, Series 27 fast-acting, current inputs 33 ma @ 9 VDC, 47 ma @ 24 VDC None required 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 NEMA ICS3 34 requires gain adjustment with potentiometer. 2 resolution is 3275 counts (instead of 496). Allows easier broken transmitter detection F3 6AD 6-Channel Analog Input Analog Input Configuration Requirements The F3 6AD 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.

F3 6AD 6-Channel Analog Input 5 3 Setting the Module Jumpers Jumper Locations The module is set at the factory for a 2 ma signal on all sixteen channels. If this is acceptable you do not have to change any of the jumpers. The following diagram shows the jumper locations. ADJ Span Gain X Gain X X X Current Channels Selecting the Number of Channels If you examine the rear of the module, you ll notice several jumpers. The jumpers labeled, 2, 4 and 8 are used to select the number of channels that will be used. Without any jumpers the module processes one channel. By installing the jumpers you can add channels. The module is set from the factory for sixteen channel operation. Any unused channels are not processed so if you only select channels 8, then the last eight channels will not be active. The following table shows which jumpers to install. Number of Channels Jumpers installed as shown selects 6-channel operation Jumper Jumper Channel(s) 8 4 2 Channel(s) 8 4 2 No No No No 2 3 4 5 6 7 8 9 Yes No No No 2 No No No Yes 2 3 4 5 6 7 8 9 Yes No No Yes 2 3 No No Yes No 2 3 4 5 6 7 8 9 Yes No Yes No 2 3 4 No No Yes Yes 2 3 4 5 6 7 8 9 2 Yes No Yes Yes 2 3 4 5 No Yes No No 2 3 4 5 6 7 8 9 2 3 Yes Yes No No 2 3 4 5 6 No Yes No Yes 2 3 4 5 6 7 8 9 2 3 4 Yes Yes No Yes 2 3 4 5 6 7 No Yes Yes No 2 3 4 5 6 7 8 9 2 3 4 5 Yes Yes Yes No 2 3 4 5 6 7 8 No Yes Yes Yes 2 3 4 5 6 7 8 9 2 3456 Yes Yes Yes Yes F3 6AD 6-Channel Analog Input

5 4 F3 6AD 6-Channel Analog Input Selecting Input Signal Ranges As you examined the jumper settings, you may have noticed there are current jumpers for each individual channel. These jumpers allow you to select the type of signal (voltage or current). The span and polarity jumpers are used to select the signal range. The polarity and span selection affect all the channels. For example, if you select unipolar operation and a V span, you can use both V and 2 ma signals at the same time. Channels that will receive 2 ma signals should have the current jumper installed. The following table shows the jumper selections for the various ranges. (Only channel is used in the example, but all channels must be set.) Bipolar Signal Range 5 VDC to 5 VDC Jumper Settings VDC to VDC Unipolar Signal Range to 2 ma (these settings are also used for the 4 2mA range) Jumper Settings VDC to VDC VDC to VDC F3 6AD 6-Channel Analog Input VDC to. VDC VDC to. VDC

F3 6AD 6-Channel Analog Input 5 5 Input Signal Range VDC to 5 VDC (requires gain adjustment see instructions below) Jumper Settings VDC to 2 VDC (requires gain adjustment see instructions below) Variable Gain Adjustment If you look at the terminal block closely, you ll notice a small hole conceals an adjustment potentiometer. This small potentiometer is used to adjust the gain for certain situations. For example, if you have 5V transmitters you have to use the V scale on the module. Since the module converts the signal to a digital value between and 495, a 5V signal would only yield a value of 248. Fortunately, the variable gain feature provides a simple solution. Just complete the following steps. Potentiometer Adjustment Hole. Install a jumper on the gain adjustment pins. (This jumper location is labeled ADJ. This jumper will remain installed after the gain adjustment.) 2. Apply 5V to one of the channels. 3. Use a handheld programmer or DirectSOFT to monitor the input register that contains the analog data. (If you re not familiar with this procedure, wait until you read the section on Writing the Control Program. This will show you how to get data into a register. You can come back to this procedure later.) 4. Adjust the potentiometer until the register value reads 494 or 495. The potentiometer is turned clockwise to increase the gain. Now the module has been adjusted so a 5V signal provides a digital value of 495 instead of 248. F3 6AD 6-Channel Analog Input

5 6 F3 6AD 6-Channel Analog Input 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 F3 6AD receives all power from the base. A separate power supply is not required. F3 6AD 6-Channel Analog Input

F3 6AD 6-Channel Analog Input 5 7 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. 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. F3 6AD 6-Channel Analog Input

5 8 F3 6AD 6-Channel Analog Input Current Loop 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 at the various voltages. The F3 6AD provides 5 ohm resistance for each channel. If your transmitter requires a load resistance below 5 ohms, then you do not have to make any adjustments. However, if your transmitter requires a load resistance higher than 5 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 5 ohm resistor, you need to add an additional resistor. R Tr Mr R 75 5 R 25 R Resistor to add Tr Requirement Mr Module resistance (internal 5 ohms) DC Supply V 36V R Module Channel Two-wire F3 6AD 6-Channel Analog Input

F3 6AD 6-Channel Analog Input 5 9 Removable Connector The F3 6AD module has a removable connector to make wiring easier. Simply squeeze the top and bottom tabs and gently pull the connector from the module. Wiring Diagram Note : Terminate all shields at their respective signal source. Note 2: Jumpers for 4, 7, 2 and 6 are installed for current input. Volatage Volatage Volatage ANALOG INPUT F3 6AD Current Volatage Volatage Current Volatage Volatage Volatage Volatage Current Volatage Volatage Volatage 3 5 7 9 3 5 C O M C O M 2 4 6 8 2 4 6 Current All resistors are 5 F3 6AD 6-Channel Analog Input

5 F3 6AD 6-Channel Analog Input 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 F3 6AD module supplies channel of data per each CPU scan. Since there are sixteen channels, it can take up to sixteen 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 eight channels, then the channels will be updated within eight scans. Scan Channel Channel 2 Channel 6 I/O Update Execute Application Program Read the data Store data Channel F3 6AD 6-Channel Analog Input 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 2-bit binary representation. This enables the module to continuously provide accurate measurements without slowing down the discrete control logic in the RLL program.

F3 6AD 6-Channel Analog Input 5 Understanding the I/O Assignments You may recall the F3 6AD module appears to the CPU as a 6-point 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. F3 6AD 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 7 7 Within these two register locations, the individual bits represent specific information about the analog signal. F3 6AD 6-Channel Analog Input

5 2 F3 6AD 6-Channel Analog Input Active Channel Indicator Inputs The last four inputs of the upper Register indicate the active channel. The indicators automatically increment with each CPU scan. Channel Active Scan Inputs Channel N N 2 N2 3 N3 4 N4 5 N5 6 N6 7 N7 8 N8 9 N9 N N 2 N2 3 N3 4 N4 5 N5 6 MSB 7 6 5 R 4 3 2 LSB F3 6AD 6-Channel Analog Input

F3 6AD 6-Channel Analog Input 5 3 Analog Data Bits The remaining twelve bits represent the analog data in binary format. Bit Value Bit Value (LSB) 6 64 2 7 28 2 4 8 256 3 8 9 52 4 6 24 5 32 248 MSB 7 6 5 R 4 3 2 7 6 R 5 4 3 2 LSB Since the module has 2-bit resolution, the analog signal is converted into 496 pieces ranging from 495 (2 2 ). For example, with a to V scale, a V signal would be, and a V signal would be 495. This is equivalent to a a binary value of to, or to FFF hexadecimal. The following diagram shows how this relates to each signal range. V V 5V 5V V V 2mA 4 2mA NOTE: When you use 4 2mA signals, you have to use the 2mA scale. You do not have resolution of 496 if the 4 2mA signal is present. In this case, the range is 89 to 495. This is because a still represents ma, not 4mA. 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 will possibly result in a change in the data value for each signal range. Resolution H L 495 H high limit of the signal range L low limit of the signal range Range Highest Signal Lowest Signal Smallest Change to V V V 4.88 mv 5 to 5V 5 V 5V 2.44 mv to 5V 5V V.22 mv to V V V 2.44 mv to 2V 2V V 2.9 mv to 2mA (4 to 2mA also) 2mA ma 4.88 A to V V V.244 mv to.v. V V 24.4 uv to.v. V V 2.44 uv F3 6AD 6-Channel Analog Input

5 4 F3 6AD 6-Channel Analog Input 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 active channel status bits to determine which channel is being monitored. F3 6AD 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 7 7 F3 6AD 6-Channel Analog Input

F3 6AD 6-Channel Analog Input 5 5 Example Program The following example shows a program designed to read any of the available channels 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. Since the DL35 CPUs use 8-bit word instructions, you have to move the data in pieces. It s pretty simple if you follow the example. Identify the channel 374 DSTR2 R F52 This rung loads the channel ID bits into the accumulator from Register on every scan. BCD F86 Convert the channel ID status to BCD. (We ll use relational contacts later to make the chanel selection much easier.) Read the data 374 D R6 DSTR3 R F6 F53 Store the channel ID in R6. (Note, you don t absolutely have to do it this way. If you use R6, then you can t use Timer/Counter 6. You could just use the channel indicators. See the Store Channel example that follows.) This rung loads the four least significant data bits into the accumulator from Register on every scan. D R5 F6 Temporarily store the bits to Register 5. DSTR R F5 This rung loads the eight least significant data bits into the accumulator from Register. D R5 F6 Temporarily store the bits to Register 5. Since the most significant bits were loaded into 5, now R5 and R5 contain all twelve bits in order. DSTR R5 F5 Now that all the bits are stored, load all twelve bits into the accumulator. Store channel data BCD F86 Math operations are performed 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 4 5 6 7 Store channel 2 CT6 K Store channel 5 CT6 K4 Store channel 6 CT6 K5 D R4 D R42 D R434 D R436 F6 F6 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 D instruction, you can easily move the data to a storage register. Notice the D instruction stores the data in two bytes. (Two bytes are required for four digit BCD numbers.) This rung shows how you would use the channel indicator inputs as contacts to control the channel selection. This rung shows an easier way. Earlier we loaded the channel ID bits (in BCD format) into R6. Now we can use one relational contact to examine this value. However, this method uses the register associated with Timer/Counter 6. If you use this method, make sure you don t use the Timer/Counter associated with the register elsewhere in the program. F3 6AD 6-Channel Analog Input

5 6 F3 6AD 6-Channel Analog Input 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. The following example shows how you would use the analog data to represent pressure (PSI) from to. This example assumes the analog value is 76. This should yield approximately 42.9 PSI. Units A 496 S Units value in Engineering Units A Analog value ( 495) S high limit of the Engineering unit range Units A 496 S Units 76 496 Units 42.9 F3 6AD 6-Channel Analog Input

F3 6AD 6-Channel Analog Input 5 7 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. The active channel indicator inputs are all off when channel data is being read. Of course, if you were using a different channel, you would use the active channel indicator point combination 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 4 5 6 7 DSTR R4 F5 This instruction brings the analog value (in BCD) into the accumulator. Accumulator Aux. Accumulator 7 6 R577 DIV K496 F74 The analog value is divided by the resolution of the module, which is 496. (76 / 496.4296) Accumulator Aux. Accumulator 4 2 9 6 R577 DSTR F5 This instruction moves the two-byte decimal portion into the accumulator for further operations. Accumulator 4 2 9 6 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 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 D 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. R45 now contains the PSI, which is 42 PSI. Accumulator 4 2 Store in R45 & R45 4 2 R45 R45 F3 6AD 6-Channel Analog Input

5 8 F3 6AD 6-Channel Analog Input You probably noticed 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 4 5 6 7 DSTR R4 F5 This instruction brings the analog value (in BCD) into the accumulator. Accumulator Aux. Accumulator 7 6 R577 DIV K496 F74 The analog value is divided by the resolution of the module, which is 496. (76 / 496.4296) Accumulator Aux. Accumulator 4 2 9 6 R577 DSTR F5 This instruction moves the two-byte decimal portion into the accumulator for further operations. Accumulator 4 2 9 6 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 D R45 F6 This instruction moves the two-byte auxilliary accumulator for further operations. Accumulator 4 2 9 Aux. Accumulator 4 2 9 R577 F3 6AD 6-Channel Analog Input This instruction stores the accumulator to R45 and R45. R45 and R45 now contain the PSI, which implies 42.9. Accumulator Store in R45 & R45 4 2 9 4 2 9 R45 R45

F3 6AD 6-Channel Analog Input 5 9 This example program shows how you can use the instructions to load these 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 K496 F5 On the first scan, these first two instructions load the analog resolution (constant of 496) into R46 and R46. D R46 F6 DSTR K D R462 F5 F6 These two instructions load the high limit of the Engineering unit scale (constant of ) into R462 and R463. 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 DSTR3 R F53 This rung loads the four most significant data bits into the accumulator from Register on every scan. D R5 F6 Temporarily store the bits to Register 5. Store channel 4 5 6 7 DIV R46 F74 The analog value is divided by the resolution of the module, which is stored in R46. DSTR F5 This instruction moves the decimal portion from the auxilliary accumulator into the regular accumulator for further operations. MUL R462 F73 The accumulator is multiplied by the scaling factor, which is stored in R462. DSTR F5 This instruction moves most significant digits (now stored in the auxilliary accumulator) into the regular accumulator for further operations. D R4 F6 The scaled value is stored in R4 and R4 for further use. F3 6AD 6-Channel Analog Input

5 2 F3 6AD 6-Channel Analog Input Broken Detection If you use 4 2mA signals you can easily check for broken transmitter conditions. Since you have to use the 2mA range and the lowest signal for the 4 2mA transmitter is 4mA, the lowest digital value for the signal is not, but instead is 89. If the transmitter is working properly the smallest value you should ever see is 89. If you see a value of less than about 75 (allowing for tolerance), then you know the transmitter is broken. Read the channel ID 374 DSTR2 R F52 This rung loads the channel ID bits into the accumulator from Register on every scan. BCD D R6 F86 Convert the channel ID status to BCD. We ll use relational contacts later to make the chanel selection much easier.) F6 Store the channel ID in R6. Read the data 374 DSTR3 R F53 This rung loads the four most significant data bits into the accumulator from Register on every scan. D R5 F6 Temporarily store the bits to Register 5. DSTR R F5 This rung loads the eight least significant data bits into the accumulator from Register. D R5 F6 Temporarily store the bits to Register 5. Since the most significant bits were loaded into 5, now R5 and R5 contain all twelve bits in order. DSTR R5 F5 Now that all the bits are stored, load all twelve bits into the accumulator. F3 6AD 6-Channel Analog Input Store channel 4 5 6 7 BCD D R4 CMP K F86 F6 F7 Broken transmitter indicator on channel 773 4 5 6 7 4 774 Math operations are performed in BCD. This instruction converts the binary data to BCD. (You can omit this step if your application does not require the conversion.) The D instruction copies the accumulator data to R4 and R4. Since the data is still in the accumulator, we can compare it against a constant. Since the minimum value for a 4mA signal is 89 (minus the module tolerance), we can choose a value for the compare. We picked, but you could choose something else from to about 75. Flags 773 and 774 are used with the Compare instruction. In this example if the analog value is less than or equal to, then output 4 is turned on. You may want to latch 4 to catch intermittent broken transmitters.

F3 6AD 6-Channel Analog Input 5 2 Writing the Control Program (DL35) Reading Values: Pointer Method and Multiplexing There are two methods of reading values for the DL35: The pointer method (all system bases must be D3 xx bases to support the pointer method) Multiplexing You must use the multiplexing method with remote I/O modules (the pointer method will not work). You can use either method when using DL35, but for ease of programming it is strongly recommended that you use the pointer method. NOTE: Do not use the pointer method and the PID PV auto transfer from I/O module function together for the same module. If using PID loops, use the pointer method and ladder logic code to map the analog input data into the PID loop table. Pointer Method The DL35 has special V-memory locations assigned to each base slot that greatly simplifies the programming requirements. These V-memory locations allow you to: specify the data format specify the number of channels to scan specify the storage locations The example program shows how to setup these locations. Place this rung anywhere in the ladder program or in the Initial Stage if you are using RLL PLUS instructions. This is all that is required to read the data into V-memory locations. Once the data is in V-memory, you can perform math on the data, compare the data against preset values, and so forth. V2 is used in the example, but you can use any user V-memory location. In this example the module is installed in slot 2. You should use the V-memory locations for your module placement. SP 6 channels selected - or - K K 9 Kf 5 channels selected - or - K8f Loads a constant that specifies the number of channels to scan and the data format. For 5 channels, the upper byte, most significant nibble (MSN) selects the data format (i.e. BCD, 8Binary), the LSN selects the number of channels (i.e., 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f). To select 6 channels, the upper nibble (MSN) selects the data format and the number of channels (i.e. 6 channels BCD, 9 6 channels Binary). V7662 A O2 V7672 Special V-memory location assigned to slot 2 that contains the number of channels to scan. This loads an octal value for the first V-memory location that will be used to store the incoming data. For example, the O2 entered here would designate the following addresses. Ch - V2, Ch2 - V2, Ch3 - V22, Ch4 - V23, Ch5 V24, Ch6 V25, Ch7 V26, Ch8 V27, Ch9 V2, Ch V2, Ch V22, Ch2 V23 Ch3 V24, Ch4 V25, Ch5 V26, Ch6 V27 The octal address (O2) is stored here. V7672 is assigned to slot 2 and acts as a pointer, which means the CPU will use the octal value in this location to determine exactly where to store the incoming data. F3 6AD 6-Channel Analog Input

5 22 F3 6AD 6-Channel Analog Input The table shows the special V-memory locations used with the DL35. Slot (zero) is the module next to the CPU, slot is the module two places from the CPU, and so on. Remember, the CPU only examines the pointer values at these locations after a mode transition. The pointer method is supported on expansion bases up to a total of 8 slots away from the DL35 CPU. The pointer method is not supported in slot 8 of a slot base. Analog Input Module Slot-Dependent V-memory Locations Slot 2 3 4 5 6 7 No. of Channels V766 V766 V7662 V7663 V7664 V7665 V7666 V7667 Storage Pointer V767 V767 V7672 V7673 V7674 V7675 V7676 V7677 F3 6AD 6-Channel Analog Input

F3 6AD 6-Channel Analog Input 5 23 Multiplexing: DL35 with a Conventional DL35 Base The example below shows how to read multiple channels on an F3 8AD Analog module in the 2 27/2 27 address slot. This module must be placed in a 6 bit slot in order to work. Load the data _On SP F X2 K8 This rung loads the upper byte of analog data from the module. SHFL ORF ANDD BCD K8 X2 K8 Kfff SHFL K8 shifts the data to the left eight places to make room for the lower byte of data. The ORF X2 brings the lower byte of data from the module into the accumulator. At this time there is a full word of data from the analog module in the accumulator. The ANDD Kfff masks off the four most significant bits of data from the word. This leaves the actual analog value. The BCD command converts the data to BCD format. V22 Stores the data in V22. Channel Select Bit States X24 X25 X26 X27 V22 This sends channel one analog data to V3 when bits X24, X25, X26 and X27 are as shown. V3 Channel 2 Select Bit States X24 X25 X26 X27 V22 This sends channel two analog data to V3 when bits X24, X25, X26 and X27 are as shown. V3 Channel 3 Select Bit States X24 X25 X26 X27 V22 V32 This sends channel two analog data to V32 when bits X24, X25, X26 and X27 are as shown. F3 6AD 6-Channel Analog Input

5 24 F3 6AD 6-Channel Analog Input Multiplexing: DL35 with a D3 XX Base The example below shows how to read multiple channels on an F3 6AD Analog module in the X address slot of the D3 XX base. If any expansion bases are used in the system, they must all be D3 xx to be able to use this example. Otherwise, the conventional base addressing must be used. _On SP VX This rung loads the upper byte of analog data from the module. SHFR K2 SHFL K2 shifts the word to the right twelve places. _On SP V4 Puts the four channel select bits in the lower nibble (four bits) of word V4. This will increment once with each scan from to F. F X This rung loads the twelve bits of analog data to K2 the module and converts it to BCD. It is the to V4. BCD This converts the data to BCD. V4 The analog data (in BCD format) is then stored in the Holding Register, V4. Rungs 3 8 compare the count of the chennel select bits. When the corresponding bits are true, the channel data for that channel is stored in the proper V-memory location. For sixteen channels of analog data, the module will require sixteen scans in order to update all channels. V4 K V4 V2 Channel # Data V4 K V4 Channel #2 Data V2 F3 6AD 6-Channel Analog Input V4 K2 V4 V22 Channel #3 Data

F3 6AD 6-Channel Analog Input 5 25 V4 K3 V4 Channel #4 Data V23 V4 K4 V4 Channel #5 Data V24 V4 K5 V4 Channel #6 Data V25 V4 K6 V4 Channel #7 Data V26 V4 K7 V4 Channel #8 Data V27 V4 K8 V4 Channel #9 Data V4 K9 V2 V4 V2 Channel # Data F3 6AD 6-Channel Analog Input

5 26 F3 6AD 6-Channel Analog Input V4 Ka V4 Channel # Data V22 V4 Kb V4 Channel #2 Data V23 V4 Kc V4 Channel #3 Data V24 V4 Kd V4 Channel #4 Data V25 V4 Ke V4 Channel #5 Data V26 V4 Kf V4 Channel #6 Data F3 6AD 6-Channel Analog Input V27

F3 6AD 6-Channel Analog Input 5 27 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. You may have to make adjustments to the formula depending on the scale you choose for the engineering units. Units A H L 495 H high limit of the engineering unit range L low limit of the engineering unit range A Analog value ( 495) For example, if you wanted to measure pressure (PSI) from. to 99.9 then you would have to multiply the analog value by in order to imply a decimal place when you view the value with the programming software or a handheld programmer. Notice how the calculations differ when you use the multiplier. Here is how you would write the program to perform the engineering unit conversion. This example assumes you have BCD data loaded into the appropriate V-memory locations using instructions that apply for the model of CPU you are using. NOTE: This example uses SP, which is always on. You could also use an X, C, etc. permissive contact. SP V3 MUL K When SP is on, load channel data to the accumulator. Multiply the accumulator by (to start the conversion). DIV K495 V32 Divide the accumulator by 495. Store the result in V32. F3 6AD 6-Channel Analog Input

5 28 F3 6AD 6-Channel Analog Input 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... V to V 5V to 5V to 5V to V to 2V to 2mA (or 4 2mA) A 2D 495 A D 495 A 5D 495 A D 495 A 2D 495 A 2D 495 D 495 (A ) 2 5 D 495 (A 5) D 495 5 A D 495 A D 495 2 A D 495 2 A to V to.v to.v A D 495 A.D 495 A.D 495 D 495 A D 495. A D 495. A For example, if you are using the to V range and you have measured the signal at 6V, you would use the following formula to determine the digital value that should be stored in the register location that contains the data. D 495 (A ) 2 D 495 (6V ) 2 D (24.75) (6) D 3276 F3 6AD 6-Channel Analog Input