Elite.Parts chervon right Manufacturers chervon right A chervon right ALLEN BRADLEY chervon right 1746-NO4V
About product Specifications Datasheet FAQ

ALLEN BRADLEY 1746-NO4V

Image of ALLEN BRADLEY 1746-NO4V

Description

Allen Bradley 1746-NO4V Analog Module - Analog I/O, (4) Analog Voltage Output Module -10…+10V dc

Part Number

1746-NO4V

Price

Request Quote

Manufacturer

ALLEN BRADLEY

Lead Time

Request Quote

Category

PROGRAMMABLE CONTROLLERS

Specifications

Agency Certification(when product or packaging is marked)

CSA certified, CSA Class I, Division 2, Groups A, B, C, D certified, UL listed, CE marked for all applicable directives

Backplane Current Draw 5V (max.) 24V (max.)

55mA/145mA

Calibration

Factory Calibrated

Channel Bandwidth

10 Hz

Common Mode Rejection at 0 to 10 Hz (min.)

50 dB

Common Mode Rejection at 60 Hz (min.)

105 dB

Common Mode Voltage Range

–20 to +20 volts

Conversion Method

Delta-Sigma Modulation

Converter Resolution

16 bit

External 24V dc Power Supply Tolerance

24 ±10% at 145 mA max. (21.6 to 26.4V dc)

Field Wiring to Backplane Isolation

500V dc

Impedance channel to channel

1M ohms

Impedance to ANL COM

500K ohms

Location

1746 chassis

Location of LSB in I/O image word

0000 0000 0000 0001

Maximum Wire Size

#14 AWG (maximum)

Noise Immunity

NEMA Standard ICS 2–230

Non-linearity

0.01%

Normal Mode Rejection at 60 Hz (min.)

55 dB

Operating Temperature

0° to +60° C (+32° to +140° F)

Output Channels per Module

4 voltage outputs, not individually isolated

Recommended Cable

Shielded Belden #8761

Relative Humidity

5 to 95% (non-condensing)

Repeatability

±1 LSB

SLC Communication Format

16 Bit Two’s Complement Binary

Step Response

60 ms at 95%

Storage Temperature

–40° to +85° C (–40° to +185° F)

Terminal Block

Removable

Update Time

512 ms for all channels in parallel

Datasheet

pdf file

Allen Bradley=1746NIO=datashee-552454531t.pdf

379 KiB

Extracted Text

Allen-Bradley SLC 500 Analog User I/O Modules Manual (Cat. Nos. 1746-NI4, -NIO4I, -NIO4V, -NO4I, and -NO4V) Important User Because of the variety of uses for the products described in this Information publication, those responsible for the application and use of this control equipment must satisfy themselves that all necessary steps have been taken to assure that each application and use meets all performance and safety requirements, including any applicable laws, regulations, codes and standards. The illustrations, charts, sample programs and layout examples shown in this guide are intended solely for purposes of example. Since there are many variables and requirements associated with any particular installation, Allen-Bradley does not assume responsibility or liability (to include intellectual property liability) for actual use based upon the examples shown in this publication. Allen-Bradley publication SGI-1.1, Safety Guidelines for the Application, Installation, and Maintenance of Solid-State Control (available from your local Allen-Bradley office), describes some important differences between solid-state equipment and electromechanical devices that should be taken into consideration when applying products such as those described in this publication. Reproduction of the contents of this copyrighted publication, in whole or in part, without written permission of Allen-Bradley Company, Inc., is prohibited. Throughout this manual we use notes to make you aware of safety considerations: ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property damage or economic loss. ! Attention statements help you to: • identify a hazard • avoid the hazard • recognize the consequences Important: Identifies information that is critical for successful application and understanding of the product. SLC, SLC 5/01, SLC 5/02, SLC 100, and SLC 500 are trademarks of Allen–Bradley Company, Inc. Summary of Changes Summary of Changes The information below summarizes the changes to this manual since the last printing as 1746-NM003, Series B in February 1994. This manual incorporates the Document Update from October 1995. To help you find new information and updated information in this release of the manual, we have included change bars as shown to the right of this paragraph. New Information The table below lists sections that document new features and additional information about existing features, and shows where to find this new information. For This New Information See Quick Start for Experienced Users Chapter 2 Wiring Schematic for Single-ended Analog Input Chapter 3 Connections CE Certification Chapter 3, Appendix A Module Input and Output Circuits Appendix D Updated Information Changes from the previous release that require you to perform a procedure differently or that require different equipment are listed below: • Determining Your Power Requirements table – added specialty and discrete I/O modules (see chapter 3, Installing Your Analog Module). • Additional information added to Grounding Your Cable section (see chapter 3, Installing Your Analog Module). • Foil Shield and Drain Wire diagram, Figure 3.11, has been modified (see chapter 3, Installing Your Analog Module). Publication 1746-6.4 – January 1996 Table of Contents Important User Information . . . . . . . . . . . . . . . . . . . . . . . . –1 Summary of Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . –1 New Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . –1 Updated Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . –1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–1 How to Use Analog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–1 Types of Analog Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–2 1746-NIO4I and NIO4V Analog Combination Modules . . . . . . . . 1–2 1746-NO4I and NO4V Analog Output Modules . . . . . . . . . . . . . . 1–2 Quick Start for Experienced Users . . . . . . . . . . . . . . . . . . . 2–1 Required Tools and Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . 2–1 Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–2 Installing and Wiring Your Analog Module . . . . . . . . . . . . . 3–1 If this product is installed within the European Union or EEA regions and has the CE mark, the following regulations apply. . 3–1 European Union Directive Compliance . . . . . . . . . . . . . . . . . . . . . 3–1 EMC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–1 Determining Your Power Requirements for a Modular Controller . . 3–2 Determining Your Power Requirements for a Fixed Controller . . . . 3–3 Configuring Your Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–4 Switch Settings for the 1746-NI4 . . . . . . . . . . . . . . . . . . . . . . . . 3–4 Switch Settings for the 1746-NIO4I and -NIO4V . . . . . . . . . . . . . 3–5 External Power Switch for the 1746-NO4I and -NO4V . . . . . . . . . 3–5 Choosing a Slot in the Chassis . . . . . . . . . . . . . . . . . . . . . . . . . . 3–6 Installing Your Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–6 Removing the Analog Module Terminal Block . . . . . . . . . . . . . . . 3–7 Wiring Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–8 System Wiring Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–8 Grounding Your Cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–9 Determining the Cable Length . . . . . . . . . . . . . . . . . . . . . . . . . . 3–9 Wiring the Analog Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–10 Labeling and Installing the Terminal Block . . . . . . . . . . . . . . . . . . 3–12 Grounding the Foil Shields and Drain Wires . . . . . . . . . . . . . . . . . 3–12 Minimizing Electrical Noise on Analog Modules . . . . . . . . . . . . . . 3–16 ii Table of Contents Module Operation and System Considerations . . . . . . . . . 4–1 Interface between the Module and the Processor . . . . . . . . . . . . . 4–2 Entering Module ID Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–2 Addressing Analog Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–2 Bit Level Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–5 Processor Update of Analog Data . . . . . . . . . . . . . . . . . . . . . . . 4–6 Monitoring the Input and Output Data . . . . . . . . . . . . . . . . . . . . 4–6 Converting Analog Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . 4–7 Converting Analog Output Data . . . . . . . . . . . . . . . . . . . . . . . . . 4–8 System Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–10 Safe State for Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–10 Retentive Programming Option . . . . . . . . . . . . . . . . . . . . . . . . . 4–10 Retentive Analog Output Example . . . . . . . . . . . . . . . . . . . . . . . 4–11 Non-Retentive Analog Output Example . . . . . . . . . . . . . . . . . . . 4–11 During a Mode Change or Power Cycle . . . . . . . . . . . . . . . . . . . 4–12 Input Out-of-Range Detection . . . . . . . . . . . . . . . . . . . . . . . . . . 4–12 Response to Slot Disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–14 Input Response to Slot Disable . . . . . . . . . . . . . . . . . . . . . . . . . 4–14 Output Response to Slot Disable . . . . . . . . . . . . . . . . . . . . . . . . 4–14 Input Channel Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–15 Testing Your Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–1 Testing the SLC 500 System . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–1 Start-up Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–1 Inspect the Analog Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–2 Disconnect Prime Movers (Motion Devices) . . . . . . . . . . . . . . . . 5–2 Power Up the SLC 500 System . . . . . . . . . . . . . . . . . . . . . . . . . 5–3 Testing Analog Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–4 Example – If the current input boundary conditions are 1 mA and 5 mA, the boundary conditions in volts would be 0.25 volts and 1.25 volts. If this calculation is done correctly, the test voltage should never exceed 5 volts. . . . . . . . . . . . . . . . 5–6 Testing Analog Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–6 Programming Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 6–1 Addressing, Out-of-Range Detection, and Scaling of Analog Inputs 6–1 Calculating the Linear Relationship . . . . . . . . . . . . . . . . . . . . . . 6–2 Calculating the Out-of-Range Flag Using the Scale Instruction . . . 6–3 Using Standard Math . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–4 Using the Scale (SCL) Instruction . . . . . . . . . . . . . . . . . . . . . . . 6–6 Using Scale with Parameters (SCP) Instruction . . . . . . . . . . . . . 6–7 Addressing and Scaling Outputs . . . . . . . . . . . . . . . . . . . . . . . . . 6–8 Calculating the Linear Relationship . . . . . . . . . . . . . . . . . . . . . . 6–8 Using Standard Math . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–10 Using the Scale with Parameters (SCP) Instruction . . . . . . . . . . . 6–12 Table of Contents iii Scaling Offset when >32,767 or < –32,768 . . . . . . . . . . . . . . . . . . 6–14 Calculating the Linear Relationship . . . . . . . . . . . . . . . . . . . . . . 6–14 Calculating the Shifted Linear Relationship . . . . . . . . . . . . . . . . 6–15 Using Standard Math . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–16 Using the Scale with Parameters (SCP) Instruction . . . . . . . . . . . 6–18 Scaling and Range Checking of Analog Inputs and Outputs . . . . . . 6–20 Calculating the Linear Relationship . . . . . . . . . . . . . . . . . . . . . . 6–20 Using Standard Math Instructions . . . . . . . . . . . . . . . . . . . . . . . 6–21 Scaling and Range Checking of Analog Inputs and Outputs . . . . . . 6–23 Using SCL Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–23 Using the Scale with Parameters (SCP) Instruction . . . . . . . . . . . 6–24 Maintenance and Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–1 Preventative Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–1 Safety Considerations When Troubleshooting . . . . . . . . . . . . . . . 7–2 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A–1 Analog Module Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . A–1 General Specifications for NI4, NIO4I, NIO4V, NO4I, and NO4V . . A–1 General Analog Input Specifications for NI4, NIO4I, NIO4V . . . . . . A–2 Current-Loop Input Specifications for NI4, NIO4I, and NIO4V . . . . A–3 Voltage Input Specifications for NI4, NIO4I, and NIO4V . . . . . . . . . A–4 Current Output Specifications for NIO4I and NO4I . . . . . . . . . . . . A–5 Voltage Output Specifications for NIO4V and NO4V . . . . . . . . . . . A–6 Two’s Complement Binary Numbers . . . . . . . . . . . . . . . . . B–1 Positive Decimal Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B–1 Negative Decimal Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B–2 Optional Analog Input Software Calibration . . . . . . . . . . . . C–1 Calibrating an Analog Input Channel . . . . . . . . . . . . . . . . . . . . . . C–1 Calculating the Software Calibration . . . . . . . . . . . . . . . . . . . . . C–2 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C–2 Example Ladder Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C–3 Module Input and Output Circuits . . . . . . . . . . . . . . . . . . . D–1 Input Circuit for 1746-NI4, -NIO4I, and -NIO4V Modules . . . . . . . . D–1 Voltage Output Circuit for 1746-NIO4V Modules . . . . . . . . . . . . . . D–1 Current Output Circuit for 1746-NIO4I Modules . . . . . . . . . . . . . . D–1 Chapter 1 Overview This chapter describes how analog is used and provides two application examples of analog. The types of available analog modules and their related specifications are also described. How to Use Analog Analog refers to the representation of numerical quantities by the measurement of continuous physical variables. Analog applications are present in many forms. The following application shows a typical use of analog. In this application the processor controls the amount of fluid placed in a holding tank by adjusting the percentage of the valve opening. The valve is initially open 100%. As the fluid level in the tank approaches the preset point, the processor modifies the output to degrade closing the valve 90%, 80%, adjusting the valve to maintain a set point. Figure 1.1 Analog Output Valve Analog I/O CPU Level Sensor Module Analog Input Publication 1746-6.4 – January 1996 1–2 Overview Types of Analog Modules 1746-NI4 Analog Input Module The 1746-NI4 Analog Input module contains 4 analog input channels that are user selectable per channel for voltage or current to support a variety of monitoring and controlling applications 1746-NIO4I and NIO4V Analog Combination Modules The NIO4I and NIO4V Analog Combination I/O modules provide two input and two output channels in a single slot module. The 1746-NIO4I module contains two current or voltage inputs (user selectable per channel), and two current outputs. The 176-NIO4V module contains two current or voltage inputs (user selectable per channel) and two voltage outputs. 1746-NO4I and NO4V Analog Output Modules The NO4I and NO4V Analog Output Modules provide 4 analog output channels. The NO4I module contains four current outputs. The NO4V module contains four voltage outputs. Both of these modules support a variety of monitoring and controlling applications. Table 1.A Output Backplane Current Catalog Input Channels per External 24V dc Power Channels per Draw 1746- Module Supply Tolerance Module 5V (max.) 24V (max.) 4 differential, voltage or current selectable NI4 NA 35 mA 85 mA NA per channel, not individually isolated 2 differential, voltage 2 current outputs, or current selectable NIO4I not individually 55 mA 145 mA NA per channel, not isolated individually isolated 2 differential, voltage 2 voltage or current selectable outputs, not NIO4V 55 mA 115 mA NA per channel, not individually individually isolated isolated 4 current outputs, 24 ±10% at 195 mA max. NO4I NA not individually 55 mA 195 mA � (21.6 to 26.4V dc) isolated 4 voltage outputs, not 24 ±10% at 145 mA max. NO4V NA 55 mA 145 mA � individually (21.6 to 26.4V dc) isolated � Required for some applications if SLC 24V power is at a premium. For more specification information, refer to Appendix A. Publication 1746-6.4 – January 1996 Chapter 2 Quick Start for Experienced Users This chapter can help you to get started using analog. We base the procedures here on the assumption that you have an understanding of SLC 500 products. You should understand electronic process control and be able to interpret the ladder logic instructions required to generate the electronic signals that control your application. Because it is a start-up guide for experienced users, this chapter does not contain detailed explanations about the procedures listed. It does, however, reference other chapters in this book where you can get more information. If you have any questions or are unfamiliar with the terms used or concepts presented in the procedural steps, always read the referenced chapters and other recommended documentation before trying to apply the information. This chapter: • tells you what tools and equipment you need • lists preliminary considerations • describes when to configure the module • explains how to install and wire the module • discusses system power-up procedures Required Tools and Have the following tools and equipment ready: Equipment • small blade screwdriver • an adequate length of communication cable (Belden 8761) for your specific application. (See chapter 3, Installing and Wiring Your Analog Module for maximum cable distances.) • programming equipment Publication 1746-6.4 – January 1996 2–2 Quick Start Procedures 1. 1. Reference Check the contents of shipping box. Unpack the shipping box making sure that the contents include: •Analog I/O module (Catalog Number 1746- Series) – •user manual (Publication 1746-6.4) If the contents are incomplete, call your local Allen-Bradley representative for assistance. 2. 2. Determine your power requirements for the modular controller. Reference Review the power requirements of your system to see that your chassis supports placement of the Chapter 3 analog module. (Installing and •For modular style systems, calculate the total load on the system power supply using the procedure described in Wiring Your the SLC Installation & Operation Manual for modular style controllers (Publication Number 1747-6.2) or the SLC Analog Module) 500 Family System Overview (Publication Number 1747-2.30). • For fixed SLC 500 controllers, refer to table 3.B on page 3–3. Appendix A (Specifications) Backplane Current External 24V dc Power Catalog Number Draw Supply Tolerance 5V (max.) 24V (max.) 1746-NI4 35 mA 85 mA NA 1746-NIO4I 55 mA 145 mA NA 1746-NIO4V 55 mA 115 mA NA 24 ±10% at 195 mA max. 1746-NO4I 55 mA 195 mA � (21.6 to 26.4V dc) 24 ±10% at 145 mA max. 1746-NO4V 55 mA 145 mA � (21.6 to 26.4V dc) � Required for some applications. Publication 1746-6.4 – January 1996 Quick Start 2–3 3. 3. Reference Configure the module using the DIP switches (analog inputs only). Chapter 3 Each analog input channel can be configured for either voltage or current. Locate the DIP switches on your module and set them for your application. (Installing and Wiring Your Analog Module) ON – Configures channel for current input Off – Configures channel for voltage input Current Switch 1 = Channel 0 1 23 4 1746-NI4 O Switch 2 = Channel 1 N Switch 3 = Channel 2 Switch 4 = Channel 3 Voltage Current 1746-NIO4I, NIO4V 1 2 O Switch 1 = Channel 0 N Switch 2 = Channel 1 Voltage External 24V dc Sw 1 1746-NO4I, NO4V Power Selector Backplane Publication 1746-6.4 – January 1996 2–4 Quick Start 5. 4. Reference Install your module. When selecting a slot for an analog module, position the module: Chapter 3 •in a slot away from ac or high voltage dc modules (Installing and •in the chassis closest to the bottom of the enclosure where the SLC 500 system is installed Wiring Your •away from the chassis power supply if installed in a modular system Analog Module) ATTENTION: Never install, remove, or wire modules with power applied to the chassis or ! devices wired to the module. Make sure system power is off; then insert the analog module into your 1746 chassis. In this example procedure, local slot 1 is selected. Top and Bottom Module Release(s) Card Guide Publication 1746-6.4 – January 1996 Quick Start 2–5 8. 5. Reference Wire the module. Chapter 3 Important: Follow these guidelines when wiring the module. (Installing and •Use shielded communication cable (Belden 8761) and keep length as short as Wiring Your possible. Analog Module) •Connect only one end of the cable shield to earth ground. •Channels are not isolated from each other. All analog commons are connected together internally. •The module does not provide power for analog inputs. •Use a power supply that matches the transmitter (sensor) specifications. + NI4 analog IN 0 + 0 source – 1 IN 0 – earth ANL COM 2 ground + IN 1 + 3 analog IN 1 – 4 source 5 ANL COM – earth 6 IN 2 + ground 7 IN 2 – 8 ANL COM Jumper unused 9 IN 3 + inputs. 10 IN 3 – 11 ANL COM + NIO4I & NIO4V analog 0 IN 0 + source 1 IN 0 – – earth 2 ANL COM ground 3 IN 1 + 4 Jumper unused IN 1 – inputs. 5 ANL COM 6 not used Load 7 OUT 0 8 ANL COM earth 9 not used ground Do not jumper 10 OUT 1 unused outputs. 24V dc power supply if 11 ANL COM external power is selected. NO4I & NO4V Cable length from external 24V dc power supply to analog Ext. pwr. 0 +24V dc module must be less than 10m. sup. 1 dc COM Load 0 OUT 0 1 ANL COM earth 2 OUT 1 ground 3 ANL COM 4 Load OUT 2 5 ANL COM earth 6 OUT 3 Do not jumper ground Analog commons are internally connected 7 ANL COM unused outputs. in the module. Channels are not isolated from each other. Publication 1746-6.4 – January 1996 2–6 Quick Start 9. 6. Reference Configure system I/O configuration. Chapter 4 Configure your system I/O configuration for the particular slot the analog module is in. When (Module Operation assigning an I/O module to a slot location, select the module from the displayed list. If not listed, and System select OTHER at the bottom of the list and enter the module’s ID code at the prompt. Considerations) Catalog No. Module ID Code 1746-NI4 4401 1746-NIO4I 3201 1746-NIO4V 3202 1746-NO4I 5401 1746-NO4V 5402 10. 7. Reference Check that the module is operating correctly. Chapter 5 ATTENTION: Machine motion during system (Testing Your checkout can be hazardous to personnel. During Module) ! all checkout procedures, you must disconnect all devices which, when energized, might cause machine motion. Apply power to the fixed or modular system. The analog module LED (red) should be illuminated, indicating that the module is receiving 24V dc power. Publication 1746-6.4 – January 1996 Quick Start 2–7 2. 8. Reference Understanding analog inputs. Chapter 4 (Module Operation Analog inputs convert current and voltage signals into 16-bit (max.) integer values and place them in and System the input image for the slot that the analog module resides in. Considerations) Address NI4 Address NIO4I, NIO4V I:e.0 Input Channel 0 I:e.0 Input Channel 0 I:e.1 Input Channel 1 I:e.1 Input Channel 1 I:e.2 Input Channel 2 I:e.3 Input Channel 3 e=slot number Voltage/Current Integer Range Representation –10V dc to +10V dc –32,768 to +32,767 0 to 10V dc 0 to 32,767±10V dc 0 to 5V dc 0 to 16, 384 1 to 5V dc 3,277 to 16,384 –20 mA to +20 mA –16,384 to +16,384 0 to 20 mA 0 to 16,384±20 mA 4 to 20 mA 3,277 to 16,384 2. 9. Reference Understanding analog outputs. Chapter 4 (Module Operation Analog outputs convert 16-bit integer values placed in the output image to voltage or current signals and System for the slot that the analog card is in. Considerations) Address NO4 Address NIO4I, NIO4V O:e.0 Output Channel 0 O:e.0 Output Channel 0 O:e.1 Output Channel 1 O:e.1 Output Channel 1 O:e.2 Output Channel 2 O:e.3 Output Channel 3 NO4I, NIO4I NO4V, NIO4V Decimal Representation for Decimal Representation for Current Range Voltage Range Output Word Output Word 0 to 21 mA 0 to 32,764 –10 to +10V dc –32,768 to +32,764 0 to 20 mA 0 to 31, 208 0 to 10V dc 0 to 32,764 4 to 20 mA 6,242 to 31,208 0 to 5V dc 0 to 16,384 1 to 5V dc 3,277 to 16,384 Publication 1746-6.4 – January 1996 2–8 Quick Start 10. 2. Reference Write ladder logic to process the module’s analog data. Chapter 5 Several programming examples are provided in chapter 6 that demonstrate how to scale the raw (Testing Your data from the analog card into engineering units such as psi, percent, etc. Study these examples and Module) apply them to your application as appropriate. Chapter 6 (Programming Examples) Publication 1746-6.4 – January 1996 Chapter 3 Installing and Wiring Your Analog Module To obtain the maximum performance from an analog module, proper module installation is imperative. This chapter describes the procedures that you must follow to install the analog module in an SLC 500 system. The following items are described: • European Union Directive Compliance • determining your power requirements • configuring your module • selecting a slot in the chassis • installing your module • wiring considerations – system wiring guidelines – grounding your cable – determining the cable length • wiring the analog module • minimizing electrical noise on the analog module European Union Directive If this product is installed within the European Union or EEA regions and has the CE mark, the following regulations apply. Compliance EMC Directives This product is tested to meet Council Directive 89/336/EEC Electromagnetic Compatibility (EMC) and the following standards, in whole or in part, documented in a technical construction file: • EN 50081-2 EMC – Generic Emission Standard, Part 2 – Industrial Environment • EN 50082-2 EMC – Generic Immunity Standard, Part 2 – Industrial Environment This product is intended for use in an industrial environment. Publication 1746-6.4 – January 1996 3–2 Installing and Wiring Your Analog Module Determining Your Power Analog modules require both 5V dc and 24V dc power from the Requirements for a backplane of the SLC 500 system. However, the NO4I and NO4V analog modules can use an external 24V dc power supply. This Modular Controller eliminates the 24V dc backplane power requirement, providing configuration flexibility if SLC power supply loading is critical. These two modules provide user-supplied external 24V dc power � supply connections. The following table shows the power requirements for each analog module using backplane power. Use this table to calculate the total load on the modular system power supply. For more information refer to the Installation & Operation Manual for modular controllers. Important: The analog modules do not supply loop power for the input device. You must supply the appropriate loop power for loop-powered input devices. Table 3.A Catalog Number 5 Volt Current 24 Volt Current 1746-NI4 35 mA 85 mA 1746-NIO4I 55 mA 145 mA 1746-NIO4V 55 mA 115 mA ` 1746-NO4I 55 mA 195 mA ` 1746-NO4V 55 mA 145 mA � The 24V dc user power connection on a fixed SLC 500 can power an NO4I or NO4V analog module. However, the regulation of the 24V dc user connection on a modular SLC 500 power supply, Catalog Number 1746-P1, -P2, -P4 is outside of the requirements of the NO4I and NO4V analog modules and cannot be used. ` Omit these values from your SLC power supply loading calculations if you decide to use an external power supply. Publication 1746-6.4 – January 1996 Installing and Wiring Your Analog Module 3–3 Determining Your Power The following chart provides available analog module combinations Requirements for a Fixed in the expansion chassis of a fixed controller. Controller Table 3.B NI4 NIO4I NIO4V NO4I NO4V _ IA4 • • • • ∇ • • • • IA8 ∇ IA16 • • • • ∇ • • • • IM4 ∇ IM8 • • • • ∇ • • • • IM16 ∇ OA8 • • • • ∇ ∇ OA16 ∇ ∇ OAP12 ∇ • • • • IB8 ∇ IB16 • • • • ∇ • • • • IV8 ∇ IV16 • • • • ∇ • • • • IG16 ∇ OV8 • • • • ∇ ∇ • • OV16 ∇ OB8 • • • • ∇ • • • • OG16 valid combination • ∇ ∇ OW4 • • ∇ ∇ • OW8 invalid combination ∇ ∇ OW16 ∇ valid combination when used with • • • • IO4 ∇ external power supply ∇ ∇ IO8 • • ∇ ∇ • IO12 BASIC net = Basic Module is supplying power to an AIC. No other device requiring power is connected ∇ ∇ NI4 • to the AIC. ∇ ∇ NIO4I ∇ ∇ NIO4V ∇ ∇ DCM ∇ ∇ HS • ∇ ∇ • OB16 ∇ IN16 • • • • ∇ ∇ BASIC net ∇ ∇ BASIC • • OB32 OV32 ∇ • • • • IV32 ∇ IB32 • • • • ∇ ∇ • OX8 ∇ ∇ ∇ ∇ ∇ NO4I ∇ ∇ ∇ ∇ ∇ NO4V ∇ ITB16 • • • • • • • ∇ • ITV16 ∇ IC16 • • • • ∇ ∇ • • OBP16 ∇ ∇ OVP16 • • • • • ∇ • NT4 ∇ NR4 • • • • Publication 1746-6.4 – January 1996 3–4 Installing and Wiring Your Analog Module Important: The NO4I and NO4V modules provide user supplied external 24V dc power supply connections. When the NO4I module is used in a fixed controller, you must provide an external power supply. When the NO4I or NO4V is used with an external 24V dc power supply and is placed in a fixed controller expansion chassis, it is compatible with those modules noted in the compatibility chart on � the previous page. When set for external power, the module will only draw the 5V current off the backplane. Refer to the next section for details on how to configure your module for external power. � The 24V dc user power connection on a fixed SLC 500 can power an NO4I or NO4V analog module. However, the regulation of the 24V dc user connection on a modular SLC 500 power supply, Catalog Number 1746-P1, -P2, and -P4 is outside of the requirements of the NO4I and NO4V analog modules and cannot be used. Configuring Your Module The NI4, NIO4I and NIO4V analog modules have user selectable DIP switch settings which allow you to configure the input channels as either current or voltage inputs. The switches are located on the analog module board. The following illustration shows the ON and OFF switch settings. Switch orientation is also provided on the nameplate of the module. Figure 3.1 ON – Configures channel for current input OFF – Configures channel for voltage input ATTENTION: Care should be taken to avoid connecting a voltage source to a channel configured for current input. Improper module operation or damage ! to the module can occur. Switch Settings for the 1746-NI4 The NI4 has 4 individual DIP switches that control the input mode of input channels 0 through 3. A switch in the ON position configures the channel for current input. A switch in the OFF position configures the channel for voltage input. Publication 1746-6.4 – January 1996 Installing and Wiring Your Analog Module 3–5 Figure 3.2 Current Switch 1 = Channel 0 1 2 3 4 O Switch 2 = Channel 1 N Switch 3 = Channel 2 Switch 4 = Channel 3 Voltage Switch Settings for the 1746-NIO4I and -NIO4V The NIO4I and NIO4V have 2 individual switches labeled 1 and 2. These switches control the input mode of input channel 0 and 1. A switch in the ON position configures the channel for current input. A switch in the OFF position configures the channel for voltage input. Figure 3.3 Current 12 O Switch 1 = Channel 0 N Switch 2 = Channel 1 Voltage External Power Switch for the 1746-NO4I and -NO4V The NO4I and NO4V analog output modules have an external 24V dc power switch, SW1, which gives you the option of using an � external power supply. In the UP position, power is drawn from an external power source. In the DOWN position, power is drawn from the backplane of the module. The switch is located on the analog module board. Switch orientation is also provided on the nameplate of the module. Figure 3.4 External 24V dc Sw 1 Power Selector Backplane � The 24V dc user power connection on a fixed SLC 500 can power an NO4I or NO4V analog module. However, the regulation of the 24V dc user connection on a modular SLC 500 power supply, Catalog Number 1746-P1, -P2, is outside of the requirements of the NO4I and NO4V analog modules and cannot be used. Publication 1746-6.4 – January 1996 3–6 Installing and Wiring Your Analog Module Choosing a Slot in the Two factors determine where the analog module should be located in Chassis the chassis: ambient temperature and electrical noise. Consider the following conditions when selecting a slot for an analog module. Position the module: • in a slot away from ac or high voltage dc module • in the chassis closest to the bottom of the enclosure where the SLC 500 system is installed • away from the chassis power supply if installed in a modular system Installing Your Module All modules are mounted in a single slot. Remember that in a modular system the processor always occupies the first slot of the first chassis. When installing the analog module in a chassis, it is not necessary to remove the terminal block from the module. However, if the terminal block is removed, use the write-on label located on the side of the terminal block to identify the module location and type. ATTENTION: Never install, remove, or wire modules with power applied to the chassis. Also, do not expose analog modules to surfaces or other areas ! that may typically hold an electrostatic charge. Electrostatic charges can destroy the analog circuitry. Figure 3.5 Terminal Block SLOT ____ RACK ____ MODULE _____ Publication 1746-6.4 – January 1996 Installing and Wiring Your Analog Module 3–7 Removing the Analog Module Terminal Block To remove the terminal block, grasp it on the top and bottom and pull outward and down. Important: The potentiometer sets the voltage during factory calibration to 2.5 volts. It is set and sealed at the factory and does not require any adjustments. 1. Verify that all switches are set correctly for the application. ATTENTION: Care should be taken to avoid connecting a voltage source to a channel configured for a current input. ! 2. Align the circuit board of the analog module with the card guide of the chassis (Figure 3.6). 3. Slide the module in until both top and bottom retaining clips are secured. 4. To remove the module, depress the retaining clips at the top and bottom of the module and slide the module out. Figure 3.6 Top and Bottom Module Release(s) Card Guide Publication 1746-6.4 – January 1996 3–8 Installing and Wiring Your Analog Module Wiring Considerations The following section provides system wiring guidelines, how to ground your Belden cable, and how to determine the cable length. ATTENTION: Before wiring any analog module, disconnect power from the SLC 500 system and from any other source to the analog module. ! System Wiring Guidelines Use the following guidelines in planning the system wiring for the analog modules: • all analog common terminals (ANL COM) are electrically connected inside the module. ANL COM is not connected to earth ground inside the module. • voltages on IN+ and IN– terminals must remain within ± 20 Volts with respect to ANL COM to ensure proper input channel operation. This is true for current and voltage input channel operation. • voltage outputs (OUT 0 and OUT 1) of the NIO4V and NO4V are referenced to ANL COM. Load resistance (R1) for a voltage output channel must be equal to or greater than 1K ohms. • current output channels (OUT 0 and OUT 1) of the NIO4I and NO4I source current that returns to ANL COM. Load resistance (R1) for a current output channel must remain between 0 and 500 ohms. Publication 1746-6.4 – January 1996 Installing and Wiring Your Analog Module 3–9 Grounding Your Cable Belden cable #8761 has two signal wires (black and clear), one drain wire and a foil shield. Refer to Figure 3.7. The drain wire and foil shield must be grounded at one end of the cable. Do not earth ground the drain wire and foil shield at both ends of the cable. Input Channel – Use a chassis mounting tab as a ground for the drain wire and foil shield. Output Channel – Ground the drain wire and foil shield at the analog load. Important: If you cannot ground the output channel at the load, ground the drain wire and foil shield at the chassis mounting tab. Do not connect the foil shield or drain wire to the analog terminal block. They must be connected to an earth ground, which is not provided at the analog module. Figure 3.7 Belden Cable #8761 Foil Shield Insulation Black Wire Drain Wire Clear Wire Determining the Cable Length Determine the length of cable you will need to connect a channel to its input or output device. Remember to leave additional length to route the drain wire and foil shield for earth grounding. Publication 1746-6.4 – January 1996 3–10 Installing and Wiring Your Analog Module Wiring the Analog Module After the analog module is properly installed in the chassis, use the following wiring procedure. Belden cable #8761 is recommended when wiring analog modules. This section assumes that you have properly installed the analog module. ATTENTION: Before wiring any analog module, disconnect power from the SLC 500 system and from any other source to the analog module. ! To wire your analog module follow these steps and refer to Figures 3.8 and 3.9. 1. Designate the end of the cable where the drain wire and foil shield is earth grounded as END 1. Designate the other end as END 2. 2. At each end of the cable strip some casing to expose the individual wires. 3. Trim the signal wires to 2 inch lengths. Strip about 3/16 inch (4.76mm) of insulation away to expose the end of the wire. 4. At End 1, twist the drain wire and foil shield together, bend them away from the cable, and apply shrink wrap. 5. At End 2, cut the drain wire and foil shield back to the cable and apply shrink wrap. 6. Connect the signal wires (black and clear) to the terminal block and the input and output devices. The recommended maximum torque is 5 lb.-in (0.565 NM) for all terminals. • If the foil shield and drain wire of the channel are grounded at the sourcing device, make sure End 2 of the cable is connected to the terminal block. • If the foil shield and drain wire are grounded at the chassis mounting tab, make sure End 1 is connected to the terminal block. 7. Repeat steps 1 through 6 for each channel on the analog module. Jumper the unused plus (+), minus (–) and common terminals of each input channel individually. Unused output and common terminals should be left unconnected. Publication 1746-6.4 – January 1996 Installing and Wiring Your Analog Module 3–11 Figures 3.8 and 3.9 depict the proper cable preparation for END 1 and END 2. Shrink wrap is applied to each cable end. Make sure the foil shield and drain wires on END 1 are long enough to reach their designated earth ground points. Figure 3.8 Cable Preparation END 1 Foil Shield and Drain Wire Insulation Black Wire Clear Wire Figure 3.9 END 2 Insulation Black Wire Clear Wire Publication 1746-6.4 – January 1996 3–12 Installing and Wiring Your Analog Module Labeling and Installing the The terminal block has a write-on label. Labeling the terminal block Terminal Block will help ensure that it is installed on the correct module. Figure 3.10 Terminal Block SLOT ____ RACK ____ MODULE _____ Note: The black dot on the terminal block label indicates the position of terminal 0. Once you have wired your analog module and properly labeled the terminal block, install the terminal block on the analog module. To install the terminal block: 1. Align the terminal block with the receptacle. 2. Insert the terminal block and press firmly at the top and bottom until it is properly secured. Grounding the Foil Shields You are now ready to earth ground your foil shield and drain wire from each cable. Do not connect the foil shield or drain wire to the and Drain Wires analog module terminal block. The foil shield and drain wire must be connected to earth ground, which is not available on the terminal block. Refer to Figure 3.11 for wiring diagrams of the analog modules. Publication 1746-6.4 – January 1996 Installing and Wiring Your Analog Module 3–13 Figure 3.11 Wiring Diagram (showing differential inputs) + NI4 analog IN 0 + source 0 1 IN 0 – – earth ANL COM 2 ground + IN 1 + 3 analog 4 IN 1 – source 5 ANL COM – earth 6 IN 2 + ground 7 IN 2 – Jumper unused 8 ANL COM inputs. 9 IN 3 + 10 IN 3 – 11 ANL COM + NIO4I & NIO4V analog IN 0 + 0 source IN 0 – 1 – earth 2 ANL COM ground 3 IN 1 + Jumper unused 4 IN 1 – inputs. 5 ANL COM 6 not used Load 7 OUT 0 8 ANL COM earth ground 9 not used Do not jumper 10 OUT 1 unused outputs. 11 ANL COM 24V dc power supply if NO4I & NO4V external power is selected. Cable length from external Ext. pwr. +24V dc 0 24V dc power supply to analog sup. module must be less than 10m. dc COM 1 Load OUT 0 0 1 ANL COM earth ground OUT 1 2 ANL COM 3 Load OUT 2 4 ANL COM 5 earth OUT 3 ground Do not jumper 6 unused outputs. ANL COM 7 Analog commons are internally connected in the module. Channels are not isolated from each other. Publication 1746-6.4 – January 1996 3–14 Installing and Wiring Your Analog Module Figure 3.12 Wiring Schematics for 2, 3, and 4-Wire Analog Input Devices Important: The module does not provide loop power for analog inputs. Use a power supply that matches the transmitter specifications. 2-Wire Transmitter Transmitter +– Module + Power IN + Supply – IN – ANL COM Transmitter 3-Wire Transmitter Supply Signal GND Module + Power IN + Supply – IN – ANL COM 4-Wire Transmitter Transmitter Supply Signal Module Power + + + IN + Supply – IN – – – ANL COM Publication 1746-6.4 – January 1996 Installing and Wiring Your Analog Module 3–15 Figure 3.13 Wiring Schematic for Single-ended Analog Input Connections When wiring single-ended analog input devices to the analog input card, the number of total wires necessary can be limited by using the ANALOG COMMON terminal. Note that differential inputs are more immune to noise than single-ended inputs. NI4 Transmitter Power + + Signal Supply – IN 0 + IN 0 – Transmitter ANL COM + Signal IN 1 + IN 1 – Transmitter ANL COM + Signal IN 2 + IN 2 – Transmitter ANL COM Supply Signal Ground + IN 3 + IN 3 – ANL COM Publication 1746-6.4 – January 1996 3–16 Installing and Wiring Your Analog Module Minimizing Electrical Inputs on analog modules employ digital high frequency filters that Noise on Analog Modules significantly reduce the effects of electrical noise on input signals. However, because of the variety of applications and environments where analog modules are installed and operating, it is impossible to ensure that all environmental noise will be removed by the input filters. Although it is not the purpose of this manual to address SLC 500 system procedures, several specific steps can be taken to help reduce the effects of environmental noise on analog signals: • install the SLC 500 system in a properly rated (i.e., NEMA) enclosure. Make sure that the SLC 500 system is properly grounded. • use Belden cable #8761 for wiring the analog modules making sure that the drain wire and foil shield are properly earth grounded. • route the Belden cable separate from any other wiring. Additional noise immunity can be obtained by routing the cables in grounded conduit. • group analog and low voltage dc modules away from ac I/O or high voltage dc modules. A system may malfunction due to a change in the operating environment after a period of time. We recommend periodically checking system operation, particularly when new machinery or other noise sources are installed near the SLC 500 system. For further details on system installation and startup refer to: • Modular Hardware Style Installation & Operation Manual • Fixed Hardware Style Installation & Operation Manual • Safety Guidelines for the Application, Installation Maintenance of Solid State Control – A-B Publication SGI-1.1. Publication 1746-6.4 – January 1996 Chapter 4 Module Operation and System Considerations After successfully installing your analog module, consider its operation within the SLC 500 system and in a specific application. This chapter describes: Interface between the Module and Processor • entering module ID codes • addressing analog modules • processor update of analog data • monitoring the input and output data • converting analog inputs • converting analog outputs System Considerations • safe state for outputs • retentive programming • input out-of-range detection • response to slot disable • input channel filtering Publication 1746-6.4 – January 1996 4–2 Module Operation and System Considerations Interface between the This section describes how to set up an analog module in a SLC 500 Module and the Processor system. Entering Module ID Codes When configuring an analog module for an SLC 500 system using your programming software, a list of the different I/O modules, including the analog modules, is most likely provided for you. If a list is not provided, you need to enter the module identification code when configuring the slot. Refer to the table below for the appropriate analog module ID code. Using the Hand-Held Terminal (HHT) firmware v1.1, enter the proper MODULE ID CODE under the “other” selection. Version 2.0 or later of the HHT firmware provides a list of I/O modules. Refer to the following publications for complete information: • your programming software’s user manual • the Hand-Held Terminal User Manual Table 4.A Catalog No. Module ID Code 1746-NI4 4401 1746-NIO4I 3201 1746-NIO4V 3202 1746-NO4I 5401 1746-NO4V 5402 Addressing Analog Modules NI4 – Each input channel of the NI4 is addressed as a single word in the input image table. The NI4 uses a total of 4 words in the input image table. The converted values from channels 0 through 3 are addressed as input words 0 through 3 respectively for the slot where the module resides. Example – If you want to address input channel 2 of the NI4 in slot 4, you would address it as input word 2 in slot 4 (I:4.2). NIO4I and NIO4V – Each input channel of the NIO4I and NIO4V is addressed as a single word in the input image table and each output channel of the module is addressed as a single word in the output image table. Both the NIO4I and NIO4V use a total of 2 input words and 2 output words. The converted input values from input channels 0 and 1 are addressed as words 0 and 1 of the slot where the module resides. The output values for the output channels 0 and 1 are addressed as output words 0 and 1 of the slot where the module resides. Publication 1746-6.4 – January 1996 Module Operation and System Considerations 4–3 Example – If you want to address output channel 0 of the NIO4I in slot 3, you would address it as output word 0 in slot 3 (O:3.0). NO4I and NO4V – Each output channel of the NO4I and NO4V is addressed as a single word in the output image table. Both modules use a total of 4 output words. The converted output values from output channels 0 through 3 are addressed as words 0 through 3 respectively for the slot where the module resides. Example – If you want to address output channel 3 of the NO4I in slot 3, you would address it as output word 3 in slot 3 (O:3.3). Publication 1746-6.4 – January 1996 4–4 Module Operation and System Considerations Figure 4.1 shows I/O addressing for the analog modules. Figure 4.1 Addressing your Module SLC 500 SLC 5/01 or 5/02 Data Files Output Image Address 1746-NI4 Analog Input Module Input Input Channel 0 Word 0 I:e.0 Image Input Input Input Channel 1 Word 1 I:e.1 Image Scan Slot e 4 words Input Channel 2 Word 2 I:e.2 Input Channel 3 Word 3 I:e.3 Bit 15 Bit 0 1746-NIO4I & NIO4V SLC 500 Analog Combination Modules SLC 5/01 or 5/02 Address Data Files Output Output Channel 0 Word 0 O:e.0 Output Image 2 Slot e Scan words Output Channel 1 Word 1 O:e.1 Output Image Bit 15 Bit 0 Input Input Slot e Input Channel 0 Word 0 I:e.0 Scan Image 2 Input words Input Channel 1 Word 1 I:e.1 Image Bit 15 Bit 0 1746-NO4I & NO4V SLC 500 Address Analog Output Modules SLC 5/01 or 5/02 Data Files Output Channel 0 Word 0 O:e.0 Output Output Slot e Output Channel 1 Word 1 O:e.1 Image Scan 4 words Output Output Channel 2 Word 2 O:e.2 Image Output Channel 3 Word 3 O:e.3 Input Bit 15 Bit 0 Image e = slot # of module Publication 1746-6.4 – January 1996 Module Operation and System Considerations 4–5 Bit Level Addressing The following bit maps show bit level addressing for the analog inputs and outputs. The input channel converter resolution is 16 bits, or 1 word. The output channel converter resolution is 14 bits and is loaded from the most significant 14 bits of the associated output word. The two least significant bits (O:e.0/0 and O:e.0/1) of the output word have no effect on the actual output value. Figure 4.2 1746-NI4 msb lsb CH 0 INPUT I:e.0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 CH 1 INPUT I:e.1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 CH 2 INPUT I:e.2 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 CH 3 INPUT I:e.3 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 1746-NIO4I & NIO4V msb lsb XX CH 0 OUTPUT O:e.0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 CH 1 OUTPUT XX O:e.1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 msb lsb CH 0 INPUT I:e.0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 CH 1 INPUT I:e.1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 1746-NO4I & NO4V msb lsb XX CH 0 OUTPUT O:e.0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 X X CH 1 OUTPUT O:e.1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 XX CH 2 OUTPUT O:e.2 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 X X CH 3 OUTPUT O:e.3 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 e = slot # of module x = bit not used Publication 1746-6.4 – January 1996 4–6 Module Operation and System Considerations Processor Update of Analog Data The analog input and output data is updated by the processor once during each scan of the user program. The table below shows typical analog update scan times and the number of input and output bits for the specified modules. If an application requires processor updates of the analog data more frequently than once per scan, use an Immediate Input or an Immediate Output instruction. An Immediate Input or Output instruction typically updates 16 bits (or 1 analog channel) in 1 millisecond. Refer to your programming software’s user manual or Hand-Held Terminal User Manual for more information. Table 4.B Typical Time for Analog Data Updates to the Processor’s Input and Output Image Once per processor scan 10 milliseconds for typical (Automatic) 1K program Using immediate Input or Output 1 millisecond per analog Instruction channel Table 4.C Number of Input and Output Bits Representing Analog Data Description Input Bits Output Bits NI4 64 – NI4OI and NIO4V (2 input and 2 Output 32 32 channels) NO4I and NO4V – 64 Monitoring the Input and Output Data The analog input and output data can be monitored in several different radices using your programming software. Viewing the radix as decimal allows the analog input and output data to be viewed as decimal representations of integer words. When monitoring in binary radix, data is viewed in two’s complement representation for negative values. A description of two’s complement data is available in Appendix B. If you are using the Hand-Held Terminal (HHT) or the Data Table Access Module (DTAM) to monitor input and output data, the binary radix is the only available option. To view the analog input and output data in decimal radix, the data must be moved to an integer data file. Publication 1746-6.4 – January 1996 Module Operation and System Considerations 4–7 Converting Analog Input Data Analog inputs convert current and voltage signals into 16 bit two’s complement binary values. The table below identifies the current and voltage input ranges for the input channels, the number of significant bits for the applications using input ranges less than full scale, and their resolution Table 4.D Voltage/Current Range Decimal Number of Significant Resolution per Representation Bits LSB –10V dc to +10V dc – –32,768 to +32,767 16 bits 1LSB 0 to 10V dc – 1LSB 0 to 32,767 15 bits 305.176 305.176 μ μV V 0 to 5V dc 0 to 16,384 14 bits 1 to 5V dc 3,277 to 16,384 13.67 bits –20 mA to +20 mA –16,384 to +16,384 15 bits 0 to +20 mA 0 to 16,384 14 bits 1.22070 μ μA 3,277 to 16,384 13.67 bits 4 to +20 mA To determine an approximate voltage that an input value represents, use one of the following equations: 10V � � input value = input voltage(V) 32,768 � The Input Value is the decimal value of the word in the input image for the corresponding analog input. For example, if an input value of –16,021 is in the input image, the calculated input voltage is: 10V � –16,201 = –4.889221(V) 32,768 It should be noted that this is the calculated value. The actual value may vary within the accuracy limitations of the module. To determine an approximate current that an input value represents, you can use the following equation: 20 mA` � input value = input current (mA) 16,384 ` The Input Value is the decimal value of the word in the input image for the corresponding analog input. For example, if an input value of 4096 is in the input image, the calculated input current is: 20 mA � 4096 = 5(mA) 16,384 It should be noted that this is the calculated value. The actual value may vary within the accuracy limitations of the module. Publication 1746-6.4 – January 1996 4–8 Module Operation and System Considerations Converting Analog Output Data Analog outputs convert a 16 bit two’s complement binary value into an analog output signal. Because the analog output channels have a 14 bit converter, the 14 most significant bits of this 16 bit number are the bits that the output channel converts. The NIO4I and NO4I support two and four current outputs respectively, ranging from 0 mA to a maximum of 21 mA. The NIO4V and NO4V support two and four voltage outputs respectively, ranging from –10 to +10 Volts dc. The following tables identify the current and voltage output ranges for the output channels, the number of significant bits for the applications using output ranges less than full scale, and their resolution. Table 4.E Analog Output Conversion NIO4I and NO4I Current Range Decimal Number of Resolution per Representation for Significant Bits LSB Output Word 0 to 21 mA – 1LSB 0 to +32,764 13 bits 0 to +20 mA 0 to +31,208 12.92 bits 2.56348 2.56348 μ μA A 4 to +20 mA 6,242 to +31,208 12.6 bits Table 4.F Analog Output Conversion NIO4V and NO4V Voltage Range Decimal Number of Resolution per LSB Representation for Significant Output Word Bits –10 to +10V dc –32,768 to +32,764 14 bits – 1LSB 0 to +10V dc 0 to +32,764 13 bits 1.22070 mV – 1LSB 0 to 5V dc 0 to +16,384 12 bits 1 to 5V dc +3,277 to +16,384 11.67 bits Publication 1746-6.4 – January 1996 Module Operation and System Considerations 4–9 Use the following equation to determine the decimal value for the current output: 32,768 � Desired Current Output (mA) = Output Decimal Value 21 mA For example, if an output value of 4 mA is desired, the value to be put in the corresponding word in the output image can be calculated as follows: 32,768 � 4 mA = 6242 21 mA Note: The actual resolution for analog current outputs is 2.56348 μA per LSB, where the LSB position in the output word is indicated as: LSB XX 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 X = Bit Not Used Use the following equation to determine the decimal value for the voltage output: 32,768 � Desired Voltage Output (V dc) = Output Decimal Value 10V dc For example, if an output value of 1V dc is desired, the value to be put in the corresponding word in the output image can be calculated as follows: 32,768 � 1V dc = 3277 10V dc Note: The actual resolution for analog voltage outputs is 1.22070 mV per LSB, where the LSB position in the output word is indicated as: LSB XX 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 X = Bit Not Used Publication 1746-6.4 – January 1996 4–10 Module Operation and System Considerations System Considerations This section describes the system considerations for an analog module. These include: • safe state for outputs • retentive programming • input out-of-range detection • response to slot disable • input channel filtering Safe State for Outputs Whenever an SLC 500 system is NOT in the RUN mode, the outputs on the analog module are automatically forced to 0 Volts or 0 milliamps by the SLC 500 system. This occurs when the processor is in the: • FAULT mode • PROGRAM mode • TEST mode ATTENTION: When designing and installing the SLC 500 system, devices connected to the analog module output channels must be placed into a safe state ! whenever the analog output is 0 volts or 0 milliamps (± the offset error). Retentive Programming Option This section describes the affects of a processor mode change on analog outputs. The following information applies to the 1746-NIO4I, NIO4V, NO4I and NO4V analog modules. This programming option allows you to retain analog data in the Input and Output Image tables when the SLC 500 processor: • transitions from RUN-PROGRAM-RUN mode OR • when power is turned OFF and reapplied In both cases, when power is reapplied, the data is transferred to the module whether the programming rung is true or false. If an SLC 500 system detects a fault condition, the analog outputs reset to zero. The data in the Output Image table is retained during the fault. Once the fault condition is corrected and the major fault bit in the processor is cleared, the retained data is sent to the analog output channels. If you choose not to use the retentive programming option, retained data is not sent to the output channels. Publication 1746-6.4 – January 1996 Module Operation and System Considerations 4–11 The following section provides example program options for retentive data and non-retentive data. Retentive Analog Output Example If a modular system is configured with the CPU in slot 0, a discrete I/O module in slot 1, and an analog output module in slot 2 the following ladder logic rung can be programmed. MOV I1:1.0/0 MOVE ] [ Source 32767 Dest O0:2.0 When bit 0 of the discrete I/O module turns ON, the rung is true and the value 32767 is moved into the Output Image table location that corresponds with analog output channel 0 in slot 2. At the end of the scan, this value is transferred to the module where it is converted to the appropriate voltage or current (depending on the type of module used). If on the next program scan the rung becomes false, the MOVE of the value of 32767 to the Output Image table does not occur. Unless another rung is added to transfer data to the Output Image based on this rung being false, the previous data is retained. That is, the value 32767 remains in the Output Image table and is transferred to the analog module at the end of subsequent program scans until changed by the user program. Non-Retentive Analog Output Example The following example shows a non-retentive program during a program execution and for a mode change or power cycle. MOV I1:1.0/0 MOVE ] [ Source 32767 Dest O0:2.0 MOV I1:1.0/0 MOVE ] [ / Source 0 Dest O0:2.0 Publication 1746-6.4 – January 1996 4–12 Module Operation and System Considerations In the above example, as long as discrete input 0 is ON, the value 32767 is transferred to analog output channel 0. If discrete input 0 turns OFF, the value 0 is transferred to analog output channel 0. During a Mode Change or Power Cycle The first pass bit in the Status File is used to initialize the analog output following a power up in the RUN mode or entry into the RUN or TEST mode. The address of the First Pass bit is S2:1/15. When this bit is ON, the first pass of the program scan is taking place. Therefore, the following ladder rung can be programmed to always clear the analog output channel during the first program scan. MOV S2:1/15 MOVE ] [ Source 0 Dest O0:2.0 Input Out-of-Range Detection Analog modules do not provide an input out-of-range signal to the processor. However, if this feature is critical to a specific application, you can program the processor to provide this function. The following program applies to all SLC 500 processors. The program shows two compare instructions that check for analog input values which exceed low and high limits respectively. For this example, the analog input value is in word 1 of slot 1 (I1:1.1). Whenever the input value exceeds a limit, this program latches a binary variable in memory that could serve as an alarm indication at some other point in the program. Publication 1746-6.4 – January 1996 Module Operation and System Considerations 4–13 B3/0 Turn OFF (U) Alarm LES B3/0 Turn ON Alarm, Low Limit LESS THAN (L) Exceeded Source A I1:1.1 Source B 0 GRT B3/0 Turn ON Alarm, High Limit GREATER THAN (L) Exceeded Source A I1:1.1 Source B 16,384 Remainder of Program END The second program is for SLC 5/02 processors. This program uses the Limit Test instruction that checks both low and high limits in a single instruction. This instruction assumes that the analog input value is in word 1 of slot 1 (I1:1.1). As in the above program, whenever the input value exceeds a limit, this program latches a binary variable in memory which could serve as an alarm indication at some other point in the program. B3/0 Turn OFF (U) Alarm LIM B3/0 LIMIT TEST (CIRC) Turn ON Alarm, (L) Low Lim 16,385 Limit Exceeded Test I1:1.1 High Lim –1 Remainder of Program END Publication 1746-6.4 – January 1996 4–14 Module Operation and System Considerations Response to Slot Disable You have the ability to disable any slot in the chassis using the processor. Before disabling any slot containing an analog module, it is important to consider how the analog module will respond when the slot is disabled. ATTENTION: Make sure that the implications of disabling an analog module slot are clearly understood before utilizing this feature. ! The response to slot disable for inputs and outputs is the same for all the analog modules. Input Response to Slot Disable The module continues to update the input values to the processor. However, the processor does not read inputs from a module that is disabled. Therefore, when the processor disables the analog module slot, the module inputs appearing in the processor image table remain in their last state. When the processor re-enables the analog module slot, the current state of the module inputs are received by the processor during the subsequent scan. Output Response to Slot Disable The processor may change the analog module output data as it appears in the processor image table. However, this data is not transferred to the analog module. Instead, the analog module holds its outputs in their last state. When the slot is re-enabled, the data that appears in the processor image table is transferred to the analog module on the subsequent scan. Publication 1746-6.4 – January 1996 Module Operation and System Considerations 4–15 Input Channel Filtering The input channels for all of the analog modules incorporate extensive on board signal conditioning. The purpose of this conditioning is to reject the high frequency noise that can couple into an analog input signal while passing the normal variations of the input signal. The conditioning is performed by passing the input signal through a 6 pole Gaussian digital filter. The sharp cut-off of this filter is demonstrated in the frequency response plot, Figure 4.3. Frequency components of the input signal at or below the filter corner frequency of 10 Hz are passed with under 3 dB of attenuation. This pass band allows the normal variation of sensor inputs such as temperature, pressure and flow transducers to be input data to the processor. Noise signals coupled in at frequencies above the 10 Hz pass band is sharply rejected. An area of particular concern is the 50/60 Hz region, where pick up from power lines can occur. From the frequency response diagram, you see that a 60 Hz signal on the plus (+) input with respect to the minus (–) input is attenuated by over 55 dB (60 Hz normal mode rejection). If power line noise is coupling into the input signal through the input cable, the proper use of differential inputs reduces the effect of noise. With differential inputs, noise couples into both the plus (+) and minus (– ) inputs where it is attenuated by over 105 dB (60 Hz common mode rejection). The affect of the filter with respect to time can be seen by examining the step response of the input channel. Figure 4.4 shows the response of the input value versus time when a step change is made in the voltage or current at the input terminal. The response of the filter demonstrates no overshoot and rapid settling time. The input value settles to within 95% of the final value in 60 milliseconds, independent of the input magnitude. Example – If the input instantaneously changes from 0 to 10 volts, the value converted by the analog module after 60 milliseconds is 9.5 volts. Within this time the analog module updates the input data value in memory with an intermediate response every 512 microseconds. Publication 1746-6.4 – January 1996 4–16 Module Operation and System Considerations Figure 4.3 Input Channel Frequency Response 20 0 –20 –40 –60 –80 –100 –120 –140 1 10 100 1000 Frequency in Hz Figure 4.4 Input Channel Step Response 100 95 80 60 40 20 0 0 40 60 80 120 Time (ms) Publication 1746-6.4 – January 1996 Output Amplitude in dB Percentage (%) of Final Value Chapter 5 Testing Your Module The purpose of this chapter is to help you isolate problems in a systematic and controlled manner before beginning normal system operation. Testing the SLC 500 If your analog module is installed in the expansion chassis of a fixed System system, test your system using the procedures described in the Fixed Hardware Style Installation & Operation Manual before executing the analog module start up procedures. If your analog module is installed in a modular system, test the modular system using the procedures described in the Modular Hardware Style Installation & Operation Manual before executing the analog module start up procedures. Start-up Procedures Once you have tested your SLC 500 system, follow the steps below in sequence to test your analog module: 1. Inspect the analog module. 2. Disconnect prime movers. 3. Power up the SLC 500 system. 4. Test the analog inputs. 5. Test the analog outputs. 6. Start up the system. Publication 1746-6.4 – January 1996 5–2 Testing Your Module Inspect the Analog Module Problems can be prevented by inspecting the analog module before installing it in the SLC 500 system. Inspection should include the following steps: 1. Make sure that all voltage/current mode selection DIP switches are set properly (inputs only). 2. Make sure that all analog module wiring connections are correct and that there are no missing or broken wires. Check the tightness of all terminals to make certain wires are secure. ATTENTION: Care should be taken to avoid connecting a voltage source to a channel configured for a current input. Improper module operation or damage ! to the module can occur. 3. Make sure that the shield for the cable used to wire the analog module is properly grounded. Refer to chapter 3 for additional information. ATTENTION: Do not connect the Belden #8761 foil shield and drain wire to the analog module terminal block. The foil shield and drain wire must be ! connected to earth ground, which is not available on the analog module terminal block. 4. Make certain that the removable terminal block on the analog module is secured on the module. Disconnect Prime Movers (Motion Devices) During the following test procedures the processor is energized. As a safety precaution, make sure that machine motion does not occur. To achieve this: Disconnect the motor wires at the motor starter or the motor itself. This allows you to test the operation of the starter coil, verifying that your output circuit is wired correctly and functioning. To disconnect a solenoid, disengage the valve, leaving the coil connected. Publication 1746-6.4 – January 1996 Testing Your Module 5–3 In some instances, you may not be able to disconnect a device the preferred way. In these cases, open the output circuit at a point as close as possible to the motion-causing device. For example, your output might be a relay coil which in turn energizes a motor starter. If you cannot disconnect the motor wires, open the circuit at a point between the motor starter and the relay contact. ATTENTION: Machine motion during system checkout can be hazardous to personnel. During all checkout procedures, you must disconnect all devices ! which, when energized, might cause machine motion. Power Up the SLC 500 System Apply power to the fixed or modular system. The analog module LED (red) should be illuminated, indicating that the module is receiving 24V dc power. While an illuminated analog module LED does not ensure that the module is operating properly, a non-illuminated LED indicates that the analog module is not functional. Do not continue with the test procedures until the LED is illuminated. The four most probable causes of a non-illuminated LED are: • The SLC 500 system is not receiving power from its power supply. Check the POWER LED on the fixed system unit or the power supply on the modular system. If the LED is not illuminated, refer to the Fixed Hardware Style Installation & Operation Manual or the Modular Hardware Style Installation & Operation Manual. If the module is a 1746- NO4I or NO4V, check the state of the optional 24V dc power switch. If external power is selected, but not connected to the front of the module, the power LED will not illuminate. • The power from the supply is not being received by the remainder of the SLC 500 system. You can test this by attempting to go online with the programming device. • The slot in the chassis where the analog module is located is not operational. Remove the power from the SLC 500 system, move the analog module to another slot and restore power. If it appears that the slot is defective, replace the chassis. • The analog module is defective. Publication 1746-6.4 – January 1996 5–4 Testing Your Module Testing Analog Inputs Before testing the analog module input channels, the SLC 500 system must be installed and tested according to the SLC 500 Fixed or Modular Style Installation & Operation Manual. The processor must be connected to a programming device, properly configured, and must have no rungs in its ladder program. The analog module LED must also be illuminated. ATTENTION: The procedure described in this section for testing analog module input channels assumes that all I/O module outputs that normally ! activate prime movers or other potentially dangerous devices have been disconnected from these devices. Do not attempt to test the analog module input channels unless prime movers and/or other potentially dangerous devices are disconnected from the I/O modules. The devices connected to the analog module input channels are referred to as “sensors.” If the sensors can be manually varied over their normal operating range, use these devices to test the analog module input channels. If the sensors cannot be manually varied, a voltage source or current source is necessary to test the input channels. In this case, disconnect the analog module input channels at the sensor to test the terminal block wiring. The following steps apply to either test procedure. Important: The following procedure does not ensure that the input mode DIP switch is properly configured. Visually inspect the input mode DIP switch before installing the analog module in the chassis. ATTENTION: Care should be taken to avoid connecting a voltage source to a channel configured for a current input. Improper module operation or damage ! to the module can occur. Publication 1746-6.4 – January 1996 Testing Your Module 5–5 To test the analog inputs follow these steps: 1. Determine the boundary conditions for the analog module input channel. For example, if the input channel is connected to a sensor that has an output range of 1 mA to 5 mA, the boundary conditions would be 1 mA (lower) and 5 mA (upper). 2. Using the formulas from page 4–7, calculate the input decimal values that should appear in the processor image table when the boundary conditions are present on the analog module input channel. For example, if 1 mA and 5 mA are boundary conditions, the decimal values would be 819 and 4096. 3. Assuming that the programming device is on-line with the processor, select the test mode and continuous scan mode function. 4. Display the data in File 1 (Input Image Table). 5. Change the radix of the display to decimal. 6. If the input channel of the module has been disconnected from its sensor, attach a voltage source (voltage input) or current source (current input) to the input and set the source to the lower boundary condition. If the input channel is connected to its sensor, set the sensor to its lower boundary condition. 7. Locate the input channel image data in the image table. The input image word for the input channel being tested should read approximately the lower boundary calculated in step 2. The exact value of the image word is affected by the accuracy of the analog module and the input sensor. Ensure that the deviation from the boundary value is within tolerances for the analog application. 8. If the input channel has been disconnected from its sensor, attach the voltage source (voltage input) or current source (current input) to the input and set the source to the upper boundary condition. If the input channel is connected to its sensor, set the sensor to its upper boundary condition. 9. Repeat step 7 for the upper boundary condition. 10. Repeat steps 1 through 8 for the remaining analog inputs. Publication 1746-6.4 – January 1996 5–6 Testing Your Module 11. If any of the analog input channels do not pass the start-up procedure, check for the following potential causes: • The processor is not in the TEST/CONTINUOUS scan mode. • The terminal block is not secured on the analog module. • The analog module terminal block is not wired properly or wires are broken. See chapter 3 for details on wiring the analog module. • The analog module input channel sensor (or test voltage or current source) is not operating properly. If a current source is not available to test a current input channel, a test voltage can be applied to the current input channel to achieve the input boundary conditions. In normal operation, a voltage source should not be connected to an analog input channel in the current mode. To determine the boundary conditions use the following equation: Voltage Input (V) = Current Input (mA) x 0.25 Example – If the current input boundary conditions are 1 mA and 5 mA, the boundary conditions in volts would be 0.25 volts and 1.25 volts. If this calculation is done correctly, the test voltage should never exceed 5 volts. Testing Analog Outputs Before testing the analog module output channels, the SLC 500 system must be installed and tested according to the SLC 500 Fixed or Modular Style Installation & Operation Manual. The processor must be connected to a programming device, properly configured, and must have no rungs in its ladder program. The analog module LED must be illuminated. ATTENTION: The procedure described in this section for testing analog module output channels assumes that all I/O module outputs that normally ! activate prime movers or other potentially dangerous devices have been disconnected from these devices. Do not attempt to test the analog module output channels unless prime movers and/or other potentially dangerous devices are disconnected from the I/O modules. The devices connected directly to the analog module outputs are referred to as “actuators.” If the actuators do not affect prime movers or initiate any other potentially dangerous operation, use these devices to test the outputs. Publication 1746-6.4 – January 1996 Testing Your Module 5–7 If the actuators affect prime movers or initiate a potentially dangerous operation, use a voltmeter to test the voltage outputs and an ammeter to test the current outputs. Note that these meters have some inherent error of their own. In the latter case, disconnect actuators at the analog module outputs to test the terminal blocks. The following procedure applies to either of the previous situations. 1. Determine the boundary conditions for the analog module output channel. For example, if the output channel is connected to an actuator that has an input range of 1 volt to 5 volts, the boundary conditions are 1 volt (lower) and 5 volts (upper). 2. Using the formulas from page 4–9, calculate the output decimal values that must be entered into the processor image table to produce the analog module output channel boundary conditions determined in step 1. For example, if 1 volt and 5 volts are boundary conditions, the decimal values would be 3277 and 16384. 3. Create and save the test rung shown below. MOV MOVE Source N7:0 Dest O:e.x “e” is the slot number of the analog module “x” is the number of the analog module output channel being tested 4. Download the program to the processor and enter the RUN mode. 5. Display the data in address N7:0. 6. Enter lower boundary condition value in N7:0. For example, if the lower boundary condition is 1 volt, enter 3277 into N7:0. 7. If the output channel has not been disconnected from its actuator, the actuator should assume its lower boundary condition. If the output channel has been disconnected from its actuator, connect either the ammeter (current output) or voltmeter (voltage output) to the analog module output channel. The exact value of the meter reading is affected by the accuracy of the analog module and the meter. Ensure that the deviation from the lower boundary condition is within tolerances for the application in which the analog module is used. For example, if 1 volt was the lower boundary condition, the voltmeter should read approximately 1 volt. Publication 1746-6.4 – January 1996 5–8 Testing Your Module 8. Enter upper boundary condition value in N7:0. For example, if the upper boundary condition is 5 volts, enter 16384 into N7:0. 9. Repeat step 7 for the upper boundary condition. 10. Repeat steps 1 through 9 for each output channel. 11. If any of the output channels do not pass the start-up procedure, check for the following potential causes: • The processor is not in the RUN mode. • The terminal block is not secured in the analog module. • The analog module terminal block is not wired properly or wires are broken. See chapter 3 for details on wiring the analog module. • The actuator or test ammeter/voltmeter is not operating properly. Publication 1746-6.4 – January 1996 Chapter 6 Programming Examples This chapter shows several programming examples that provide additional capabilities such as: • Addressing, Out-of-Range Detection, and Scaling of Analog Inputs • Addressing and Scaling of Analog Outputs • Scaling Offsets when > 32,767 or < –32,768 • Scaling and Range Checking of Analog Inputs and Outputs Important: The programming examples in this chapter are for informational purposes only. Because of the many variables and requirements associated with any application, the Allen-Bradley Company cannot assume responsibility or liability for actual use based on these examples. Addressing, Out-of-Range The following example uses an NI4 analog input module to show input addressing, range checking and scaling of analog inputs into Detection, and Scaling of engineering units. Analog Inputs We are making the following assumptions: • The NI4 is located in slot 3 of a modular system. • A temperature transducer with a 0 to 10V dc output is wired to the second input channel on the analog module. • The transducer voltage signal is proportional to a range of 100° C to 500° C (212° F to 932° F). • The process temperature must stay between 275° and 300° C (527° F to 572° F). If the temperature deviates from this range, a flag is set and this out-of-range value is not processed. The data is presented in degrees C for monitoring and display purposes. Publication 1746-6.4 – January 1996 6–2 Programming Examples The scaling operation is displayed in the following graph. It displays the linear relationship between the input and the resulting scaled values. Figure 6.1 500°C (Scaled max.) Scaled Value 300°C Process operating range 275°C 100°C (Scaled min.) 0=0V dc Low High 32767 = 10V dc – 1 LSB (input min.) Limit Limit (input max.) Input Value Calculating the Linear Relationship Use the following equations to express the linear relationship between the input value and the resulting scaled value. Scaled value = (input value x slope) + offset Slope = (scaled max. – scaled min.) / (input max. – input min.) (500 – 100) / (32,767 – 0) = 400/32,767 Offset = scaled min. – (input min. x slope) 100 – (0 x (400/32,767)) = 100 Scaled value = (input value x (400 / 32767)) + 100 Publication 1746-6.4 – January 1996 Programming Examples 6–3 Calculating the Out-of-Range Flag Using the Scale Instruction Use the following equation to calculate the low and high limit input values which determine the out-of-range flag. Input value = (scaled value – offset) / slope low limit (275 – 100) / (400/32,767) = 14,344 high limit (300 – 100) / (400/32,767) = 16,393 Once you have calculated the linear relationship and the out-of-range flag value, this example allows you to: • Turn on a heater or fan to maintain the process temperature between 275° and 300° C by using the out-of-range flags. • Monitor the process temperature using a Data Table Access Module (DTAM) or Hand-Held Terminal (HHT). • Output the process temperature for operation interface purposes by: – MOVing the scaled value to an output module as variable data to a Dataliner – Converting the scaled value to BCD (using TOD instruction) and MOVing it to an LED display The following ladder diagrams show how to program the processor. The first example uses standard math instructions available in any SLC 500 processor. The ladder diagram prevents a processor fault by unlatching the mathematical overflow bit S2:5/0 before the end of the scan. � The second example uses the scaling instruction (SCL) available in the 5/02 and higher processors. The rate parameter is calculated by multiplying the slope by 10,000. rate = (400/32767) x 10,000 = 122 The third example uses the SCP (scale with parameters) instruction available in the SLC 5/03 (OS302 or later) and SLC 5/04 (OS401 or later) only. � If the result of the Source times the Rate, divided by 10000 is greater than 32767, the SCL instruction overflows, causing error 0020 (Minor Error Bit), and places 32767 in the Destination. This occurs regardless of the current offset. For an alternate method, see page 6–14. Publication 1746-6.4 – January 1996 6–4 Programming Examples Using Standard Math Rung 2:0 Check for below allowable range | Below | | range flag | | +LES–––––––––––––––+ B3 | |–+LESS THAN +–––––––––––––––––––––––––––––––––––––––––––––––––( )–––––| | |Source A I:1.1| 0 | | | | | | |Source B 14344| | | | | | | +––––––––––––––––––+ | Rung 2:1 Check for above allowable range | Above | | range flag | | +GRT–––––––––––––––+ B3 | |–+GREATER THAN +–––––––––––––––––––––––––––––––––––––––––––––––––( )–––––| | |Source A I:1.1| 1 | | | | | | |Source B 16383| | | | | | | +––––––––––––––––––+ | Rung 2:2 Turn on the below range alarm output when analog input is below acceptible range | Below | Below | | range flag| range alarm | | B3 O:2 | |––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––| | 0 0 | Rung 2:3 Turn on the above range alarm output when analog input is above acceptible range | Above | Above | | range flag| range alarm | | | | | B3 O:2 | |––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––| | 1 1 | Ladder logic continued on the next page. Publication 1746-6.4 – January 1996 Programming Examples 6–5 Rung 2:4 Scale the analog input value and process the result only when it is within the acceptible range | Below |Above Multiply | | range flag|range flag by the | | scaled range | | | | B3 B3 +MUL–––––––––––––––+ | |––––]/[––––––––]/[–––––––––––––––––––––––––––––––––––+–+MULTIPLY +–+–| | 0 1 | |Source A I:1.1| | | | | | | | | | | |Source B 400| | | | | | | | | | | |Dest N7:0| | | | | | 0| | | | | +––––––––––––––––––+ | | | | | | | | Divide | | | | result by | | | | input | | | | range | | | | +DDV–––––––––––––––+ | | | +–+DOUBLE DIVIDE +–+ | | | |Source 32767| | | | | | | | | | | |Dest N7:0| | | | | | 0| | | | | +––––––––––––––––––+ | | | | Add offset | | | | (N7:0 cont | | | | ains proce | | | | ss tempera | | | | ture) | | | | +ADD–––––––––––––––+ | | | +–+ADD +–+ | | | |Source A N7:0| | | | | | 0| | | | | |Source B 100| | | | | | | | | | | |Dest N7:0| | | | | | 0| | | | | +––––––––––––––––––+ | | | | | | Clear flt | | | | bit from | | | | overflow | | | | S:5 | | | +––––(U)–––––––––––––––+ | | 0 | Rung 2:5 | | |–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––| | | Publication 1746-6.4 – January 1996 6–6 Programming Examples Using the Scale (SCL) Instruction Rung 2:0 Check for below allowable range. | Below | | range flag | | +LES–––––––––––––––+ B3 | |–+LESS THAN +–––––––––––––––––––––––––––––––––––––––––––––––––( )–––––| | |Source A I:1.1| 0 | | | 0| | | |Source B 14344| | | | | | | +––––––––––––––––––+ | Rung 2:1 Check for above allowable range. | Above | | range flag | | +GRT–––––––––––––––+ B3 | |–+GREATER THAN +–––––––––––––––––––––––––––––––––––––––––––––––––( )–––––| | |Source A I:1.1| 1 | | | 0| | | |Source B 16383| | | | | | | +––––––––––––––––––+ | Rung 2:2 Turn on the below range alarm output when the analog input is below the acceptible range. | Below Below | | range flag range alarm | | B3 O:2 | |––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )––| | 0 0 | Rung 2:3 Turn on the above range alarm output when the analog input is above the acceptible range. | Above Above | | range flag range alarm | | B3 O:2 | |––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )––| | 1 1 | Rung 2:4 Scale analog input value and process the result only when it is within acceptible range. | Below |Above Scale | | range flag |range flag analog input | | B3 B3 +SCL–––––––––––––––+ | |––––]/[––––––––]/[–––––––––––––––––––––––––––––––––––––––+SCALE +–| | 0 1 |Source I:1.1| | | (2:0) (2:1) | 0| | | |Rate [/10000] 122| | | | | | | |Offset 100| | | | | | | |Dest N7:0| | | | 0| | | +––––––––––––––––––+ | | | Rung 2:5 | | |–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––| | | Publication 1746-6.4 – January 1996 Programming Examples 6–7 Using Scale with Parameters (SCP) Instruction Rung 2:0 Check for below allowable range. | Below | | range flag | | +LES–––––––––––––––+ B3 | |–+LESS THAN +–––––––––––––––––––––––––––––––––––––––––––––––––( )–––––| | |Source A I:1.1| 0 | | | 0| | | |Source B 14344| | | | | | | +––––––––––––––––––+ | Rung 2:1 Check for above allowable range. | Above | | range flag | | +GRT–––––––––––––––+ B3 | |–+GREATER THAN +–––––––––––––––––––––––––––––––––––––––––––––––––( )–––––| | |Source A I:1.1| 1 | | | 0| | | |Source B 16383| | | | | | | +––––––––––––––––––+ | Rung 2:2 Turn on the below range alarm output when the analog input is below the acceptible range. | Below Below | | range flag range alarm | | B3 O:2 | |––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )––| | 0 0 | Rung 2:3 Turn on the above range alarm output when the analog input is above the acceptible range. | Above Above | | range flag range alarm | | B3 O:2 | |––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )––| | 1 1 | Rung 2:4 | Below |Above Scale | | range flag |range flag analog input | | B3 B3 +SCP–––––––––––––––+ | |––––]/[––––––––]/[–––––––––––––––––––––––––––––––––––––––+SCALE W/PARAMETERS+–| | 0 1 |Input I:1.1| | | 0| |Input Min. 0| | | |Input Max. 32767| | | |Scaled Min. 100| | | |Scaled Max. 500| | | |Scaled Output N7:0| | 0| +––––––––––––––––––+ Rung 2:5 | | |–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––| Publication 1746-6.4 – January 1996 6–8 Programming Examples Addressing and Scaling Outputs We are making the following assumptions: • The NIO4I is located in slot 2 of a SLC 500 system. • An actuator from a flow control valve is wired to output channel 0. • The actuator accepts a 4 mA to 20 mA signal proportional to 0 to 100% of the valve’s opening. For this example the signal actuator can not receive a signal out of the 4 mA to 20 mA range. • The percentage of valve opening is manually input to the SLC. The following graph displays the linear relationship. Figure 6.2 20 mA = 31208 (scaled max.) Scaled Value 4 mA = 6242 (scaled min.) 100% 0% (input min.) (input max.) Input Value Calculating the Linear Relationship Use the following equations to calculate the scaled output value: Scaled value = (input value x slope) + offset Slope = (scaled max. – scaled min.) / (input max. – input min.) (31,208 – 6,242) / (100–0) = 24,966/100 Offset = scaled min. – (input min. x slope) 6,242 – (0 x (24,966/100)) = 6,242 Scaled value = (input value x (24,966/100)) + 6,242 Publication 1746-6.4 – January 1996 Programming Examples 6–9 The out-of-range limits are predetermined because any value less than 0% is 6,242 and any value greater than 100% is 31,208. The ladder logic checks for the out-of-range flag to verify that not less than 4 mA and not more than 20 mA is provided out of the analog output channel. The percentage of valve opening may be input to the processor by: • entering the data through a DTAM or HHT • MOVing the data from thumbwheels or a keypad (possibly converting the data from BCD using FRD instruction) The percentage of valve opening may be output for operator interface by: • monitoring the data using a DTAM or HHT • MOVing the data to an output module as variable data to a Dataliner • converting the data to BCD (using TOD instruction) and MOVing it to an LED display Since the slope is greater than 3.2767 only standard math can be used for the ladder diagram with SLC 500 fixed, SLC 5/01, 5/02, 5/03 (OS300 or OS301), and 5/04 (OS400) processors. The ladder diagram prevents a processor fault by unlatching the mathematical overflow bit S2:5/0 before the end of the scan. Refer to the example ladder diagram on the next page. Following the standard math example is a ladder diagram using the SCP instruction, available only in the SLC 5/03 (OS302 or later) and the SLC 5/04 (OS401 or later). Publication 1746-6.4 – January 1996 6–10 Programming Examples Using Standard Math Rung 2:0 N7:0 contains percentage of valve open. If this value is less than 0, move the minimum value to the analog output (6242 decimal = 4 mA at the analog output). | Check for Below | | below range flag | | range | | +LES–––––––––––––––+ B3 | |–+LESS THAN +––––––––––––––––––––––––––––––––+––––( )–––––––––––––––+–| | |Source A N7:0| | 0 | | | | 0| | | | | |Source B 0| | | | | | | | | | | +––––––––––––––––––+ | | | | | Minimum | | | | analog | | | | output | | | | value | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 6242| | | | | | | |Dest O:2.0| | | | | | | +––––––––––––––––––+ | Rung 2:1 N7:0 contains percentage of valve open. If this value is greater than 100, move the maximum value to the analog output (31208 decimal = 20 mA at the analog output). | Check for Above | | above range flag | | range | | +GRT–––––––––––––––+ B3 | |–+GREATER THAN +––––––––––––––––––––––––––––––––+––––( )–––––––––––––––+–| | |Source A N7:0| | 1 | | | | 0| | | | | |Source B 100| | | | | | | | | | | +––––––––––––––––––+ | | | | | Minimum | | | | analog | | | | output | | | | value | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 31208| | | | | | | |Dest O:2.0| | | | | | | +––––––––––––––––––+ | Ladder logic continued on the next page. Publication 1746-6.4 – January 1996 Programming Examples 6–11 Rung 2:2 Scale values in the 0 to 100% range to the decimal range for the 4–20 mA analog output. | Below |Above Mulitply | | range flag|range flag by scaled | | range | | B3 B3 +MUL–––––––––––––––+ | |––––]/[––––––––]/[–––––––––––––––––––––––––––––––––––+–+MULTIPLY +–+–| | 0 1 | |Source A N7:0| | | | | | 0| | | | | |Source B 24966| | | | | | | | | | | |Dest N7:1| | | | | | 0| | | | | +––––––––––––––––––+ | | | | | | | | Divide by | | | | input | | | | range | | | | +DDV–––––––––––––––+ | | | +–+DOUBLE DIVIDE +–+ | | | |Source 100| | | | | | | | | | | |Dest N7:1| | | | | | 0| | | | | +––––––––––––––––––+ | | | | Add offset | | | | +ADD–––––––––––––––+ | | | +–+ADD +–+ | | | |Source A N7:1| | | | | | 0| | | | | |Source B 6242| | | | | | | | | | | |Dest O:2.0| | | | | | | | | | | +––––––––––––––––––+ | | | | Clear math | | | | overflow | | | | bit | | | | S:5 | | | +––––(U)–––––––––––––––+ | | 0 | Rung 2:3 | | |–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––| Publication 1746-6.4 – January 1996 6–12 Programming Examples Using the Scale with Parameters (SCP) Instruction Rung 2:0 N7:0 contains percentage of valve open. If this value is less than 0, move the minimum value to the analog output (6242 decimal = 4 mA at the analog output). | Check for Below | | below range flag | | range | | +LES–––––––––––––––+ B3 | |–+LESS THAN +––––––––––––––––––––––––––––––––+––––( )–––––––––––––––+–| | |Source A N7:0| | 0 | | | | 0| | | | | |Source B 0| | | | | | | | | | | +––––––––––––––––––+ | | | | | Minimum | | | | analog | | | | output | | | | value | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 6242| | | | | | | |Dest O:2.0| | | | | | | +––––––––––––––––––+ | Rung 2:1 N7:0 contains percentage of valve open. If this value is greater than 100, move the maximum value to the analog output (31208 decimal = 20 mA at the analog output). | Check for Above | | above range flag | | range | | +GRT–––––––––––––––+ B3 | |–+GREATER THAN +––––––––––––––––––––––––––––––––+––––( )–––––––––––––––+–| | |Source A N7:0| | 1 | | | | 0| | | | | |Source B 100| | | | | | | | | | | +––––––––––––––––––+ | | | | | Minimum | | | | analog | | | | output | | | | value | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 31208| | | | | | | |Dest O:2.0| | | | | | | +––––––––––––––––––+ | Ladder logic continued on the next page. Publication 1746-6.4 – January 1996 Programming Examples 6–13 Rung 2:2 Scale values in the 0 to 100% range to the decimal range for the 4–20 mA analog output. | Below |Above | | range flag|range flag | | B3 B3 +SCP––––––––––––––––––––+ | |––––]/[––––––––]/[––––––––––––––––––––––––––––––––––+SCALE W/PARAMETERS +–| | 0 1 |Input N7:0| | | | 0| | | |Input Min. 0| | | | | | | |Input Max. 100| | | | | | | |Scaled Min. 6242| | | | | | | |Scaled Max. 31208| | | | | | | |Scaled Output O:2.0| | | | | | | +–––––––––––––––––––––––+ | | | Rung 2:3 | | |–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––| Publication 1746-6.4 – January 1996 6–14 Programming Examples Scaling Offset when There may be applications when the offset value put into standard >32,767 or < –32,768 math instructions is greater than 32,767 or less than –32,768. In these cases, it is easier to shift the linear relationship along the input value axis and reduce the values. This example is similar to the situation described in Example 2, except the 4 mA to 20 mA signal is scaled to a value between 90–100%. The NIO4I is located in slot 2 and the output device is wired to channel 0. The following graph displays the linear relationship. Figure 6.3 20 mA = 31208 (scaled max.) Scaled Value 4 mA = 6242 (scaled min.) 90% 100% (input min.) (input max.) Input Value Calculating the Linear Relationship Use the following equations to calculate the scaled units: Scaled value = (input value x slope)+ offset Slope = (scaled max. – scaled min.) / (input max. – input min.) (31,208 – 6,242) / (100 – 90) = 24,966/10 Offset = scaled min. – (input min. x slope) 6242 – (90 x (24,966/10)) = –218,452 Scaled value = (input value) x (24,966/10) – 218,452 Notice the offset value is less than –32,768. Publication 1746-6.4 – January 1996 Programming Examples 6–15 The following graph shows the shifted linear relationship. Notice that the resulting offset value is reduced. Figure 6.4 20 mA = 31208 (scaled max.) Scaled Value 4 mA = 6242 (scaled min.) 90% 100% (input min.) (input max.) Input Value Calculating the Shifted Linear Relationship Use the following equations to recalculate the linear relationship: Scaled value = ((input value – input min.) x slope)) + offset Slope = (scaled max. – scaled min.) / (input max. – input min.) (31,208 – 6,242) / (100–90) = 24,966/10 Offset = scaled min. 6,242 Scaled value = ((input value – 90) x (24,966/10)) + 6242 Since the slope is greater than 3.2767, only standard math can be used for the ladder diagram with SLC 500 fixed, SLC 5/01, 5/02, 5/03 (OS300 and 301) and 5/04 (OS400). The following ladder diagram prevents a processor fault by unlatching the mathematical overflow bit S2:5/0 before the end of the scan. Refer to the example ladder diagram on the next page. Following this example is another ladder diagram performing the same function, but using the SCP (scale with parameters) instruction available only in the SLC 5/03 (OS302) and SLC 5/04 (OS401). Publication 1746-6.4 – January 1996 6–16 Programming Examples Using Standard Math Rung 2:0 N7:0 contains the percentage of the valve open. | Check for | | below range | | +LES–––––––––––––––+ B3 | |–+LESS THAN +––––––––––––––––––––––––––––––––+––( )–––––––––––––––––+–| | |Source A N7:0| | 0 | | | | 0| | | | | |Source B 90| | | | | | | | | | | +––––––––––––––––––+ | | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 6242| | | | | | | |Dest O:2.0| | | | | | | +––––––––––––––––––+ | Rung 2:1 | Check for | | above range | | +GRT–––––––––––––––+ B3 | |–+GREATER THAN +––––––––––––––––––––––––––––––––+––( )–––––––––––––––––+–| | |Source A N7:0| | 1 | | | | 0| | | | | |Source B 100| | | | | | | | | | | +––––––––––––––––––+ | | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 31208| | | | | | | |Dest O:2.0| | | | | | | +––––––––––––––––––+ | Ladder logic continued on the next page. Publication 1746-6.4 – January 1996 Programming Examples 6–17 Rung 2:2 Scale values in the 90–100% range to the decimal range for the 4–20 mA analog output. | Subtract | | the input | | min. | | B3 B3 +SUB–––––––––––––––+ | |––––]/[––––––––]/[–––––––––––––––––––––––––––––––––––+–+SUBTRACT +–+–| | 0 0 | |Source A N7:0| | | | | | 0| | | | | |Source B 90| | | | | | | | | | | |Dest N7:1| | | | | | 0| | | | | +––––––––––––––––––+ | | | | | | | | Multiply | | | | by the | | | | scaled | | | | range | | | | +MUL–––––––––––––––+ | | | +–+MULTIPLY +–+ | | | |Source A N7:1| | | | | | 0| | | | | |Source B 24966| | | | | | | | | | | |Dest N7:1| | | | | | 0| | | | | +––––––––––––––––––+ | | | | Divide | | | | result by | | | | input | | | | range | | | | +DDV–––––––––––––––+ | | | +–+DOUBLE DIVIDE +–+ | | | |Source 10| | | | | | | | | | | |Dest N7:1| | | | | | 0| | | | | +––––––––––––––––––+ | | | | Add offset | | | | +ADD–––––––––––––––+ | | | +–+ADD +–+ | | | |Source A N7:1| | | | | | 0| | | | | |Source B 6242| | | | | | | | | | | |Dest O:2.0| | | | | | | | | | | +––––––––––––––––––+ | | | | Clear flt | | | | bit from | | | | overflow | | | | S:5 | | | +––––(U)–––––––––––––––+ | | 0 | Rung 2:3 | | |–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––| | | Publication 1746-6.4 – January 1996 6–18 Programming Examples Using the Scale with Parameters (SCP) Instruction Rung 2:0 N7:0 contains percentage of valve open. If this value is less than 90, move the minimum value to the analog output (6242 decimal = 4 mA at the analog output). | Check for Below | | below range flag | | range | | +LES–––––––––––––––+ B3 | |–+LESS THAN +––––––––––––––––––––––––––––––––+––––( )–––––––––––––––+–| | |Source A N7:0| | 0 | | | | 0| | | | | |Source B 90| | | | | | | | | | | +––––––––––––––––––+ | | | | | Minimum | | | | analog | | | | output | | | | value | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 6242| | | | | | | |Dest O:2.0| | | | | | | +––––––––––––––––––+ | Rung 2:1 N7:0 contains percentage of valve open. If this value is greater than 100, move the maximum value to the analog output (31208 decimal = 20 mA at the analog output). | Check for Above | | above range flag | | range | | +GRT–––––––––––––––+ B3 | |–+GREATER THAN +––––––––––––––––––––––––––––––––+––––( )–––––––––––––––+–| | |Source A N7:0| | 1 | | | | 0| | | | | |Source B 100| | | | | | | | | | | +––––––––––––––––––+ | | | | | Minimum | | | | analog | | | | output | | | | value | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 31208| | | | | | | |Dest O:2.0| | | | | | | +––––––––––––––––––+ | Ladder logic continued on the next page. Publication 1746-6.4 – January 1996 Programming Examples 6–19 Rung 2:2 Scale values in the 90 to 100% range to the decimal range for the 4–20 mA analog output. | Below |Above Scale for the | | analog output | | range flag|range flag | | B3 B3 +SCP––––––––––––––––––––+ | |––––]/[––––––––]/[––––––––––––––––––––––––––––––––––+SCALE W/PARAMETERS +–| | 0 1 |Input N7:0| | | | 0| | | |Input Min. 90| | | | | | | |Input Max. 100| | | | | | | |Scaled Min. 6242| | | | | | | |Scaled Max. 31208| | | | | | | |Scaled Output O:2.0| | | | | | | +–––––––––––––––––––––––+ | Rung 2:3 | | |–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––| | | Publication 1746-6.4 – January 1996 6–20 Programming Examples Scaling and Range This example demonstrates the addressing of analog I/O and the Checking of Analog Inputs scaling and range checking of analog input and output values. An NIO4V is placed in slot 1 of an SLC 500 system. A 0 to 200 psi and Outputs pressure sensor is input as a 4 mA to 20 mA signal to input channel 0. The input value is checked to ensure it remains within the 4 mA to 20 mA range. It is then scaled and output as a 0 to 2.5 volt signal to a panel meter pressure display connected to output channel 0. If an out-of-range condition is detected a flag bit will be set. The scaling operation is shown below. The graph displays the linear relationship between the input value and the resulting scaled value. Figure 6.5 8192 (scaled max.) Scaled Value 0 (scaled min.) 3277 16384 (input min.) (input max.) Input Value Calculating the Linear Relationship Use the following equations to express the linear relationship between the input value and the resulting scaled value: Scaled value = (input value x slope) + offset Slope = (scaled max. – scaled min.) / (input max. – input min.) (8192 – 0) / (16384 – 3277) = 8192/13107 Offset = scaled min. – (input min. x slope) 0–3277 (8192/13,107) = –2048 Scaled value = (input value x (8192/13017)) – 2048 Publication 1746-6.4 – January 1996 Programming Examples 6–21 This equation can be implemented using integer math capabilities of the SLC 500 system. Three example programs are shown. The first runs on any SLC 500 processor and the second uses the scaling instruction available on the SLC 5/02 and later processors. The third program uses the SCP (scale with parameters) instruction available only with SLC 5/03 (OS302 or later) and SLC 5/04 (OS401 or later). In the first example program the analog input value is checked against the minimum and maximum allowable input values. If the input is out-of-range, the output value is set to its minimum or maximum value. If the input value is in range the output value is determined by scaling the input. To scale an analog input, follow these steps: 1. Multiply the input by the scaled range Scale range=(scaled max. – scaled min.). 2. Divide the 32 bit result by the input range Input range=(input max. – input min.). 3. Add in the offset value (in this case negative). The final value is then moved to the analog output channel 0. The multiply operation will generate an overflow bit and minor error flag whenever the results exceed 16 bits. Since the divide is carried out on the 32 bit result in the math register, the overflow does not present a problem. The minor error flag has to be cleared before the end of the program scan to avoid a system error. Refer to the example ladder diagram on that follows. Using Standard Math Instructions Rung 2:0 Check for below range. | +LES–––––––––––––––+ B3 | |–+LESS THAN +––––––––––––––––––––––––––––––––+––( )–––––––––––––––––+–| | |Source A I:1.0| | 0 | | | | | | | | | |Source B 3277| | | | | | | | | | | +––––––––––––––––––+ | | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 0| | | | | | | |Dest O:1.0| | | | | | | +––––––––––––––––––+ | Ladder logic continued on the next page. Publication 1746-6.4 – January 1996 6–22 Programming Examples Rung 2:1 Check for above range. | +GRT–––––––––––––––+ B3 | |–+GREATER THAN +––––––––––––––––––––––––––––––––+––( )–––––––––––––––––+–| | |Source A I:1.0| | 1 | | | | | | | | | |Source B 16384| | | | | | | | | | | +––––––––––––––––––+ | | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 8192| | | | | | | |Dest O:1.0| | | | | | | +––––––––––––––––––+ | Rung 2:2 Scale the analog input for the analog output. | Multiply | | by the scaled | | range | | | | B3 B3 +MUL–––––––––––––––+ | |––––]/[––––––––]/[–––––––––––––––––––––––––––––––––––+–+MULTIPLY +–+–| | 0 1 | |Source A I:1.0| | | | | | | | | | | |Source B 8192| | | | | | | | | | | |Dest N7:0| | | | | | 0| | | | | +––––––––––––––––––+ | | | | | | | | Divide | | | | result by | | | | the input | | | | range | | | | +DDV–––––––––––––––+ | | | +–+DOUBLE DIVIDE +–+ | | | |Source 13107| | | | | | | | | | | |Dest N7:0| | | | | | 0| | | | | +––––––––––––––––––+ | | | | Add offset | | | | +ADD–––––––––––––––+ | | | +–+ADD +–+ | | | |Source A N7:0| | | | | | 0| | | | | |Source B –2048| | | | | | | | | | | |Dest O:1.0| | | | | | | | | | | +––––––––––––––––––+ | | | | Clear flt | | | | bit from | | | | overflow | | | | S:5 | | | +––––(U)–––––––––––––––+ | | 0 | Rung 2:3 | | |–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––| | | Publication 1746-6.4 – January 1996 Programming Examples 6–23 Scaling and Range The scaling instruction available in the SLC 5/02 processor is used to Checking of Analog Inputs realize a more efficient program. The scaling instruction uses the same multiply, divide and add algorithm but it does so with a single and Outputs rate instead of the scaled range and input range values. The rate is determined by: Rate = (scaled range / input range) x 10,000 For the programming example the rate = 6250 Using SCL Instruction Rung 2:0 Check for below range. | +LES–––––––––––––––+ B3 | |–+LESS THAN +––––––––––––––––––––––––––––––––+––( )–––––––––––––––––+–| | |Source A I:1.0| | 0 | | | | | | | | | |Source B 3277| | | | | | | | | | | +––––––––––––––––––+ | | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 0| | | | | | | |Dest O:1.0| | | | | | | +––––––––––––––––––+ | Rung 2:1 Check for above range. | +GRT–––––––––––––––+ B3 | |–+GREATER THAN +––––––––––––––––––––––––––––––––+––( )–––––––––––––––––+–| | |Source A I:1.0| | 1 | | | | | | | | | |Source B 16384| | | | | | | | | | | +––––––––––––––––––+ | | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 8192| | | | | | | |Dest O:1.0| | | | | | | +––––––––––––––––––+ | Rung 2:2 Scale the analog input for the analog output. | B3 B3 +SCL–––––––––––––––+ | |––––]/[––––––––] [–––––––––––––––––––––––––––––––––––––––+SCALE +–| | 0 1 |Source I:1.0| | | | | | | |Rate [/10000] 6250| | | | | | | |Offset –2048| | | | | | | |Dest O:1.0| | | | | | | +––––––––––––––––––+ | | | Rung 2:3 | | |–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––| Publication 1746-6.4 – January 1996 6–24 Programming Examples Using the Scale with Parameters (SCP) Instruction Rung 2:0 Check for below range. | +LES–––––––––––––––+ B3 | |–+LESS THAN +––––––––––––––––––––––––––––––––+––( )–––––––––––––––––+–| | |Source A I:1.0| | 0 | | | | | | | | | |Source B 3277| | | | | | | | | | | +––––––––––––––––––+ | | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 0| | | | | | | |Dest O:1.0| | | | | | | +––––––––––––––––––+ | Rung 2:1 Check for above range. | +GRT–––––––––––––––+ B3 | |–+GREATER THAN +––––––––––––––––––––––––––––––––+––( )–––––––––––––––––+–| | |Source A I:1.0| | 1 | | | | | | | | | |Source B 16384| | | | | | | | | | | +––––––––––––––––––+ | | | | | +MOV–––––––––––––––+ | | | +–+MOVE +–+ | | |Source 8192| | | | | | | |Dest O:1.0| | | | | | | +––––––––––––––––––+ | Rung 2:2 Scale the analog input for the analog output. | B3 B3 +SCP––––––––––––––––––––+ | |––––]/[––––––––] [––––––––––––––––––––––––––––––––––+SCALE W/PARAMETERS +–| | 0 1 |Input I:1.0| | | | | | | |Input Min. 3277| | | | | | | |Input Max. 16384| | | | | | | |Scaled Min. 0| | | | | | | |Scaled Max. 8192| | | | | | | |Scaled Output O:1.0| | | | | | | +–––––––––––––––––––––––+ | | | Rung 2:3 | | |–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––| | | Publication 1746-6.4 – January 1996 Chapter 7 Maintenance and Safety This chapter provides preventive maintenance information and safety considerations when troubleshooting your SLC 500 system. Preventative Maintenance The printed circuit boards of the analog modules must be protected from dirt, oil, moisture and other airborne contaminants. To protect these boards, the SLC 500 system must be installed in an enclosure suitable for the environment. The interior of the enclosure should be kept clean and the enclosure door should be kept closed whenever possible. Regularly inspect your terminal connections for tightness. Loose connections may cause improper functioning of the SLC 500 system or damage the components of the system. ATTENTION: To ensure personal safety and to guard against damaging equipment, inspect connections with incoming power OFF. ! For general maintenance procedures for electrical equipment, refer to the requirements specific to your region. • Europe: Refer to the standards found in EN 60204 and your national regulations. • United States: Refer to article 70B of the National Fire Protection Association (NFPA). It describes general requirements regarding safety related work practices. Publication 1746-6.4 – January 1996 7–2 Maintenance and Safety Safety Considerations Safety considerations are an important element of proper When Troubleshooting troubleshooting procedures. Actively thinking about the safety of yourself and others, as well as the condition of your equipment, is of primary importance. Refer to the Fixed or Modular I/O Hardware Installation and Operation manual for additional information on troubleshooting. The following section describes several safety areas you should be aware of when troubleshooting your SLC 500 system. Indicator Lights – When the red LED on the analog module is illuminated it indicates that 24V dc power is applied to the module. Activating Devices When Troubleshooting – When troubleshooting, never reach into the machine to actuate a device. Unexpected machine motion could occur. Use a wooden stick. Stand Clear of Machine – When troubleshooting any SLC 500 system problem, have all personnel remain clear of the machine. The problem could be intermittent, and sudden unexpected machine motion could occur. Have someone ready to operate an emergency stop switch in case it becomes necessary to shut off power to the machine. When troubleshooting, pay careful attention to this general warning: ATTENTION: Never reach into a machine to actuate a switch since unexpected machine motion can occur and cause injury. ! Remove all electrical power at the main power disconnect switches before checking electrical connections or inputs/outputs causing machine motion. Program Alteration – There are several causes of alteration to the user program, including extreme environmental conditions, Electromagnetic Interference (EMI), improper grounding, improper wiring connections, and unauthorized tampering. If you suspect the program has been altered, check it against a previously saved program on an EEPROM or UVPROM memory module. Safety Circuits – Circuits installed on the machine for safety reasons, like over travel limit switches, stop push buttons, and interlocks, should always be hard-wired to the master control relay. These devices must be wired in series so that when any one device opens, the master control relay is de-energized thereby removing power to the machine. Never alter these circuits to defeat their function. Serious injury or machine damage could result. Publication 1746-6.4 – January 1996 Appendix A Specifications Analog Module This section lists the specifications for the 1746-NI4, NIO4I, NIO4V, Specifications NO4I and NO4V analog modules. They include: • General specifications • Current and Voltage input specifications • Current and Voltage output specifications General Specifications for NI4, NIO4I, NIO4V, NO4I, Table A.A and NO4V Description Specification SLC Communication Format 16 Bit Two’s Complement Binary Field Wiring to Backplane Isolation 500V dc Update Time 512 μs for all channels in parallel Recommended Cable Shielded Belden #8761 Maximum Wire Size #14 AWG (maximum) Terminal Block Removable Location 1746 chassis Factory Calibrated (Refer to calibration Calibration procedure, pg. C–2) Noise Immunity NEMA Standard ICS 2–230 Environmental Conditions Operating Temperature 0° to +60° C (+32° to +140° F) Storage Temperature –40° to +85° C (–40° to +185° F) Relative Humidity 5 to 95% (non-condensing) • CSA certified Agency Certification • CSA Class I, Division 2 (when product or packaging is Groups A, B, C, D certified marked) • UL listed • CE marked for all applicable directives Publication 1746-6.4 – January 1996 A–2 Specifications Table A.B Output Backplane Current Catalog Input Channels per External 24V dc Power Channels per Draw 1746- Module Supply Tolerance Module 5V (max.) 24V (max.) 4 differential, voltage or current selectable NI4 NA 35 mA 85 mA NA per channel, not individually isolated 2 differential, voltage 2 current or current selectable outputs, not NIO4I 55 mA 145 mA NA per channel, not individually individually isolated isolated 2 differential, voltage 2 voltage or current selectable outputs, not NIO4V 55 mA 115 mA NA per channel, not individually individually isolated isolated 4 current outputs, not 24 ±10% at 195 mA max. NO4I NA 55 mA 195 mA � individually (21.6 to 26.4V dc) isolated 4 voltage outputs, not 24 ±10% at 145 mA max. NO4V NA 55 mA 145 mA � individually (21.6 to 26.4V dc) isolated � Required for some applications if SLC 24V power is at a premium. General Analog Input Specifications for NI4, Table A.C NIO4I, NIO4V Description Specification Converter Resolution 16 bit Repeatability ±1 LSB Location of LSB in I/O image word 0000 0000 0000 0001 Non-linearity 0.01% Common Mode Voltage Range –20 to +20 volts Common Mode Rejection at 0 to 10 Hz (min.) 50 dB Common Mode Rejection at 60 Hz (min.) 105 dB Normal Mode Rejection at 60 Hz (min.) 55 dB Channel Bandwidth 10 Hz Step Response 60 ms at 95% Conversion Method Delta-Sigma Modulation Impedance to ANL COM 500K ohms Impedance channel to channel 1M ohms Publication 1746-6.4 – January 1996 Specifications A–3 Current-Loop Input Specifications for NI4, Table A.D NIO4I, and NIO4V Description Specification Input Range (Normal Operation) –20 to +20 mA Absolute Maximum Input Current –30 to +30 mA Absolute Maximum Input Voltage ±7.5V dc or 7.5V ac RMS Current Input Coding –20 to +20 mA –16,384 to +16,384 Input Impedance 250 Ohms Resolution 1.22070 μA per LSB Full Scale 20 mA Overall Accuracy at +25° C (77° F) (max.) ±0.365% of full scale Overall Accuracy at 0° to +60° C � ±0.642% of full scale (32° to 140° F) (max.) Overall Accuracy Drift (max.) +79ppm/5 C of full scale +0.323% Gain Error at +25° C (77° F) (max.) Gain Error at 0° to +60° C ±0.556% (32° to 140° F) (max.) Gain Error Drift (max.) ±67ppm/° C Offset Error at +25° C (77° F) (max.) ±7 LSB (lin = 0, Vcm = 0) Offset Error at 0° to +60° C ±14 LSB (32° to 140° F) (max.) (lin = 0, Vcm = 0) Offset Error Drift (max.) (lin = 0, Vcm = 0) ±0.20 LSB/° C � Refer to Appendix C for a method to improve accuracy over temperature. Publication 1746-6.4 – January 1996 A–4 Specifications Voltage Input Specifications for NI4, Table A.E NIO4I, and NIO4V Description Specification Input Range –10 to +10V dc – 1 LSB Voltage Input Coding (–10 to +10V dc – 1 LSB) –32,768 to +32,767 Input Impedance 1M ohms Resolution 305.176 μV per LSB Full Scale 10V dc Overall Accuracy at +25° C (77° F) (max.) ±0.284% of full scale Overall Accuracy at 0° to +60° C � ±0.504% of full scale (32° to 140° F) (max.) Overall Accuracy Drift (max.) ±63ppm/° C of full scale Gain Error at +25° C (77° F) (max.) ±0.263% Gain Error at 0° to +60° C ±0.461% (32° to 140° F) (max.) Gain Error Drift (max.) ±57ppm/° C Offset Error at +25° C (77° F) (max.) ±7 LSB Offset Error at 0° to +60° C ±14 LSB (32° to 140° F) (max.) Offset Error Drift (max.) ±0.20 LSB/° C Overvoltage Protection (max. across IN+ to IN– either 220V ac RMS continuously terminals) or 220V dc continuously � Refer to Appendix C for a method to improve accuracy over temperature. Publication 1746-6.4 – January 1996 Specifications A–5 Current Output Specifications for NIO4I Table A.F and NO4I Description Specification Converter Resolution 14 bit Location of LSB in I/O image word 0000 0000 0000 01XX Non-linearity 0.05% Conversion Method R–2R Ladder Step Response 2.5 ms (at 95%) Load Range 0 to 500 Ohms Maximum Load Reactance 100 μH Current Output Coding (0 to +21 mA – 1 LSB) 0 to +32764 Output Range (Normal) 0 to +20 mA Overrange Capability 5% (0 to +21 mA – 1 LSB) Resolution 2.56348 μA per LSB Full Scale 21 mA Overall Accuracy at +25° C (77° F) (max.) ±0.298% of full scale Overall Accuracy at 0° to +60° C ±0.541% of full scale (32° to 140° F) (max.) Overall Accuracy Drift (max.) ±70ppm/° C of full scale Gain Error at +25° C (77° F) (max.) ±0.298% Gain Error at 0° to +60° C ±0.516% (32° to 140° F) (max.) Gain Error Drift (max.) ±62ppm/° C Offset Error at +25° C (77° F) (max.) ±10 LSB Offset Error at 0° to +60° C ±12 LSB (32° to 140° F) (max.) Offset Error Drift (max.) ±0.06 LSB/° C Publication 1746-6.4 – January 1996 A–6 Specifications Voltage Output Specifications for NIO4V Table A.G and NO4V Description Specification Converter Resolution 14 bit Location of LSB in I/O image word 0000 0000 0000 01XX Non-linearity 0.05% Conversion Method R–2R Ladder Step Response 2.5 ms (at 95%) Load Range 1K to ∞ Ohms Maximum Load Current 10 mA Maximum Load Reactance 1 μF Voltage Output Coding (–10 to +10V dc – 1 LSB) –32,768 to +32,764 Output Range (Normal) –10 to +10 volts – 1 LSB Resolution 1.22070 mV per LSB Full Scale 10V dc Overall Accuracy at +25° C (77° F) (max.) ±0.208% of full scale Overall Accuracy at 0° to +60° C ±0.384% of full scale (32° to 140° F) (max.) Overall Accuracy Drift (max.) ±54ppm/° C of full scale Gain Error at +25° C (77° F) (max.) ±0.208% Gain Error at 0° to +60° C ±0.374% (32° to 140° F) (max.) Gain Error Drift (max.) ±47ppm/° C Offset Error at +25° C (77° F) (max.) ±9 LSB Offset Error at 0° to +60° C ±11 LSB (32° to 140° F) (max.) Offset Error Drift (max.) ±0.05 LSB/° C Publication 1746-6.4 – January 1996 Appendix B Two's Complement Binary Numbers The SLC 500 processor memory stores 16-bit binary numbers. Two’s complement binary is used when performing mathematical calculations internal to the processor. Analog input values from the analog modules are returned to the processor in 16-bit two’s complement binary format. For positive numbers, the binary notation and two’s complement binary notation are identical. As indicated in the figure on the next page, each position in the 0 number has a decimal value, beginning at the right with 2 and 15 ending at the left with 2 . Each position can be 0 or 1 in the processor memory. A 0 indicates a value of 0; a 1 indicates the decimal value of the position. The equivalent decimal value of the binary number is the sum of the position values. Positive Decimal Values The far left position is always 0 for positive values. As indicated in the figure on the next page, this limits the maximum positive decimal value to 32767 (all positions are 1 except the far left position). For example: 11 8 3 2 1 0000 1001 0000 1110 = 2 +2 +2 +2 +2 = 2048+256+8+4+2 = 2318 13 9 8 5 3 0010 0011 0010 1000 = 2 +2 +2 +2 +2 = 8192+512+256+32+8 = 9000 Publication 1746-6.4 – January 1996 B–2 Two’s Complement Binary Numbers Figure B.1 14 = 1x2 16384 16384 13 = 1x2 8192 8192 12 = 1x2 4096 4096 11 = 1x2 2048 2048 10 = 1x2 1024 1024 9 = 1x2 512 512 8 = 1x2 256 256 7 = 1x2 128 128 6 = 1x2 64 64 5 = 1x2 32 32 4 = 1x2 16 16 3 = 1x2 8 8 2 = 1x2 4 4 1 = 1x2 2 2 0 = 1x2 1 1 32767 0 1 1 11 1 1 111 1 1 1 1 1 1 15 = This position is always zero for positive numbers 0x2 0 Negative Decimal Values In two’s complement notation, the far left position is always 1 for negative values. The equivalent decimal value of the binary number is obtained by subtracting the value of the far left position, 32768, from the sum of the values of the other positions. In the figure on the next page (all positions are 1), the value is 32767 – 32768 = –1. For example: 1111 1000 0010 0011 = 14 13 12 11 5 1 0 15 (2 +2 +2 +2 +2 +2 +2 ) – 2 = (16384+8192+4096+2048+32+2+1) – 32768 = 30755 – 32768 = –2013. Publication 1746-6.4 – January 1996 Two’s Complement Binary Numbers B–3 Figure B.2 14 = 1x2 16384 16384 13 = 1x2 8192 8192 12 = 1x2 4096 4096 11 = 1x2 2048 2048 10 = 1x2 1024 1024 9 = 1x2 512 512 8 = 1x2 256 256 7 = 1x2 128 128 6 = 1x2 64 64 5 = 1x2 32 32 4 = 1x2 16 16 3 = 1x2 8 8 2 = 1x2 4 4 1 = 1x2 2 2 0 = 1x2 1 1 32767 0 1 1 11 1 1 1 1 1 1 1 1 11 1 15 = This position is always 1 for negative numbers 1x2 1 Publication 1746-6.4 – January 1996 Appendix C Optional Analog Input Software Calibration This appendix helps you calibrate an analog input channel using software offsets to increase the expected accuracy of an analog input circuit. Examples of equations and a ladder diagram are provided for your reference. A software calibration reduces the offset error and gain error at a given temperature by scaling the values read at calibration time. (Refer to the Preface for a definition of terms). Calibrating an Analog The following procedure can be adapted to all analog inputs; current Input Channel or voltage. For this example the 1746-NI4 with a 4 mA to 20 mA input is used. Refer to the 1746-NI4 specifications in appendix A. These specifications represent the worst case values. The overall error for the NI4, which is guaranteed to be not more than ± 0.365% includes non-linearity, repeatability, offset error and gain error at a given temperature. The overall error of ± 0.365% at 20 mA equates to ± 60 LSB of error, or a code range of 16324 to 16444. Any value in this range is returned by an analog input channel at 20 mA. The expected nominal value at 20 mA is 16384. After performing a software calibration the overall error is reduced to 3 LSB, or a code range of 16381 to 16387. The graph on the next page shows the linear relationship between the input value and the resulting scaled value. The values in this graph are from the example program. Publication 1746-6.4 – January 1996 C–2 Optional Analog Input Software Calibration Figure C.1 20 mA = 16384 (scale Hi) Scaled Value 4 mA = 3277 (scale low) 3267 16396 Low Value from card Hi Value from card Input Value Scaled Value vs. Input Value Calculating the Software Calibration Use the following equation to perform the software calibration: Scaled Value = (input value x slope) + offset Slope = (scaled max. – scaled min.) / (input max. – input min.) Offset = Scaled min. – (input min. x slope) Procedure 1. Place your SLC 500 system in the normal operating temperature. Ensure that adjacent I/O modules in your system do not cause temperature fluctuations. For example, place high power and random load I/O modules away from your analog input module. 2. Determine the scaled high and low values you wish to use in your application. In this example, scaled high is 16384 and scaled low is 3277. 3. Using an analog input calibration source or your system’s input device placed at the 4 mA position, capture the low value by energizing the calibrate low input. Ensure that your low value lies within the conversion range of your analog input. 4. Using an analog input calibration source or your system’s input device placed at the 20 mA position, capture the high value by energizing the calibrate high input. Ensure that your high value lies within the conversion range of your analog input. Publication 1746-6.4 – January 1996 Optional Analog Input Software Calibration C–3 5. Energize the calibrate input. This causes the SLC to calculate the slope and offset values used to perform the error correction to the analog input. The analog channel is now calibrated to ± 3 LSB at the calibration temperature. Use the offset error drift and gain error drift to calculate the amount of additional error that can be introduced into your system due to temperature variation. The recommended calibration period is once every 6 months. If an application has a wide range of operating temperatures, a software calibration should be performed every 3 to 4 months. Example Ladder Diagram The following ladder diagram requires 3 external inputs that are used to perform the calibration procedure. Lo causes the ladder to capture the 4 mA calibration value and Hi causes the ladder to capture the 20 mA calibration value. Cal causes the ladder diagram to scale the Hi and Lo values to the nominal values, which provides the slope and offset values used to calibrate the analog input channel. The following symbols are used in this example: Cal_Lo = I:1.0/0 Cal_Hi = I:1.0/1 Calibrate = I:1.0/2 Conversion = N10:0/3 Enable Analog_In = I:2.0 Lo_Value = N10:1 Hi_Value = N10:2 Scale_Hi = N10:3 Scale_Lo = N10:4 Scale_Span = N10:7 Span = N10:9 Slope_x10K = N10:18 Offset = N10:19 Analog_Scl = N10:20 Publication 1746-6.4 – January 1996 C–4 Optional Analog Input Software Calibration Rung 2:0 | Cal_Lo | | I:1 N10:0 +MOV–––––––––––––––+ | |––––] [––––––[OSR]–––––––––––––––––––––––––––––––––––––––+MOVE +–| | 0 0 |Source ANALOG_IN| | | | 8000| | | |Dest LO_VALUE| | | | 3267| | | +––––––––––––––––––+ | Rung 2:1 | Cal_Hi | | I:1 N10:0 +MOV–––––––––––––––+ | |––––] [––––––[OSR]–––––––––––––––––––––––––––––––––––––––+MOVE +–| | 1 1 |Source ANALOG_IN| | | | 8000| | | |Dest HI_VALUE| | | | 16396| | | +––––––––––––––––––+ | Rung 2:2 | Calibrate | | I:1 N10:0 +SUB–––––––––––––––+ | |––––] [––––––[OSR]––––––––––––––––––––––––––––––+–+SUBTRACT +––––––+–| | 2 2 | |Source A HI_VALUE| | | | | | 16396| | | | | |Source B LO_VALUE| | | | | | 3267| | | | | |Dest SPAN| | | | | | 13129| | | | | +––––––––––––––––––+ | | | | +SUB–––––––––––––––+ | | | +–+SUBTRACT +––––––+ | | | |Source A SCALE_HI| | | | | | 16384| | | | | |Source B SCALE_LO| | | | | | 3277| | | | | |Dest SCALE_SPAN| | | | | | 13107| | | | | +––––––––––––––––––+ | | | | +MUL––––––––––––––––––––+ | | | +–+MULTIPLY +–+ | | | |Source A SCALE_SPAN| | | | | | 13107| | | | | |Source B 10000| | | | | | | | | | | |Dest N10:16| | | | | | 32767| | | | | +–––––––––––––––––––––––+ | | | | +DDV–––––––––––––––+ | | | +–+DOUBLE DIVIDE +––––––+ | | | |Source SPAN| | | | | | 13129| | | | | |Dest SLOPE_X10K| | | | | | 9983| | | | | +––––––––––––––––––+ | | Ladder logic continued on the next page. Publication 1746-6.4 – January 1996 Optional Analog Input Software Calibration C–5 | | +MUL––––––––––––––––––––+ | | | +–+MULTIPLY +–+ | | | |Source A LO_VALUE| | | | | | 3267| | | | | |Source B SLOPE_X10K| | | | | | 9983| | | | | |Dest N10:5| | | | | | 32767| | | | | +–––––––––––––––––––––––+ | | | | +DDV–––––––––––––––+ | | | +–+DOUBLE DIVIDE +––––––+ | | | |Source 10000| | | | | | | | | | | |Dest N10:6| | | | | | 3261| | | | | +––––––––––––––––––+ | | | | +SUB–––––––––––––––+ | | | +–+SUBTRACT +––––––+ | | | |Source A SCALE_LO| | | | | | 3277| | | | | |Source B N10:6| | | | | | 3261| | | | | |Dest OFFSET| | | | | | 16| | | | | +––––––––––––––––––+ | | | | S:5 | | | +––(U)––––––––––––––––––––––+ | | 0 | Rung 2:3 | Conversion | | Enable | | N10:0 +MUL––––––––––––––––––––+ | |––––] [–––––––––––––––––––––––––––––––––––––––––+–+MULTIPLY +–+–| | 3 | |Source A ANALOG_IN| | | | | | 8000| | | | | |Source B SLOPE_X10K| | | | | | 9983| | | | | |Dest N10:8| | | | | | 0| | | | | +–––––––––––––––––––––––+ | | | | S:5 | | | +––(U)––––––––––––––––––––––+ | | | 0 | | | | +DDV–––––––––––––––+ | | | +–+DOUBLE DIVIDE +––––––+ | | | |Source 10000| | | | | | | | | | | |Dest N10:12| | | | | | 0| | | | | +––––––––––––––––––+ | | | | | | +ADD–––––––––––––––+ | | | +–+ADD +––––––+ | | |Source A N10:12| | | | 0| | | |Source B OFFSET| | | | 16| | | |Dest ANALOG_SCL| | | | 8002| | | +––––––––––––––––––+ | Rung 2:4 | | |–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––| Publication 1746-6.4 – January 1996 Appendix D Module Input and Output Circuits Figure D.1 500K Input Circuit for 1746-NI4, -NIO4I, and -NIO4V Modules .001 �F IN – > 500K S1, S2 – Filter > A to D 500K + 250 � IN + > .001 �F 500K ANL COM > Switches S1 and S2 control whether the input circuit is for current (closed) or voltage (open). Positive Voltage Supply Voltage Output Circuit for 1746-NIO4V Modules 30K 0.022 �F 10K – 120 > VOLTAGE OUT from > + 1 �F DAC > ANL COM Negative Voltage Supply Current Output Circuit for 1746-NIO4I Modules 1 �F – Amp from > + DAC > CURRENT OUT 0.1 �F > ANL COM Publication 1746-6.4 – January 1996 D–2 Module Input and Output Circuits Figure D.2 Isolation Diagram Isolation Rating 500V dc Circuit for Current Input 500K� 500K� – 250� Transfomer + Isolation 500K� ANL COM DC-DC Rectifier Converter Filter and Primary Regulation Circuit for Voltage Input 500K� 500K� Optical – Isolation + A to D Converter 500K� 500K� SLC Interface Circuit A to D Converter Connection +18V to Circuit for SLC-500 Current Output 50� System – D to A Converter + ANL COM D to A Converter 120� + – Circuit for 30K� Voltage Output Connection 10K� 0.01 �F to Chassis ANL COM Publication 1746-6.4 – January 1996 Index Converting Analog Input Data, 4–7 Symbols Converting Analog Output Data, 4–8 **Empty**, –1 Current Output Circuit for 1746-NIO4I Modules, D–1 A Addressing Analog Modules, 4–2 D Addressing and Scaling Outputs determining power requirements Calculating the Linear Relationship, fixed controller, 3–3 6–8 modular controller, 3–2 overview, 6–8 Disconnect Prime Movers, 5–2 Using Standard Math, 6–10 Using the Scale with Parameters (SCP) Instruction, 6–12 E Addressing, Out-of-Range Detection, and Scaling of Analog Inputs electrical noise, minimizing, 3–16 Calculating the Linear Relationship, equipment needed, 2–1 6–2 European Union Directive Compliance, Calculating the Out-of-Range Flag Using 3–1 the Scale Instruction, 6–3 overview, 6–1 Using Standard Math, 6–4 F Using the Scale (SCL) Instruction, 6–6 Using the Scale with Parameters (SCP) fixed controller, power requirements, 3–3 Instruction, 6–7 analog modules addressing, 4–2 G configuring, 3–4 getting started inspecting, 5–2 overview, 2–1 installing, 3–6 procedures, 2–2 minimizing electrical noise, 3–16 getting started quickly, 2–1 Specifications, A–1 system considerations, 4–10 Grounding the Foil Shields and Drain Wires, types, 1–2 3–12 wiring, 3–10 H B How to Use Analog, 1–1 Bit Level Addressing, 4–5 I C Input Channel Filtering, 4–15 Calculating the Software Calibration, C–2 Input Circuit for 1746-NI4, -NIO4I, and CE certification, 3–1 -NIO4V Modules, D–1 Choosing a Slot in the Chassis, 3–6 Input Out-of-Range Detection, 4–12 Configuring Your Module Input Response to Slot Disable, 4–14 External Power Switch for the 1746-NO4I Inspect the Analog Module, 5–2 and NO4V, 3–5 installation, getting started, 2–1 Switch Settings for the 1746-NI4, 3–4 Switch Settings for the 1746-NIO4I and Installing Your Module, 3–6 NIO4V, 3–5 Index I–2 L S Labeling and Installing the Terminal Block, Safety Considerations when 3–12 Troubleshooting, 7–2 Scaling and Range Checking of Analog Inputs and Outputs M Calculating the Linear Relationship, 6–20 Minimizing Electrical Noise, 3–16 overview, 6–20, 6–23 modular controller, power requirements, Using SCL Instruction, 6–23 3–2 Using Standard Math Instructions, 6–21 module ID codes, entering, 4–2 Using the Scale with Parameters (SCP) Instruction, 6–24 Module Input and Output Circuits Current Output Circuit for 1746-NIO4I Scaling Offset when >32,767 or <-32,768 Modules, D–1 Calculating the Linear Relationship, Input Circuit for 1746-NI4, -NIO4I, and 6–14 -NIO4V Modules, D–1 Calculating the Linear Shifted Voltage Output Circuit for 1746-NIO4V Relationship, 6–15 Modules, D–1 overview, 6–14 Using Standard Math, 6–16 Monitoring Input and Output Data, 4–6 Using the Scale with Parameters (SCP) Instruction, 6–18 N Specifications current loop for NI4, NIO4I, NIO4V, A–3 Negative Decimal Values, B–2 current output for NIO4I, NO4I, A–5 Non-Retentive Analog Output Example, general, A–1 4–11 input for NI4, NIO4I, NIO4V, A–2 voltage input for NI4, NIO4I, NIO4V, A–4 O voltage output for NIO4V, NO4V, A–6 Optional Analog Input Software Calibration, start-up instructions, 2–1 Calibrating an Analog Input Channel, system considerations, 4–10 C–1 Output Response to Slot Disable, 4–14 T terminal block P labeling and installing, 3–12 Positive Decimal Values, B–1 removing, 3–7 power requirements Testing Analog Inputs, 5–4 fixed controller, 3–3 Testing Analog Outputs, 5–6 modular controller, 3–2 tools needed, 2–1 Power-Up the SLC 500 System, 5–3 Two’s Complement Binary Numbers, Preventive Maintenance, 7–1 Positive Decimal Values, B–1, B–2 Processor Update of Analog Data, 4–6 Types of Analog Modules 1746-NI4 Analog Input Module, 1–2 1746-NIO4I and NIO4V Analog Q Combination Modules, 1–2 1746-NIO4I and NO4V Analog Output Quick Start for Experienced Users, 2–1 Modules, 1–2 R U Required Tools and Equipment, 2–1 using analog, 1–1 Response to Slot Disable, 4–14 Retentive Programming Option, 4–10 Index I–3 Grounding Your Cable, 3–9 V System Wiring Guidelines, 3–8 Voltage Output Circuit for 1746-NIO4V Wiring the Analog Module, 3–10 Modules, D–1 W Wiring Considerations Determining the Cable Length, 3–9 Allen-Bradley, a Rockwell Automation Business, has been helping its customers improve productivity and quality for more than 90 years. We design, manufacture and support a broad range of automation products worldwide. They include logic processors, power and motion control devices, operator interfaces, sensors and a variety of software. Rockwell is one of the world’s leading technology companies. Worldwide representation. Argentina • Australia • Austria • Bahrain • Belgium • Brazil • Bulgaria • Canada • Chile • China, PRC • Colombia • Costa Rica • Croatia • Cyprus • Czech Republic • Denmark • Ecuador • Egypt • El Salvador • Finland • France • Germany • Greece • Guatemala • Honduras • Hong Kong • Hungary • Iceland • India • Indonesia • Ireland • Israel • Italy • Jamaica • Japan • Jordan • Korea • Kuwait • Lebanon • Malaysia • Mexico • Netherlands • New Zealand • Norway • Pakistan • Peru • Philippines • Poland • Portugal • Puerto Rico • Qatar • Romania • Russia–CIS • Saudi Arabia • Singapore • Slovakia • Slovenia • South Africa, Republic • Spain • Sweden • Switzerland • Taiwan • Thailand • Turkey • United Arab Emirates • United Kingdom • United States • Uruguay • Venezuela • Yugoslavia Allen-Bradley Headquarters, 1201 South Second Street, Milwaukee, WI 53204 USA, Tel: (1) 414 382-2000 Fax: (1) 414 382-4444 Publication 1746-6.4 – January 1996 PN 40072-028-01(A) Supersedes Publication 1746-NM003 Series B – February 1994 Copyright 1996 Allen-Bradley Company, Inc. Printed in USA Publication 1746-6.4 – January 1996

Frequently asked questions

What makes Elite.Parts unique?

chervon down
At GID Industrial (Elite.Parts' parent company), we specialize in procuring industrial parts. We know where to find the rare and obsolete equipment that our customers need in order to get back to business. There are other companies who claim to do what we do, but we're confident that our commitment to quality and value is unparalleled in our field.

What kind of warranty will the 1746-NO4V have?

chervon down
Warranties differ by part and by which suppliers we use to procure it for you. Sometimes, a part will be sold as-is and without a warranty. Our specialty, single board computers, tend to receive a one-year warranty.

Which carriers does Elite.Parts work with?

chervon down
Elite.Parts can ship via FedEx, UPS, DHL, and USPS. We have accounts with each of them and generally ship using one of those, but we can also ship using your account if you would prefer. However, we can use other carriers if it will be more convenient for you.

Will Elite.Parts sell to me even though I live outside the USA?

chervon down
Absolutely! We are happy to serve customers regardless of location. We work with international clients all the time, and we are familiar with shipping to destinations all across the globe.

I have a preferred payment method. Will Elite.Parts accept it?

chervon down
All major credit cards are accepted: Visa, MasterCard, Discover, and American Express. We will also accept payment made with wire transfer or PayPal. Checks will only be accepted from customers in the USA. Terms may available for larger orders, upon approval.

Why buy from GID?

quality

Quality

We are industry veterans who take pride in our work

protection

Protection

Avoid the dangers of risky trading in the gray market

access

Access

Our network of suppliers is ready and at your disposal

savings

Savings

Maintain legacy systems to prevent costly downtime

speed

Speed

Time is of the essence, and we are respectful of yours

What they say about us

FANTASTIC RESOURCE

star star star star star

One of our top priorities is maintaining our business with precision, and we are constantly looking for affiliates that can help us achieve our goal. With the aid of GID Industrial, our obsolete product management has never been more efficient. They have been a great resource to our company, and have quickly become a go-to supplier on our list!

Bucher Emhart Glass

EXCELLENT SERVICE

star star star star star

With our strict fundamentals and high expectations, we were surprised when we came across GID Industrial and their competitive pricing. When we approached them with our issue, they were incredibly confident in being able to provide us with a seamless solution at the best price for us. GID Industrial quickly understood our needs and provided us with excellent service, as well as fully tested product to ensure what we received would be the right fit for our company.

Fuji

HARD TO FIND A BETTER PROVIDER

star star star star star

Our company provides services to aid in the manufacture of technological products, such as semiconductors and flat panel displays, and often searching for distributors of obsolete product we require can waste time and money. Finding GID Industrial proved to be a great asset to our company, with cost effective solutions and superior knowledge on all of their materials, it’d be hard to find a better provider of obsolete or hard to find products.

Applied Materials

CONSISTENTLY DELIVERS QUALITY SOLUTIONS

star star star star star

Over the years, the equipment used in our company becomes discontinued, but they’re still of great use to us and our customers. Once these products are no longer available through the manufacturer, finding a reliable, quick supplier is a necessity, and luckily for us, GID Industrial has provided the most trustworthy, quality solutions to our obsolete component needs.

Nidec Vamco

TERRIFIC RESOURCE

star star star star star

This company has been a terrific help to us (I work for Trican Well Service) in sourcing the Micron Ram Memory we needed for our Siemens computers. Great service! And great pricing! I know when the product is shipping and when it will arrive, all the way through the ordering process.

Trican Well Service

GO TO SOURCE

star star star star star

When I can't find an obsolete part, I first call GID and they'll come up with my parts every time. Great customer service and follow up as well. Scott emails me from time to time to touch base and see if we're having trouble finding something.....which is often with our 25 yr old equipment.

ConAgra Foods

Related Products

product

Allen Bradley 1747-M13 PLC Memory Module - Allen Bradley 1747-M13 64 K, Flash EPROM Memory Module fo...

product

Allen Bradley 1747-PSD Program Storage Device for SLC 5/03 and higher, MicroLogix 1000, 1100, 1200, ...

product

ALLEN BRADLEY 1756-IF6I I/O Module - ISOLATED ANALOG INPUT-CURRENT/VOLTAGE 6 PTS(20PIN)

product

ALLEN BRADLEY 1756-OB8I I/O Module - 10-30 VDC 2 AMP ISOLATED OUTPUT 8PTS (36 PIN)

product

ALLEN BRADLEY 1760-IB12XOW6I Pico Expansion I/O Module - PICO CONTROL RELAY, EXPANSION RELAY OUTPUT

product

ALLEN BRADLEY 1760-L12DWD-ND Controller - 12 I/O PICO CONTROLLER W/O DISPLAY, 12V DC