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

Similar documents
F4 08DA 2 8-Channel Analog Voltage Output

F4 16DA 2 16-Channel Analog Voltage Output

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

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

F3 16AD 16-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-04ADS 4-Channel Isolated Analog Input

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

F4-08RTD 8-Channel RTD Input

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

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

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

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

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

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

Chapter. F2-04AD-1, 4-Channel 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-04RTD. 4-Channel RTD Input. In This Chapter...

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

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

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

FC Series Signal Conditioners

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

ADVANCED PLC PROGRAMMING. Q. Explain the ONE SHOT (ONS) function with an application.

DC Voltage Hawk II H235 Series Advanced Digital Panel Meter

Chapter. Getting Started. In This Chapter...

VersaPoint I/O Module

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

FC-33, DC SELECTABLE SIGNAL CONDITIONER

VersaMax Mixed Discrete / High-Speed Counter Module

G201X STEP MOTOR DRIVE REV 5: SEPTEMBER 13, 2010

G210X STEP MOTOR DRIVE REV 5: March 25, 2011

VersaPoint I/O Module

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

CX105 Conductivity/Resistivity Transmitter

P1-04ADL-2 Analog Input

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

ROTRONIC HygroClip Digital Input / Output

GE Fanuc IC695ALG312. Rx3i PacSystem

Peer Master Example. In This Chapter...

Continental Hydraulics Installation Manual CEM-RA-A

VersaMax Mixed Discrete / High-Speed Counter Module

DUAL OUTPUT AC CURRENT/VOLTAGE TRANSDUCER

INVERTER INSTRUCTION MANUAL. 16 bit digital input function. Plug-in option FR-A7AX PRE-OPERATION INSTRUCTIONS INSTALLATION AND WIRING

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

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

UniStream Uni-I/O Modules

LX3V-8ITC User manual

TIP551. Optically Isolated 4 Channel 16 Bit D/A. Version 1.1. User Manual. Issue December 2009

PACSystems* RX3i and Series 90-30

Inductive Loop Detector

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

Tel: Fax:

Maximum Value for OEMs SM. NX70 High-speed Counters (NX70-HSC1, NX70-HSC2) User Manual

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

Metaphase ULC-2. Technologies ULC. Metaphase. Technologies Version 7.X August 2015 USER MANUAL. metaphase-tech.com. pg. 1

P1-04DAL-1 Analog Output

Designing High Power Parallel Arrays with PRMs

Analog Inputs and Outputs

GE Fanuc IC695ALG600. Rx3i PacSystem

PL420 PROGRAMMABLE LOGIC CONTROLLER

IXIAN TM class V 1.5. EC Transmitter This is an evolving document. EC Transmitter IXIAN TM. Features

IB ST (ZF) 24 PT 100 4/4

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

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

Maxim > Design Support > Technical Documents > Application Notes > Digital Potentiometers > APP 3408

Bulletin 1402 Line Synchronization Module (LSM)

MODEL: DA3. Plug-in Signal Conditioners M-UNIT

96M0374. Instruction Manual. Analog Sensor Controller. RD Series

U-GAGE Q45U Long-Range Ultrasonic Sensors

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

An American Control Electronics Brand PCM4 SERIES USER MANUAL PCM4.

LBI-31807D. Mobile Communications MASTR II REPEATER CONTROL PANEL 19B234871P1. Maintenance Manual. Printed in U.S.A.

VECTOR INVERTER -INSTRUCTION MANUAL- 16-BIT DIGITAL INPUT FR-V5AH

P1-04THM Analog Input

P a g e 1. Introduction

INPUT RESISTANCE OR CLAMP VOLTAGE. 2 Years 23 C ±5 Voltage mv 3 10 nv > 10 G

Digital Interface Option "OPC-E1-DIO"

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

24V dc Analog Block I/O Module

OVEN INDUSTRIES, INC. Model 5C7-362

Drum Instruction Programming

Signet Flow Transmitter

G320X MANUAL DC BRUSH SERVO MOTOR DRIVE

SIMATIC. ET 200S distributed I/O 2AI I 4WIRE HS analog electronic module (6ES7134-4GB62-0AB0) Preface. Properties 1. Parameters 2.

FR-A7AX FR-A7AX E kit

6.6 Analog input module SM 331; AI 8 x 13 Bit; (6ES7331-1KF02-0AB0)

TIP500. Optically Isolated 16 Channel 12 Bit ADC. Version 1.1. User Manual. Issue January 2010

DPFHP451 HIGH PERFORMANCE BILEVEL STEP MOTOR / MANUAL PRESET INDEXER DRIVER PACK

CQM1H-MAB42 Analog I/O Board Connector CN1: Analog inputs 1 to 4. Name Specifications Model number Slot 1 (left slot) High-speed Counter Board

DIGEM f 96 x 48 EK. Applications. Description

ET 438B Sequential Digital Control and Data Acquisition Laboratory 4 Analog Measurement and Digital Control Integration Using LabVIEW

Metaphase ULC-2. Technologies ULC. Metaphase. Technologies Version 6.2 June 12, 2013 USER MANUAL. metaphase-tech.com. pg. 1

Isolated, Linearized RTD Input 7B34 FEATURES APPLICATIONS PRODUCT OVERVIEW FUNCTIONAL BLOCK DIAGRAM

Industrial Electrician Level 3

PACSystems* RX3i. Isolated RTD Input Module, 8 Channels, IC695ALG508-CA. Module Features. GFK-2501C November 2012

Transcription:

F4-4DA- 4-Channel Analog Current

32 Analog Current Module Specifications The Analog Current Module provides several features and benefits. ANALOG PUT 4-Ch. Analog It is a direct replacement for the popular F44DA module in applications set for 42 ma output range. It provides four channels of 42 ma single ended current outputs. Analog outputs are optically isolated from PLC logic components. The module has a removable terminal block, so the module can be easily removed or changed without disconnecting the wiring. All four analog outputs may be set in one CPU scan (DL44 and DL45 CPUs only). 4mA2mA CH I CH2 I CH3 I CH4 I V CH +I CH2 +I CH3 +I CH4 +I 24 V 24 V @ 75 ma The following tables provide the specifications for the Analog Module. Review these specifications to ensure the module meets your application requirements. Specifications Number of Channels 4, single ended (one common) Range 42 ma Resolution 2 bit ( in 495) Type s sink 4-2 ma from external supply External Load Resistance minimum Maximum Loop Supply Peak Voltage Maximum Load / Power Supply Linearity Error (best fit) Gain Calibration Error Offset Calibration Error Maximum Inaccuracy Conversion Time 3 VDC 4 VDC (clamped, transient suppressed) 62/8V, 9/24V, 2/3V count (.25%) maximum 5 counts maximum 3 counts maximum.% @ 25C (77 F).3% @ to 6C (32 to4 F) s maximum, settling time 2. ms maximum, digital out to analog out

Analog Current 33 General Module Specifications Digital Points Required 6 point () outputs, 2 bits binary data and 4 active channel bits Power Budget Requirement 7 ma @ 5 VDC (from base) External Power Supply 2.626.4 VDC, 75 ma, class 2 (add 2 ma for each current loop used) Accuracy vs. Temperature 57 ppm / C full scale calibration range (including maximum offset change, 2 counts) Operating Temperature to 6C (32 to 4 F) Storage Temperature Relative Humidity Environmental Air 2 to 7C (4 to 58 F) 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 Setting the Module Jumper Before installing and wiring the module, you ll need to decide the proper jumper setting for your application. The module has one jumper, located in the open cutout at the rear of the housing. When the jumper is installed (which is the factory default setting), the module operates in Standard Mode. In this mode, the channel select bits are binary encoded, and you have access to the Enable control bit. We recommend this setting for new applications, since it offers more overall features and easier CPU programming. Jumper 4-Ch. Analog When the jumper is removed, the module operates in the F44DA Compatibility Mode. If you have an existing F44DA application that uses 42 ma outputs only, choosing this mode will allow existing ladder logic to work with this module. In the F44DA Compatibility Mode, each channel has an individual channel select output bit (the Enable control bit is not accessible). Installed = Standard Mode Removed = F44DA Compatibility Mode For either mode, the module requires 6 () output points. Choose the mode of operation that best fits your application. NOTE: If you have selected the F44DA Compatibility Mode (jumper removed), refer to the chapter on the F44DA for output bit assignments and ladder logic examples. The remainder of the information in this chapter applies only to the operating in the Standard Mode (with jumper installed).

34 Analog Current Connecting the Field Wiring Wiring Guidelines User Power Supply Requirements our 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 module or the power supply return (V). Do not ground the shield at both the module and the transducer. 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 at least one field-side supply. ou may use the same or separate power sources for the module supply and loop supply. The module requires 2.6 to 26.4 VDC, Class 2, at 75 ma current. The four current loops require 8 to 3 VDC, at 2 ma each. 4-Ch. Analog The DL43/44/45 CPUs, D4RS Remote I/O Controller, and D4EX Expansion Units have built-in 24 VDC power supplies that provide up to 4mA of current. ou may use one of these instead of a separate supply if you have only a couple of analog modules. The current required is 75 ma (module), plus 8 ma (four current loops) for a total of 55 ma. In some situations it s desirable to power the loops separately due to power budget or due to their remote location from the PLC. This will work, as long as the loop supply meets the voltage and current requirements, and its minus () side and the module supply s () side are connected together. WARNING: If you are using the 24 VDC base power supply, make sure you calculate the power budget. Exceeding the power budget can cause unpredictable system operation that can lead to a risk of personal injury or damage to equipment. Load Requirements Each channel in use must have a load impedance less than 62 ohms at8v, 9 ohms at 24V, or 2 ohms at 3V. Unused channels must be left disconnected.

Analog Current 35 Removable Connector The module has a removable connector to make wiring easier. Simply loosen the retaining screws and gently pull the connector from the module. Use the following diagram to connect the field wiring. The diagram shows separate module and loop supplies for channel 4. If you only want to use one field-side supply, just combine the supplies positive (+) terminals into one node, and remove the loop supply. Wiring Diagram NOTE : Shields should be connected to the V terminal of the module terminal block. NOTE 2: Unused current outputs should remain open (no connections). ANALOG PUT Typical User Wiring CH Current CH +I K ohms CH I CH2 Current CH2 +I K ohms CH3 K ohms Current See NOTE CH2 I CH3 I CH3 +I Internal module circuitry 42mA curr. sinking 42mA curr. sinking 42mA curr. sinking D/A D/A D/A 4mA2mA CH I CH2 I CH3 I CH +I CH2 +I CH3 +I 4-Ch. Analog CH4 K ohms Current CH4 I CH4 +I 42mA curr. sinking D/A CH4 I CH4 +I + 83 VDC Optional 2nd User Supply V + User Supply 2.6 26.4 VDC 75 ma 24V Internal DC/DC Converter V 24 V 24 V @ 75 ma Add 2mA for each 42mA loop powered from the module.

36 Analog Current Module Operation DL43 Special Requirements Even though the module can be placed in any slot, it is important to examine the configuration if you are using a DL43 CPU. As you will see in the section on writing the program, you use V-memory locations to send the analog data. As shown in the following diagram, if you place the module so the output points do not start on a V-memory boundary, the instructions cannot access the data. Correct! 8pt 8pt Input Input 7 7 2 37 4 57 4-Ch. Analog Wrong! MSB 3 7 V45 8pt V452 V45 3 2 7 8pt Input LSB 2 Input 7 27 3 37 4 57 Data is split over two locations, so instructions cannot access data from a DL43. MSB V45 LSB MSB V45 LSB 3 7 3 2 7 2 7 7

Analog Current 37 Analog Configuration Requirements The D44DA Analog module requires 6 discrete output points in the CPU. The module can be installed in any slot of a DL45 system, including remote bases. The limitations on the number of analog modules are: For local and expansion systems, the available power budget and discrete I/O points. For remote I/O systems, the available power budget and number of remote I/O points. Check the user manual for your particular model of CPU for more information regarding power budget and number of local or remote I/O points. 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. Channel Update Sequence The module allows you to update the channels in any order. our control program determines which channel gets updated on any given scan. The exact method depends on the operating mode you selected when setting the jumper. With a DL44 or DL45 CPU, you can use immediate instructions to update all four channels in the same scan (we ll show you how to do this later). Scan Read inputs 4-Ch. Analog Execute Application Program Calculate the data Scan N Scan N+ Channel Channel 2 Scan N+2 Channel 3 Write data Scan N+3 Channel 4 Scan N+4 Channel Write to outputs

38 Analog Current Bit Assignments ou may recall the requires 6 discrete output points from the CPU. These points provide: The digital representation of the analog signal. Identification of the channel that is to receive the data. Since all output points are automatically mapped into V-memory, it is very easy to determine the location of the data word that will be assigned to the module. 8pt 8pt Input Input 7 7 2 37 4 57 V45 V452 4-Ch. Analog Channel Select Bits MSB 3 7 V45 3 2 7 LSB Bit 5 4 3 2 9 8 7 6 5 4 3 2 Within this V-memory location the individual bits represent specific information about the channel selected and the analog signal. bits 2 and 3 are the channel select outputs. They are binary encoded to select the channel that will be updated V45 with the data. The bits are assigned as MSB LSB follows. Bit Bit 3 2 Channel Off Off Off On 2 On Off 3 On On 4 5 4 3 2 2 98765432 Channel Select Bits

Analog Current 39 Enable Bit bit 4 is the Enable control bit for all four channels. When it is off, all channel output currents decrease to their lowest level, which is 4 ma for connected loads. Disabling the outputs also clears the module s output data registers for each channel. To resume analog output levels, first the Enable control bit must turn on. Then, the CPU must write new data to each channel to restore the output current for that channel. MSB 5 4 3 2 V45 LSB 98765432 Enable Bit OFF = Disable (and clear) ON = Enable Analog Data Bits Module Resolution The first twelve bits of the V-memory location represent the analog data in binary format. Each bit has a binary weight according to the following table. Bit Value Bit Value 6 64 2 7 28 2 4 8 256 3 8 9 52 4 6 24 5 32 248 MSB 5 4 3 2 V45 LSB 98765432 data bits The remaining bit (bit 5) is not used and is ignored by the module. Since the module has 2-bit resolution, the analog signal is made of 496 counts ranging from 495 (2 2 ). For the 4 to 2 ma scale, sending a produces a 4 ma signal, and 495 gives a 2 ma signal. This is equivalent to a binary value of to, or to FFF hexadecimal. The graph to the right shows the linear relationship between the data value and output signal level. 2mA 4mA 495 4-Ch. Analog Each count can also be expressed in terms of the signal level by using the equation shown. The following table shows the smallest signal change that occurs when the digital value increases by LSB. Resolution H L 495 H = high limit of the signal range L = low limit of the signal range Signal Range Span Divide By Smallest Change (H L) 4 to 2mA 6mA 495 3.9 A

3 Analog Current Writing the Control Program Update Any Channel As mentioned earlier, you can update any channel each scan using regular I/O instructions, or any number of channels per scan using immediate I/O instructions. The following diagram shows the data locations for an example system. ou use the channel select outputs to determine which channel gets updated (more on this later). F4-4DA- 8pt 8pt Input Input 7 7 2 37 4 57 V45 V452 4-Ch. Analog Calculating the Digital Value Unused MSB Enable our program has to calculate the digital value to send to the analog module. There are many ways to do this, but almost all applications are understood more easily if you use measurements in engineering units. This is accomplished by using the conversion formula shown. ou may have to make adjustments to the formula depending on the scale you choose for the engineering units. V45 Data Bits Channel Select Bits A U 495 H L LSB A = analog value ( 495) U = engineering units H = high limit of the engineering unit range L = low limit of the engineering unit range Consider the following example which controls pressure from. to 99.9 PSI. By using the formula, you can easily determine the digital value that should be sent to the module. The example shows the conversion required to yield 49.4 PSI. Notice the formula uses a multiplier of. This is because the decimal portion of 49.4 cannot be loaded, so you adjust the formula to compensate for it. A U A 494 A 223 495 (H L) 495

Analog Current 3 43 44 45 Here is how you would write the program to perform the engineering unit conversion. This example assumes you have calculated or loaded the engineering unit value and stored it in V3. Also, you have to perform this for all four channels if you are using different data for each channel. NOTE: The DL45 offers various instructions that allow you to perform math operations using binary, BCD, etc. It is usually easier to perform any math calculations in BCD and then convert the value to binary before you send the data to the module. If you are using binary math, you do not have to include the BIN conversion. X V3 MUL K495 When X is on, the engineering units (stored in V3) are loaded into the accumulator. This example assumes the numbers are BCD. Multiply the accumulator by 495 (to start the conversion). DIV K BIN V3 Divide the accumulator by (because we used a multiplier of, we have to use instead of ). Convert the BCD number to binary. Store the result in V3. This is the digital value, in binary form, that should be sent to the module. 4-Ch. Analog V-Memory Registers The ladder program examples that follow occasionally use certain V-memory register addresses in the CPU that correspond to 6-bit output modules. Use the table below to find the V-memory address for the particular location of your analog module. See Appendix A for additional addresses available for the DL45 CPU. V-Memory Register Addresses for 6-Point () Locations 2 4 6 2 4 6 2 22 V 45 45 452 453 454 455 456 457 45 45 24 26 3 32 34 36 4 42 44 46 V 452 453 454 455 456 457 452 452 4522 4523

32 Analog Current Sending Data to One Channel 43 44 45 The following programs show you how to update a single channel. Notice the DL43 CPU requires a slightly different program than the DL44 and DL45 CPUs. Since the DL43 does not support the F instruction, the program must be modified to make sure the channel select bits are not accidentally changed by the data in the accumulator. The DL43 example will also work with DL44 and DL45 CPUs. This example assumes you already have the data loaded in V3. DL44/DL45 Example SP V3 BIN The instruction loads the data for channel into the accumulator. Since SP is used, this rung automatically executes on every scan. ou could also use an X, C, etc. permissive contact. The BIN instruction converts the accumulator data to binary (you must omit this step if you ve already converted the data elsewhere). F K2 2 The F sends the 2 bits to the data word. Our example starts with 2, but the actual value depends on the location of the module in your application. 4-Ch. Analog 43 44 45 Select Channel Enable s DL43 Example SP V3 35 RST 34 RST 36 SET Turn 35 off and 34 off to update Channel. 35 34 Channel Off Off Ch. Off On Ch. 2 On Off Ch. 3 On On Ch. 4 Turn on 36 to enable all four output channels. The instruction loads the data for channel into the accumulator. Since SP is used, this rung automatically executes every scan. ou could also use an X, C, etc. permissive contact. BIN The BIN instruction converts the accumulator data to binary (you must omit this step if you ve already converted the data elsewhere). ANDD KFFF The ANDD instruction masks off the channel select bits to prevent an accidental channel selection. Select Channel V45 35 RST 34 RST The instruction sends the data to the module. Our example starts with V45, but the actual value depends on the location of the module in your application. Turn 35 off and 34 off to update Channel. 35 34 Channel Off Off Ch. Off On Ch. 2 On Off Ch. 3 On On Ch. 4 Enable s 36 SET Turn on 36 to enable all four output channels.

Analog Current 33 Sequencing the Channel Updates The next four example programs show you how to send digital values to the module when you have more than one channel. These examples will automatically update all four channels over four scans. The first two sequencing examples, examples and 2, are fairly simple and will work in almost all situations. We recommend these for new users. They use control relays C through C4 as index numbers corresponding to the channel updated on any particular scan. At the end of each scan, only one control relay C through C4 is on. On each subsequent scan, the next control relay energizes. The channel sequencing automatically begins with channel on the first scan, or after any disruption in the logic. ou must use example with DL43 CPUs. Either example will work with DL44 or DL45 CPUs. The next two examples, 3 and 4, are slightly more complex. However, they do not depend on the use of control relays to provide channel sequencing. Instead, they use function boxes to increment a channel pointer value in V-memory. Then, other instructions perform bit manipulations to position the channel select bits properly in the output word to the module. ou must use example 3 with DL43 CPUs. Either example will work with DL44 or DL45 CPUs. In the last example, we show how you can update all four channels in the same scan with DL44 and DL45 CPUs. However, this can increase the scan time and you may not always need to update all four channels on every scan. 4-Ch. Analog

34 Analog Current Sequencing Example, DL44/45 43 44 45 The following program example shows how to send digital values to the module when you have more than one channel. This example assumes you already have the data loaded in V3, V32, V33, and V34 for channels 4 respectively. It is important to use the rungs in the order shown for the program to work. This example will not work with DL43 CPUs. Ch4. Done C4 C When channel 4 has been updated, C restarts the update sequence. 4-Ch. Analog Ch3. Done C3 Ch2. Done C2 Ch. Done C Restart C C C2 C3 C4 V34 V33 V32 V3 C4 C3 C2 C When channel 3 has been updated, this rung loads the data for channel 4 into the accumulator. By turning on C4, this triggers the channel update (see the channel select rungs below). When channel 2 has been updated, this rung loads the data for channel 3 into the accumulator. By turning on C3, this triggers the channel update (see the channel select rungs below). When channel has been updated, this rung loads the data for channel 2 into the accumulator. By turning on C2, this triggers the channel update (see the channel select rungs below). This rung loads the data for channel into the accumulator. C restarts the sequence after channel 4 is done (see the top rung). The first scan or any interruption in control relay sequencing is detected when control relays C through C4 are off. In this case, we also start the sequence with channel. SP C3 C4 C2 Select Channel, binary encoded BIN F K2 2 35 34 This rung converts the accumulator data to binary (you must omit this step if you ve already converted the data elsewhere). It also loads the data to the appropriate bits of the data word. Our example starts with 2, but the actual value depends on the location of the module in your application. Set 35 and 34 to select the output channel, based on the control relay status. CR(on) 35 34 Channel C Off Off Ch. C2 Off On Ch. 2 C3 On Off Ch. 3 C4 On On Ch. 4 C4 SP Enable s 36 Enables all four output channels. SP is always on.

Analog Current 35 Sequencing Example 2, DL43 43 44 45 Since the DL43 does not support the F instruction, the previous program must be modified to make sure the channel select bits are not accidentally changed by the data in the accumulator. It is important to use the rungs in the order shown for the program to work. This example will also work with DL44 and DL45 CPUs. Ch4. Done C4 Ch3. Done C3 Ch2. Done C2 Ch. Done C Restart C C SP C3 C4 C2 On First Scan C2 C3 C4 Select Channel, Binary Encoded Select Channel, cont d V34 V33 V32 V3 BIN ANDD KFFF V45 C C4 C3 C2 C 35 34 When channel 4 has been updated, C restarts the update sequence. When channel 3 has been updated, this rung loads the data for channel 4 into the accumulator. By turning on C4, this triggers the channel update (see the channel select rungs below). When channel 2 has been updated, this rung loads the data for channel 3 into the accumulator. By turning on C3, this triggers the channel update (see the channel select rungs below). When channel has been updated, this rung loads the data for channel 2 into the accumulator. By turning on C2, this triggers the channel update (see the channel select rungs below). This rung loads the data for channel into the accumulator. C restarts the sequence after channel 4 is done (see the top rung). The first scan or any interruption in control relay sequencing is detected when control relays C through C4 are off. In this case, we also start the sequence with channel. This rung converts the accumulator data to binary (you must omit this step if you ve already converted the data elsewhere). The ANDD instruction masks off the channel select bits to prevent an accidental channel selection. The instruction sends the data to the module. Our example starts with V45, but the actual value depends on the location of the module in your application. Set 35 and 34 to select the output channel, based on the control relay status. CR(on) 35 34 Channel C Off Off Ch. C2 Off On Ch. 2 C3 On Off Ch. 3 C4 On On Ch. 4 4-Ch. Analog C4 SP Enable 36 Enables all four output channels. SP is always on.

36 Analog Current Sequencing Example 3, DL44/DL45 43 44 45 The following program example shows how to send digital values to the module when you have more than one channel. This example will not work with DL43 CPUs. This example assumes you are using the following data locations. V3 channel data V3 channel 2 data V32 channel 3 data V34 channel 4 data V5 channel to update: = ch., = ch. 2, 2 = ch. 3, 3 = ch. 4 Always On SP V5 This loads the number of the channel to be updated into the accumulator. The channels are 4, but the values in V5 range from 3 and correspond to the channels. We ll use channel 2 as an example. V5 X V3 Use the channel selection value, which is now on the data stack, as an offset from V3 to load the channel data into the accumulator. HEX Value in st stack location Octal Octal V 3 + = V 3 4-Ch. Analog BIN 2 3 4 5 The value in V3 is 2345, which is slightly over half scale. Convert the BCD data to binary. Since the value can never be above 495, only the 2 least significant bits of the accumulator are used. 2 3 4 5 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 BCD Value converted to binary now in accumulator ANDD KFFF Mask off the upper four bits of the word, just in case the data value is out of range (greater than 495). V5 Load the number of the channel to be updated back into the accumulator again (the channel data is moved to the first data stack location). 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 SHFL K2 This instruction moves the channel select bit(s) into the proper location. We ll use it later when we send the 6-bit data word to the module. 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 Program is continued on the next page.

Analog Current 37 Example 3 Continued ORD K4 Set the Enable bit, by combining the value of 4 hex with the accumulator value. This sets bit 4 to, enabling all channels. 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 ADDBS Earlier in the program the data value was placed into the first data stack location. The ADDBS instruction adds the value currently in the accumulator with the value in the first data stack location. Stack 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 + 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 V5 K4 = 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 F K5 INCB V5 K 2 5 4 3 2 9 8 7 6 5 4 3 2 Data for Analog Module Send the lower 5 bits stored in the accumulator to the analog module. The lowest 2 bits contain the analog data. Bits 2 and 3 are the channel selection bits. Bit 4 is the Enable bit. Increment the channel selection value. This allows the logic to cycle through all four channels. When channel four has been updated, then reset the channel selection memory location to (remember, represents channel ). 4-Ch. Analog V5

38 Analog Current Sequencing Example 4, DL43 43 44 45 The following program example shows how to send digital values to the module when you have more than one channel. This example will also work with DL44 and DL45 CPUs. This example assumes you are using the following data locations. V3 channel data V3 channel 2 data V32 channel 3 data V34 channel 4 data V5 channel to update: = ch., = ch. 2, 2 = ch. 3, 3 = ch. 4 V5 temporary location for the channel selection SP Always On V5 This loads the number of the channel to be updated into the accumulator. The channels are 4, but the values in V5 range from 3 and correspond to the channels. We ll use channel 2 as an example. V5 V5 in accumulator 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 4-Ch. Analog SHFL K2 V5 This instruction moves the channel selection bit(s) into the proper location. We ll use it later when we send the 6-bit data word to the module. 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 Store the channel selection portion of the data word in V5 temporarily. We ll have to use it again later. V5 Load the channel selection from V5 once again. V5 X V3 BIN Use the channel selection value, which is now on the data stack, as an offset from V3 to load the channel data into the accumulator. HEX Value in st Octal stack location V 3 + = V Octal 3 2 3 4 5 The value in V3 is 2345, which is slightly over half scale. Convert the BCD data to binary. Since the value can never be above 495, only the least significant 2 bits of the accumulator are used. 2 3 4 5 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 Program is continued on the next page. BCD Value converted to binary now in accumulator.

Analog Current 39 Example 4 Continued ANDD KFFF Mask off the upper four bits of the word, just in case the data value is out of range (greater than 495). OR V5 Earlier in the program the channel selection portion of the data word was created and stored in V5. Now we can OR this location with the data word currently in the accumulator to get the final data word that is ready to be sent to the analog module. V5 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 + 5 4 3 2 9 8 7 6 5 4 3 2 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 Data for Analog Module ORD K4 V45 Set the Enable bit, by combining the value of 4 hex with the accumulator value. This sets bit 4 to, enabling all channels. 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 Send the data stored in the lower half of the accumulator to the analog module (the instruction ignores the upper 6 bits of the accumulator). The most significant four bits of the analog word contain the channel selection bits. The remaining 2 bits contain the analog data. 4-Ch. Analog INCB V5 Increment the channel selection value. This allows the logic to cycle through all four channels. V5 K4 = K V5 When channel four has been updated, this instruction resets the channel selection memory location to (remember, represents channel ).

32 Analog Current Updating all Channels in a Single Scan 43 44 45 By using the Immediate instructions found in the DL44 and DL45 CPUs (not DL43s), you can easily update all four channels in a single scan. Before choosing this method, remember that it slows the CPU scan time. To minimize this impact, change the SP (Always On) contact to an X, C, etc. permissive contact that only updates the channels as required. This example assumes you already have the data loaded in V3, V32, V33, and V34 for channels 4 respectively. NOTE: This program will not work in a remote/slave arrangement. Use one of the programs shown that reads one channel per scan. Channel Example SP V3 BIN ANDD KFFF The instruction loads the data for channel into the accumulator. The BIN instruction converts the accumulator data to binary (you must omit this step if you ve already converted the data elsewhere). The ANDD instruction masks off the channel select bits to prevent an accidental channel selection. 4-Ch. Analog ORD K4 IF K6 2 The ORD instruction (with K4) sets the Enable bit. s 34 and 35 are left off to select channel for updating with the data. The IF sends 6 bits to the data word. Our example starts with 2, but the actual value depends on the location of the module in your application. ou have to send 6 bits with the IF instruction. If you don t send all 6 bits, the module will ignore the data. The remaining channels are updated with a similar program segment. The only changes are the location of the data for each channel (V32, V33, and V34) and the ORD instruction. The constant loaded with the ORD instruction is different for each channel. The following example shows where these differences occur. Changes for channels 2 4 SP V32 V location changes BIN The instruction loads the data for channel 2 into the accumulator. Location Channel V3 V32 2 V33 3 V34 4 The BIN instruction converts the accumulator data to binary (you must omit this step if you ve already converted the data elsewhere). Constant changes ANDD KFFF ORD K5 IF K6 2 Mask off the upper four bits, so bad data cannot corrupt the channel select bits, output enable bit, or sign bit. The ORD instruction with the constants as specified selects the appropriate channel to be updated, and sets the Enable bit. The following constants are used. Constant Channel K 4 K 5 2 K 6 3 K 7 4

Analog Current 32 Analog and Digital Value Conversions Sometimes it is helpful to be able to quickly convert between the voltage or current signal levels and the digital values. This is especially useful 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... 4 to 2mA A 6D 4 495 D 495 (A 4) 6 For example, if you need a 9mA signal level, you would use the following formula to determine the digital value that should be stored in the V-memory location that contains the data. D 495 6 (A4) D 495 6 (9mA4) D (255.94) (5) D 28 4-Ch. Analog