Analog F0-04AD-2 User Manual

F0-04AD-2, 4-ChAnnel AnAlog
Chapter
Chapter
Chapter
VoltAge Input
In This Chapter...
Module Specifications ...............................................................................................5–2
Setting the Module Jumpers ..................................................................................... 5–4
Connecting and Disconnecting the Field Wiring .....................................................5–5
Wiring Diagram .........................................................................................................5–5
Module Operation ..................................................................................................... 5–6
Special V-memory Locations .....................................................................................5–7
Using the Pointer in Your Control Program ............................................................. 5–9
Scale Conversions .................................................................................................... 5–11
Module Resolution ...................................................................................................5–14
Analog Input Ladder Logic Filter ............................................................................5–15
5
5
5
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
Module Specifications
The F0-04AD-2 Analog input module offers the following features:
• The DL05 and DL06 will read all four channels in one scan.
• The removable terminal block makes it possible to remove the module without disconnecting the field wiring.
• Analog inputs can be used as process variables for the four (4) PID loops in the DL05 CPU and the eight (8) PID loops in the DL06 CPUs.
• On-board active analog filtering and RISC-like microcontroller provide digital signal processing to maintain precise analog measurements in noisy environments.
NOTE: The DL05 CPU’s analog feature for this module requires DirectSOFT32 Version 3.0c (or later) and firmware version 2.10 (or later). The DL06 requires DirectSOFT32 version V4.0, build 16 (or later) and firmware version 1.00 (or later). See our website for more information: www.automationdirect.com.
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
The following tables provide the specifications for the F0–04AD–2 Analog Input Module. Review these specifications to make sure the module meets your application requirements.
Input Specifications
Number of Channels 4, single ended (one common) Input Range 0 to 5VDC or 0 to 10VDC (jumper selectable) Resolution 12 bit (1 in 4096) Step Response 10.0 ms to 95% of full step change Crosstalk -80dB, 1/2 count maximum* Active Low-pass Filtering -3dB at 300Hz (-12dB per octave) Input Impedance Greater than 20kq Absolute Maximum Ratings ±15V Linearity Error (End to End) ±2 counts maximum* Input Stability ±1 count * Gain Error ±6 counts maximum * Offset Error ±2 counts maximum*
Maximum Inaccuracy
Accuracy vs. Temperature ±100ppm /°C typical
* One count in the specification tables is equal to one least significant bit of the analog data value (1 in 4096).
PLC Update Rate 4 input channels per scan 16-bit Data Word 12 binary data bits Operating Temperature 0 to 60° C (32 to 140° F) Storage Temperature -20 to 70° C (-4 to 158° F) Relative Humidity 5 to 95% (non-condensing) Environmental Air No corrosive gases permitted Vibration MIL STD 810C 514.2 Shock MIL STD 810C 516.2 Noise Immunity NEMA ICS3-304 Power Budget Requirement 75mA @ 5 VDC (supplied by base) Connector Phoenix Mecano, Inc. Part No. AK1550/8-3.5 - green Connector Wire Size 28–16 AWG Connector Screw Torque 0.4 N·m Connector Screwdriver Size DN-SS1 (recommended)
±0.3% @ 25°C (77°F) ±0.6% 0 to 60°C (32 to 140°F)
General Specifications
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input

Setting the Module Jumpers

The position of the J2 jumpers determines the input signal levels. You can choose between 0–5 VDC or 0–10 VDC. The module ships with the jumpers installed connecting the pins. In this position, the input signal level is 0–5 VDC. To select 0–10 VDC signals, use the jumper selection chart located on the module. One or more channels can be selected for 0–10 VDC input signal level by removing the jumper from the connecting pin of the appropriate channel. This allows you to have some channels selected for 0–5 VDC signals and other channels selected for 0–10 VDC signals.
J2 jumpers shown below are configured as CH1 and CH4 set for 0–10V, and CH2 and CH3 set for 0–5V.
CH4
CH2
CH3
INPUTS
J2
CH1
Refer to jumper selection chart.
ON=0–5V
RANGE
C14
WARNING: Before removing the analog module or the terminal block on the face of the module, disconnect power to the PLC and all field devices. Failure to disconnect power can result in damage to the PLC and/or field devices.
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
a jumper between the CHx and COM terminals on all unused channels.

Connecting and Disconnecting the Field Wiring

Wiring Guidelines
Your company may have guidelines for wiring and cable installation. If so, you should check those before you begin the installation. Here are some general things to consider:
• Use the shortest wiring route whenever possible.
• Use shielded wiring and ground the shield at the transmitter source. Do not ground the shield at both the module and the source.
• Do not run the signal wiring next to large motors, high current switches, or transformers. This may cause noise problems.
• Route the wiring through an approved cable housing to minimize the risk of accidental damage. Check local and national codes to choose the correct method for your application.
A separate transmitter power supply may be required, depending on the type of transmitter being used.
This module has a removable connector to make wiring and module removal easier. To remove the terminal block, disconnect power to the PLC and the field devices. Pull the terminal block firmly until the connector separates from the module.
The analog module can be removed from the PLC by folding out the retaining tabs at the top and bottom of the module. As the retaining tabs pivot upward and outward, the module’s connector is lifted out of the PLC socket. Once the connector is free, you can lift the module out of its slot.

Wiring Diagram

Use the following diagram to connect the field wiring. If necessary, the terminal block can be removed to make removal of the module possible without disturbing field wiring.
NOTE 3: To ensure that readings on unused channels are zero, install
Analog
4-CHANNELS
F0–04AD–2
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
0–5V 0–10V
Input
CH1+
CH2+
CH3+
CH4+
0V
0V
0V
0V
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input

Module Operation

Input Channel Update Sequence
The DL05 and DL06 read four channels of input data during each scan. The CPU supports special V-memory locations that are used to manage the data transfer. This is discussed in more detail on the next page, “Special V-memory Locations”.
Scan
Read Inputs
DL05/DL06 PLC
Execute Application Progr
Read the data
Store data
Write to Outputs
am
Scan N
Scan N+1
Scan N+2
Scan N+3
Scan N+4
Ch 1, 2, 3, 4
Ch 1, 2, 3, 4
Ch 1, 2, 3, 4
Ch 1, 2, 3, 4
Ch 1, 2, 3, 4
Analog Module Updates
Even though the channel updates to the CPU are synchronous with the CPU scan, the module asynchronously monitors the analog transmitter signals and converts each signal into a 12-bit binary representation. This enables the module to continuously provide accurate measurements without slowing down the discrete control logic in the RLL program.
The module takes approximately 10 milliseconds to sense 95% of the change in the analog signal. For the vast majority of applications, the process changes are much slower than these updates.
NOTE: If you are comparing other manufacturers’ update times (step responses) with ours, please be aware that some manufacturers refer to the time it takes to convert the analog signal to a digital value. Our analog to digital conversion takes only a few microseconds. It is the settling time of the filter that is critical in determining the full update time. Our update time specification includes the filter settling time.
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
MSB LSB
501413121110

Special V-memory Locations

Formatting the Module Data
The DL05 and DL06 PLCs have special V-memory locations assigned to their respective option slots. These V-memory locations allow you to:
• Specify the data format (binary or BCD)
• Specify the number of channels to scan (4 channels for the F0-04AD-2)
• Specify the V-memory locations to store the input data
DL05 Data Formatting
The table below shows the special V-memory locations which are used by the DL05 PLC for the F0–04AD–2.
Analog Input Module
DL05 Special V-memory Locations
Data Type and Number of I/O Channels V7700
Input Storage Pointer V7701
Structure of V7700
Special V-memory location 7700 identifies that a F0-04AD-2 module is installed in the DL05 option slot and the data type to be either binary or BCD.
Loading a constant of 400 into V7700 identifies a 4 channel analog input module is installed in the DL05 option slot, and reads the input data values as BCD numbers.
Loading a constant of 8400 into V7700 identifies a 4 channel analog input module is installed in the DL05 option slot, and reads the input data values as binary numbers.
1 501413121110
MSB LSB
1
9 87654321
9 87654321
Structure of V7701
V7701 is a system V-memory location used as a pointer to a user V-memory location where the analog input data is stored. The V-memory location loaded into V7701 is an octal number identifying the first user V-memory location for reading the analog input data. This V-memory location is user selectable. For example, loading O2000 causes the pointer to write Ch 1’s data value to V2000, Ch 2’s data value to V2001, Ch 3’s data value to V2002, and Ch 4’s data value to V2003.
You will find an example program that loads appropriate values to V7700 and V7701 on page 5–9.
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
MSB LSB
DL06 Data Formatting
Special V-memory locations are assigned to the four option module slots of the DL06 PLC. The table below shows these V-memory locations which can be used for the F0–04AD–2.
Analog Input Module
DL06 Special V-memory Locations
Slot No. 1 2 3 4 Number of Channels V700 V710 V720 V730 Input Pointer V701 V711 V721 V731
Setup Data Type and Number of Channels
V-memory locations 700, 710, 720 and 730 are used to set the data format to be read in either binary or BCD, and to set the number of channels that will be active.
For example, the F0–04AD–2 is installed in slot 1. Loading a constant of 400 into V700 sets 4 channels active, and the input data value is read as a BCD number.
With the F0–4AD–2 in slot 1, loading a constant of 8400 into V700 sets 4 channels active, and the input data value is read as a binary number.
Storage Pointer Setup
V-memory locations 701, 711, 721 and 731 are special locations used as storage pointers for the analog input data. With the analog module installed in slot 4, the V-memory location loaded in V731, for instance, is an octal number identifying the first user V-memory location to read the analog input data. This V-memory location is user selectable. For example, loading O2000 using the LDA instruction causes the pointer to write Ch 1’s data value to V2000, Ch 2’s data value to V2001, CH 3’s data value to V2002 and Ch 4’s data value to V2003.
You will find an example program that loads appropriate values to V700 and V701 on page 5–10.
1 501413121110
MSB LSB
1 501413121110
9 87654321
9 87654321
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
-memory location that will be used
to store the incoming data. For example, the O2000 entered here would
the
, which means the CPU will use the octal
where to store the incoming
data.
-memory location assigned to the option slot contains the data
constant that specifies the number of channels to scan and the
0=BCD,

Using the Pointer in Your Control Program

DL05 Pointer Method
The DL05 CPU examines the pointer values (the memory locations identified in V7700 and V7701) on the first scan only.
The example program below shows how to setup these locations. This rung can be placed anywhere in the ladder program or in the initial stage if you are using stage programming instructions.
This is all that is required to read the analog input data into V-memory locations. Once the data is in V-memory you can perform math on the data, compare the data against preset values, and so forth. V2000 is used in the example but you can use any user V-memory location.
SP0
LD K400
Loads a data format. The upper byte selects the data format (i.e. 8=Binary) and the number of channels (set to 4 for the F0–04AD–2).
- or -
LD K8400
OUT V7700
LDA O2000
OUT V7701
The binary format is used for displaying data on some operator interface units. The DL05 PLCs support binary math functions.
Special V format and the number of channels to scan.
This loads an octal value for the first V
designate the following addresses. Ch1 – V2000, Ch2 – V2001, Ch3 – V2002, Ch 4 – V2003 The octal address (O2000) is stored here. V7701 is assigned to option slot and acts as a pointer value in this location to determine exactly
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
the octal value in this location to determine exactly where to store the incoming data.
DL06 Pointer Method
Use the special V-memory table below as a guide to setup the pointer values in the following example for the DL06. Slot 1 is the left most option slot. The CPU will examine the pointer values at these locations only after a mode transition, first scan only.
Analog Input Module
DL06 Special V-memory Locations
Slot No. 1 2 3 4 Number of Channels V700 V710 V720 V730 Input Pointer V701 V711 V721 V731
The F0–04AD–2 can be installed in any available DL06 option slot. Using the example program from the previous page, but changing the V-memory addresses, the ladder diagram below shows how to setup these locations with the module installed in slot 1 of the DL06. Use the above table to determine the pointer values if locating the module in any of the other slot locations. Place this rung anywhere in the ladder program or in the initial stage if you are using stage programming instructions.
Like the DL05 example, this logic is all that is required to read the analog input data into V-memory locations. Once the data is in V-memory you can perform mathematical calculations with the data, compare the data against preset values, and so forth. V2000 is used in the example but you can use any user V-memory location.
5–10
SP0
LD K400
Loads a constant that specifies the number of channels to scan and the data format. The upper byte selects the data format (i.e. 0=BCD, 8=Binary) and the number of channels (set to 4 for the F0–04AD–2).
- or -
LD K8400
OUT V700
LDA O2000
OUT V701
The binary format can be used for displaying data on some operator interface units and the DL06 LCD display. The DL06 PLCs support binary math functions.
Special V-memory location assigned to the first option slot contains the data format and the number of channels to scan.
This loads an octal value for the first V-memory location that will be used to store the incoming data. For example, the O2000 entered here would designate the following addresses. Ch1 – V2000, Ch2 – V2001, Ch3 – V2002, Ch 4 – V2003
The octal address (O2000) is stored here. V701 is assigned to the first option slot and acts as a pointer, which means the CPU will use
DL05/06 Option Modules User Manual; 7th Ed. Rev. E

Scale Conversions

Scaling the Input Data
Many applications call for measurements in engineering units, which can be more meaningful than raw data. Convert to engineering units using the formula shown to the right.
You may have to make adjustments to the formula depending on the scale you choose for the engineering units.
For example, if you wanted to measure pressure (PSI) from 0.0 to 100.0 then you would have to multiply the analog value by 10 in order to imply a decimal place when you view the value with the programming software or a handheld programmer. Notice how the calculations differ when you use the multiplier.
Analog Value of 2024, slightly less than half scale, should yield 49.4 PSI
Example without multiplier Example with multiplier
Units =A
Units=2024
H – L 4095
100 – 0
+ L
4095
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
H – L 4095
unit range
unit range
H – L 4095
100 – 0
+ L
4095
+ L
+ 0
+ 0
Units =A
H = High limit of the engineering
L = Low limit of the engineering
A = Analog value (0 – 4095)
Units=10 A
Units=20240
Units= 49
Units=494
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
5–11
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
The Conversion Program
The following example shows how you would write the program to perform the engineering unit conversion from input data formats 0–4095. This example assumes the raw input data read at V2000 is in BCD format.
Note: this example uses SP1, which is always on. You could also use an X, C, etc., permissive contact.
SP1
LD V2000
MUL K1000
DIV K4095
OUT V2100
When SP1 is on, load channel 1 data to the accumulator (for a range of 0–1000).
Multiply the accumulator by 1000.
Divide the accumulator by 4095 (the module resolution).
Store the result in V2100.
5–12
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
)D
Analog and Digital Value Conversions
Sometimes it is useful to convert between the signal levels and the digital values. This is especially helpful during machine startup or troubleshooting. The following table provides formulas to make this conversion easier.
Range If you know the digital value If you know the analog signal level
4095
10
4095
10
(A)
(6V)
4095
4095
(A)
(A)
0 to 5V
0 to 10V
A = 4095
A = 4095
5D
10D
For example, if you are using the 0–10 V range and you need a 6V signal level, use this formula to determine the digital value (D) that will be stored in the V-memory location that contains the data.
D = 5
D = 10
D =
D =
D = (409.5) (6
= 2457
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
5–13
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
53211 2048
MSB LSB

Module Resolution

Analog Data Bits
The first twelve bits represent the analog data in binary format.
Bit Value BitV 01664
127 128 248 256 389 512 41610 1024
alue
= data bits
Resolution Details
Since the module has 12-bit resolution, the analog voltage signal is converted into 4096 counts ranging from 0–4095 (212). For example, with a 0 to 10V range, a 0V signal would be a count value of 0, and a 10V signal would produce a count value of 4095. This is equivalent to a binary value of 0000 0000 0000 to 1111 1111 1111, or 000 to FFF hexadecimal.
Each count can also be expressed in terms of the signal level by using the following equation:
0 – 10V
10V
0V
0 4095
The following table shows the smallest detectable signal change that will result in one LSB change in the data value for each increment of the signal change.
Resolution =
H = high limit of the signal range
L = low limit of the signal range
H – L
4095
01110987654321
Voltage Range
0 to 5V 5 volts 4095 1.22 mV 0 to 10V 10 volts 4095 2.44 mV
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
5–14
Signal Span
(H – L)
Divide By
Smallest Detectable
Change
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
SP1

Analog Input Ladder Logic Filter

PID Loops / Filtering:
Please refer to the “PID Loop Operation” chapter in the DL06 or DL05 User Manual for information on the built-in PV filter (DL05/06) and the ladder logic filter (DL06 only) shown below. A filter must be used to smooth the analog input value when auto tuning PID loops to prevent giving a false indication of loop characteristics.
Smoothing the Input Signal (DL06 only):
The filter logic can also be used in the same way to smooth the analog input signal to help stabilize PID loop operation or to stabilize the analog input signal value for use with an operator interface display, etc.
WARNING: The built-in and logic filters are not intended to smooth or filter noise generated by improper field device wiring or grounding. Small amounts of electrical noise can cause the input signal to bounce considerably. Proper field device wiring and grounding must be done before attempting to use the filters to smooth the analog input signal.
Using Binary Data Format
LDD V2000
BTOR
SUBR V1400
MULR R0.2
ADDR V1400
OUTD V1400
RTOB
OUT V2100
Loads the analog signal, which is in binary format and has been loaded from V–memory location V2000 – 2001, into the accumulator. Contact SP1 is always on.
Converts the binary value in the accumulator to a real number.
Subtracts the real number stored in location V1400 from the real number in the accumulator, and stores the result in the accumulator. V1400 is the designated workspace in this example.
Multiplies the real number in the accumulator by
0.2 (the filter factor), and stores the result in the accumulator. This is the filtered value. The filter range is 0.1 to 0.9. Smaller filter factors increase filtering. (1.0 eliminates filtering.)
Adds the real number stored in location V1400 to the real number filtered value in the accumulator, and stores the result in the accumulator.
Copies the value in the accumulator to location V1400.
Converts the real number in the accumulator to a binary value, and stores the result in the accumulator.
Loads the binary number filtered value from the accumulator into location V2100 to use in your application or PID loop.
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
5–15
Chapter 5: F0-04AD-2 4-Ch. Analog Voltage Input
SP1
NOTE: Be careful not to do a multiple number conversion on a value. For example, if you are using the pointer method in BCD format to get the analog value, it must be converted to binary (BIN) as shown below. If you are using the pointer method in Binary format, the conversion to binary (BIN) instruction is not needed.
Using BCD Data Format
LD V2000
BIN
BTOR
SUBR V1400
MULR R0.2
ADDR V1400
OUTD V1400
RTOB
Loads the analog signal, which is in BCD format and has been loaded from V–memory location V2000, into the accumulator. Contact SP1 is always on.
Converts the BCD value in the accumulator to binary.
Converts the binary value in the accumulator to a real number.
Subtracts the real number stored in location V1400 from the real number in the accumulator, and stores the result in the accumulator. V1400 is the designated workspace in this example.
Multiplies the real number in the accumulator by
0.2 (the filter factor), and stores the result in the accumulator. This is the filtered value. The filter range is 0.1 to 0.9. Smaller filter factors increase filtering. (1.0 eliminates filtering.)
Adds the real number stored in location V1400 to the real number filtered value in the accumulator, and stores the result in the accumulator.
Copies the value in the accumulator to location V1400.
Converts the real number in the accumulator to a binary value, and stores the result in the accumulator.
5–16
Converts the binary value in the accumulator
BCD
OUT V1402
to a BCD number. Note: The BCD instruction is not needed to PID loop PV (loop PV is a binary number).
Loads the BCD number filtered value from the accumulator into location V1402 to use in your application or PID loop.
DL05/06 Option Modules User Manual; 7th Ed. Rev. E
Loading...