Home
Chapter 3 - AutomationDirect
Contents
1. The figure on the right shows these are a 5 subset of the jumper block and includes J2 1g 1 aa J3 and J4 They select the voltage or current J4 0 Jumpers range on the F4 04AD for all four input js mea channels simultaneously Observe the Je u present jumper settings on the D4 04AD J7 ile Then find the row in the table below that Ja u matches and configure the F4 04AD jumpers to match Input Signal Range D4 04AD F4 04AD Range Select Jumper Settings Jumper Settings 0 V to 10 VDC aa J4 a J5 J2 2 Ji a a aj J6 J3 a 1 J2 a a J4 e 8 0 J3 i E 1 V to 5 VDC or aml J4 4 to 20 mA z J5 J2 am 2 Ji a a a J6 J3 a e 1 J2 m J4 aj E 0 J3 a 10 VDC aa J4 a m J5 J2 s 2 J1 e E a s J6 J3 a E 1 J2 a a J4 se 0 J3 a The DIP switch S3 on the D4 04AD corresponds to the units select jumpers on Ji ae the F4 04AD The figure on the right shows J2 Ju these are a subset of the jumper block and J3 m include J5 and J6 They select the units for all J4 25E four input channels simultaneously Observe J5 4 Units the present switch setting on the D4 04AD J6 0 Select Then find the row in the following table
2. F4 04AD NOTE When the F4 04AD is configured for D4 04AD compatibility the module s X Z output word bit descriptions and ladder examples in this chapter do not apply A E O D4 04AD F4 04AD AESA I O O El Pj Cl a PV oF E 8 a gt E 5 8 PA a D 8 Er P a8 g gt D En a OR eae m xe Cc D 0 Va a In the following procedure we will examine the present switch and jumper settings on the D4 04AD Just follow the steps to translate that configuration into its equivalent on the F4 04AD module D4 04AD F4 04AD S1 z m Ji 3 I E J2 S4 al J3 3 J4 a a J5 5 J4 a J6 g J5 E m J7 J S J6 J8 J2 E NOTE The designations J1 thru J3 _ J8 are for reference only they are not visible on the actual module Step 1 Install the top jumper J1 on the F4 04AD This selects 32 Input Mode so the module 32 Input Mode has 32 X inputs to the CPU as does the D4 04AD 3 34 F4 04AD 4 Channel Analog Input m lt lt T LL 4 Ch Analog Input Step 2 Range Selection Step 3 Units Selection The jumpers on the D4 04AD correspond to the range select jumpers on the F4 04AD
3. F4 04AD Al _ _1_ __ _ 9 N O 8pt 8pt 32pt 16pt 16pt 16pt Input Input Input Input Output Output P U q gt A xo x10 x20 x60 Bo O z X7 X17 X57 X77 Pas ba gt ne 0 V40400 V40403 40402 V40401 MSB LSB MSB X X X X X X X 5 5 4 4 3 3 2 7 07 0 7 07 Unused Bits Broken Sign Active Data word contains 12 or 16 data always Transmitter Bits Channel bits format dependent 0000 Bits bits F4 04AD 4 Channel Analog Input Reading Values DL440 450 XIJIL 430 440 450 5 io m ge OT Reading Values Wag L430 5 UEI 430 440 450 The following program example shows how to read the analog data into V memory locations with the DL440 and DL450 CPUs Once the data is in V memory you can perform math on the data compare the data against preset values etc P1 z LDF X20 K12 BCD X40 OUT V3000 X41 OUT V3001 X42 OUT V3002 X43 OUT V3003 Loads the first 12 bits of the data word into the accumulator The X address depends on the I O configuration If using a two s complement mode use the constant K16 in the box It s usually easier to perform math operations in BCD so it is best to convert the data to BCD immediately Note that you can con
4. conversion 16 Input Mode Example Loads the data word into the accumulator The V memory location SP1 LD depends on the I O configuration See Appendix A for the memory v40401 map Note This example uses SP1 which is always on You could I also use an X C etc permissive contact ANDD Mask off the upper four bits If you have a DL440 or DL450 CPU you KFFF can use LDF with K12 for the first rung making this instruction unnecessary Since we are going to perform some math operations in BCD this BCD instruction converts the data format You may have already converted the data in the previous examples If so leave out this instruction D X35 OUT Channel 1 data is being sent to the CPU when X34 and X35 are off 1 1 V3000 The OUT instruction moves the data from the accumulator to V3000 X1 LD When X1 is on load channel 1 data into the accumulator v3000 MUL Multiply the accumulator by 1000 to start the conversion We have K1000 a range of 0 to 100 and also need to see tenths of a unit So 100 times 10 is 1000 DIV Divide the accumulator value by 4095 D K4095 gt TI OUT Store the result in V3100 DA V3100 DO A o gt ecg 32 Input Mode 5 xe Example SP1 Loads the data word into the accumulator The V memory location S v40401 depends on the I O configuration See Appendix A for the memory map Note This example uses SP1 which is always on
5. Single Active If the module is configured for only one input channel you can omit the channel Channel selection logic which simplifies the program Vivi v 430 440 450 SP1 LD or LDF Channel 1 data is always being sent to the CPU Use LD or LDF depending on the type of CPU you are using BCD The BCD instruction converts the data from binary to BCD This instruction may be optional for your application do not use with PID loops OUT The OUT instruction stores the data in V3000 V3000 Note This example uses SP1 which is always on You can also use an X C etc permissive contact Also the DL430 requires an additional instruction to mask off the most significant four bits that are brought in with the LD instruction before the BCD instruction is executed This method is shown in the previous example Reading Four The following program example shows how to read all four channels in one scan by Channels in using a FOR NEXT loop Before choosing this technique do consider its impact on One Scan the scan time Remember the FOR NEXT routine shown here will add about 5 ms DL440 450 1 25 ms loop to the overall scan time If you don t need to read the analog data on E A every scan change SP1 to a permissive contact such as an X input CR or stage 430 440 450 bit to only enable the FOR NEXT loop when it is required ae 32235 NOTE This FOR NEXT loo
6. SP1 Loads the complete data word into the accumulator The V memory m location depends on the I O configuration See Appendix A for the 40401 memory map ANDD Mask off active channel bits etc above the 12 bits of data KFFF BCD It s usually easier to perform math operations in BCD so it is best to convert the data to BCD immediately You can omit this instruction if your application does not require it such as PID loops The load instruction reads the data into the accmulator again This Sree pushes the channel data onto a stack ANDD This instruction masks the analog data values sign bit and broken K3000 transmitter bit to leave the active channel bits in the accumulator SHFR Now you have to shift the active channel bits to the right so the result K12 has a value from 0 to 3 inclusive in binary format OUTX The OUTX out indexed instruction stores the channel data currently V3000 the first item on stack to an address that starts at V3000 plus the channel offset 0 3 located in the accumulator For example when channel 3 is read the data is stored in V3002 V3000 2 Note This example uses SP1 Module Reading Acc Bits Offset Data Stored in which is always on You could Channel 1 00 0 3000 also use an X C etc permissive contact Channel 2 01 1 v3001 Channel 3 10 2 V3002 Channel 4 11 3 V3003 F4 04AD 4 Channel Analog Input
7. 5V 10V 63488 65535 0 2047 63488 65535 0 2047 3 22 F4 04AD 4 Channel Analog Input m lt T LL 4 Ch Analog Input Unipolar Resolution Bipolar Resolution Each count can also be expressed in terms of the signal level by using the equation shown Unipolar ranges have 12 bits of resolution which divides the signal span into 4095 counts The following table shows the smallest signal change that will result in a single LSB change in the data value for each signal input range F 7 H L Unipolar resolution 4095 H High limit of the input signal L Low limit of the input signal 0 to 5V 5V 4095 1 22 mV 0 to 10V 10 V 4095 2 44 mV 1 to 5V 4V 4095 0 98 mV 4 to 20MA 16 mA 4095 3 91 uA 0 to 20mA 20 mA 4095 4 88 uA Bipolar ranges have 13 bits of resolution the additional sign bit adds an additional bit of resolution This divides the signal span into 8191 counts The following table shows the smallest signal change that will result in a single LSB change in the data value for each signal input range an H L Bipolar resolution 8191 H High limit of the input signal L Low limit of the input signal 5 to 5V 10 V 8191 1 22 mV 10 to 10V 20 V 8191 2 44 mV Now that you understand how the module and CPU work together to collect and store the information you re ready to write the control pr
8. 2 DT 2O LE o gt Ro TAD 5 Cc 34 F4 04AD 4 Channel Analog Input Setting the Module Jumpers m lt lt T LL 4 Ch Analog Input Jumper Locations lt _ BH 8 8 e o o e ORO ROTOR ROR ROR ROR RO Jumper Descriptions Factory Default Settings Selecting the Number of Active Channels The module has several options that you can select by installing or removing jumpers At the rear of the module is a bank of eight jumpers They may be configured to select either 16 Input Mode or 32 Input Mode operation input range selection units of measurement selection and the number of channels enabled Jumper Descriptions Functional Descriptions located below jumper on PC board aa 16032 In put Mode e m 2 on 32 N m 1 Range a 0 s a a s e a a 1 S m Units o a m 0 a O m 1 I 5 S e 0 Active Channels NOTE If you are replacing a D4 04AD module with the F4 04AD in an existing application skip to the special section at the end of this chapter Configuration Cross Reference D4 04AD to F4 04AD By default the module arrives from the factory with all jumpers installed With all jumpers installed the module has four a
9. OV OV High impedance a F4 04AD 4 Channel Analog Input By changing the wiring slightly and adding an external resistor to convert the current to voltage you can easily adapt this module to meet the specifications for a transmitter that does not adhere to one of the standard input ranges The following diagram shows how this works Field wiring Module external to module internal equivalent circuit Current flow v High impedance O o urrent Af Generated 2950 ohms transmitter voltage R c 3 e OV OV YZ High impedance Vmax R Imax R value of external resistor Vmax high limit of selected voltage range 5V or 10V Imax Maximum current supplied by the transmitter m lt lt T LL 4 Ch Analog Input Example current transmitter capable of 50mA 0 10V range selected paN R 200 ohms 50mA NOTE Your choice of resistor can affect the accuracy of the module A resistor that i has 0 1 tolerance and a 50ppm C temperature coefficient is recommended Current Loop Transmitter Impedance Wiring Diagram F4 04AD 4 Channel Analog Input Standard 4 to 20 mA transmitters and transducers can operate from a wide variety of power supplies Not all transmitters are alike and the manufacturers often specify a minimum loop or load resistance that must be used with the transmitter The F4 04AD provides 250 ohm resistance for each chann
10. digit 3 1 1 digit 1 2 9 digit 3 2 2 digit 1 4 10 digit 3 4 3 digit 1 8 11 digit 3 8 4 digit 2 1 12 digit 4 1 5 digit 2 2 13 digit 4 2 6 digit 2 4 14 digit 4 4 7 digit 2 8 15 digit 4 8 12 bit Magnitude Format v40401 MSB LSB ee eee 111111987654321 0 543210 v40402 MSB LSB 111111987654321 0 543210 _ data bits Two s Complement Format V40401 MSB LSB HESS EEE Sea ese 111111987654321 0 543210 V40402 MSB LSB 111111987654321 0 543210 _ data bits BCD Format V40401 MSB LSB EERE 1111119876543210 543210 Digit 4 Digit 3 Digit 2 Digit 1 V40402 MSB LSB 1111119876543 210 543210 F data bits g gt ST DO vE o gt Ro ky a 5 Cc 3 18 F4 04AD 4 Channel Analog Input Sign Bits Four bits 4 to 7 of the upper word are 40401 32 Input Mode dedicated for use as sign bits These are MSB LSB individually assigned to each of the four channels When an input bit is on the data for the corresponding channel 111111987654321 0 represents a negative value When the 543210 bit is off the data is positive V40402 Bit Channel MSB LSB 4 BERS 5 2
11. s com plement representation of 6 This number is sent to the CPU 1 1 1 1 1 1i 110 Ww add the nu mber 15 e ojo 0 0 0 oji 1 1 F e gt a nd 15 oO oO 0 0 0 ofi F4 04AD 4 Channel Analog Input 3 21 Two s Complement The module s 32 Input Mode offers two s complement data formats in 12 bit and Format 12 Bit 13 bit ranges The 12 bit range shown here is recommended only for compatibility with existing D4 04AD applications The 12 bit range may be used with both unipolar and bipolar input signal ranges The 12 data bits convert the analog signal to 4096 pieces ranging from O to 4095 212 For example with a 0 to 5V scale a OV signal would be 2048 represented as 63488 and a 5V signal would be 2047 This is equivalent to a binary value of 1111 1000 0000 0000 to 0000 1111 1111 1111 or F800 to OFFF hexadecimal However two s complement representation is more commonly used with bipolar input signal ranges Unipolar Ranges Two s Complement 12 bit Format OV to 5V OV to 10V 4mA to 20 mA 5V 10V 20mA 2 5V 5V 12mA OV OV 4mA 63488 65535 0 2047 63488 65535 0 2047 63488 65535 0 2047 aN O my oT DR Bipolar Ranges Two s Complement 12 bit Format DR SP o 5V to 5V 10V to 10V 5V 10V S OV OV
12. 0 4095 D my 2 DT pO vE o gt Ro TAD 5 Cc Z Two s Complement The 32 Input Mode offers two s complement data formats in 12 bit and 13 bit Format 13 Bit ranges The 13 bit range is recommended for new applications while the 12 bit range is recommended only for compatibility with D4 04AD applications The 13 bit format is for bipolar voltage input ranges only Depending on your application two s complement format can be very useful Some operator interfaces or other peripheral devices may require two s complement format If you need to add positive and negative values together as in calculating an average this format can simplify your RLL program Two s complement representation imbeds the sign bit information in the data It allows CPU instructions to add numbers together without specific logic to handle the sign bit for negative numbers The 13 bit two s complement format actually uses 16 binary data bits The following diagram shows how this works 3 20 F4 04AD 4 Channel Analog Input Two s Complement 13 bit Format m lt T LL 4 Ch Analog Input 5V to 5V 5V OV 5V 61440 65535 0 4095 10V to 10V 10V OV 10V 61440 65535 0 4095 In the left graph above zero volts converts to a count of zero Positive voltages up to 5 volts convert to counts of up to decimal 4095 A few millivolts less than zero converts to 65535
13. that J7 Jumpers matches and configure the F4 04AD J8 jumpers to match F4 04AD 4 Channel Analog Input 3 35 Units or Format D4 04AD F4 04AD Switch Setting Jumper Settings Standard Binary SW3 ON a s 0 Two s Complement SW3 OFF es 0 Step 4 The DIP switches S1 and S2 on the D4 04AD Number of correspond to the number of active channels Active Channels jumpers on the F4 04AD The figure on the J1 nis Selection right shows that these are a subset of the J2 gt La jumper block and include J7 and J8 Observe J3 aa the present switch setting on the D4 04AD J4 Then find the row in the table below that J5 2s matches and configure the F4 04AD J6 Seal a K jumpers to match J7 E 1 of Active O J8 a Channels 7 DA 3 2E E Channels Enabled D4 04AD F4 04AD 3 Switch Settings Jumper Settings Channel 1 SW1 ON a 4 SW2 ON soo 0 Channels 1 and 2 SW1 ON Aa SW2 OFF a E 0 Channels 1 2 and 3 SW1 OFF Jal SW2 ON a n 0 Channels 1 2 3 and 4 S SW1 OFF Jal T SW2 OFF x Now you have all the necessary information to get your analog module installed and o
14. the effects of electrical noise see the wiring diagram for an example though you select a 1 to 5V range with the jumpers you can still use a transmitter that provides a 4 20 mA signal The module uses a 250 ohm precision resistor to convert the current signals to voltage for you 4mA x 250 ohms 1V 20mA x 250 ohms 5V The following diagram shows how this works Notice that the voltage V and I input terminals are connected together User Power The F4 04AD requires a separate power supply for the isolated field side of the Supply module The Series DL405 CPUs D4 RS Remote I O Controller and D4 EX Requirements Expansion Units have built in 24 VDC power supplies that provide up to 400mA of current If you only have a couple of analog modules you can use this power source instead of a separate supply If you have more than four analog modules or you A would rather use a separate supply choose one that meets the following Q requirements 24 VDC 10 Class 2 100 mA current per module SN 5 1 Using Current or Even though you cannot select different ranges or units for each channel you can ss Voltage Wiring still wire each individual channel for voltage or current signals For example even _O xe Cc Field wiring z Module external to module internal equivalent circuit V Current flow High impedance Generated L Current voltage 250 ohms transmitter 1 to SV 4 to 20mA C e
15. the p 4095 9 4 5 4 to 20 mA input range If you know the 16 input signal measures 9 mA just use the D 256 5 appropriate formula from the table It will give you the the digital value the module D 1280 counts sends to the CPU As a bipolar example suppose you are Ax 10 2893 using the 10V range If you know the 4095 CPU receives 2893 counts and the sign bit is set just insert 2893 into the A 28930 appropriate formula from the table It will 4095 give you the analog voltage that is present at the connector for the A 7 06 Volts F4 04AD 4 Channel Analog Input 3 33 Configuration Cross Reference D4 04AD to F4 04AD The new F4 04AD Analog Input Module replaces the existing D4 04AD Analog Input Module plus adds new functionality However for existing installations this section shows how to configure the F4 04AD to directly replace a D4 04AD as presently configured The RLL program that communicated with the D4 04AD needs no modifications to perform the same function with a properly configured
16. to 5 VDC 3 8 F4 04AD 4 Channel Analog Input m lt T LL 4 Ch Analog Input Units Selection for 32 Input Mode The two jumpers for units selection determine the data format of the digital values of the channel inputs They only apply to 32 Input mode operation so the module ignores the position of these jumpers during 16 Input mode operation The two jumpers are binary units encoded to offer four possible settings e Select The units selection programmed by Jumpers these jumpers applies simultaneously to all four input channels and to all 32 Input Mode input signal ranges except the two bipolar BCD ranges In those ranges the module ignores the units select jumper settings h The first two selections in the table offer more resolution than the last two selections which are included for compatibility with previous application software Accordingly they are not recommended for new applications After setting the configuration jumpers you are ready to install the module in the base and connect the field wiring When you power up the module for the first time if the jumper configuration is invalid the RUN light on the module s faceplate will NOT turn on and the Channel 1 LED will flash quickly If this occurs review this section and verify that the jumper settings are correct
17. 111111987654321 0 6 3 543210 7 4 _ sign bits Broken Transmitter Four bits 8 to 11 of the upper word are V40401 bits 32 Input Mode dedicated for use as broken transmitter MSB LSB indications They are only operational for the 4 to 20 mA input range When an 111111 input bit is on the current for the 543210 corresponding channel is at or below 1 25 mA When the condition ends the 987654321 0 5 bit automatically turns off V40402 2 MSB LSB g D Bit___ Channel ERTE 3g 8 1 111111987654321 0 3 9 2 543210 Ea 10 3 broken transmitter bits a 11 4 E F4 04AD 4 Channel Analog Input 3 19 12 Bit Magnitude The 12 Bit Plus Sign conversion range is available in either 16 Input or 32 Input Plus Sign Format Modes but it s the only data conversion format available in 16 Input mode Unipolar All Modes signal ranges use 12 bit resolution Bipolar ranges have 13 bit resolution because of the additional sign bit The 12 data bits convert the analog signal to 4096 pieces ranging from 0 to 4095 212 For example with a 0 to 5V scale a OV signal would be 0 and a 5V signal would be 4095 This is equivalent to a binary value of 0000 0000 0000 to 1111 1111 1111 or 000 to FFF hexadecimal Unipolar Ranges Bipolar Ranges 5V to 5V 10V to 10V 10V Z bo ima tov 4095 0 4095 4095
18. 2 or 16 bit analog value in the accumulator KFFFF Since the DL405 CPUs perform math operations in BCD it is usually best to convert the data to BCD immediately You can leave out this BCD instruction if your application does not require it One of the four active channel bits will be on each time through the X40 OUT FOR NEXT loop indicating the active channel The corresponding OUT instruction places the 12 or 16 bit value in the accumulator in V3001 i the proper V memory location X41 OUT V3002 X42 OUT V3003 X43 OUT V3004 Note This example uses SP1 which is always on You could also use an X C etc permissive contact QN EXD p issi 3 30 F4 04AD 4 Channel Analog Input m lt lt T LL 4 Ch Analog Input Reading Values With Sign Bits Broken Transmitter Detection Scaling and Scaling the Input Data If the 13 bit magnitude plus sign format is selected the sign bits X44 to X47 in our example will be on when the corresponding analog input channel s send negative data The bits are always off 0000 in the 12 bit magnitude and two s complement formats When the 4 to 20mA with broken transmitter detection range is selected the four Broken Transmitter bits X50 to X53 in our example will be on when the current on the corresponding analog input channel s is below the normal 4 mA bottom end of the range The threshold at which these bits turn on is 1 25 mA Converting the Input Data The
19. 3 Slot 4 Slot 5 YO Y20 XO X20 X60 X70 O v17 Y27 x17 x57 x67 x77 O P Data is correctly entered so input points start on a V40400 V40403 V memory boundary address from the table below 32 Input Mode Only V40401 V40402 2 2 MSB V40402 LSB MSB V40401 LSB D o 3 w X XX xX Xx XX X qa 5 54 4 3 32 2 Le 7 07 0 7 07 0 Q Wrong F4 0 16pt spt I 16pt 32pt 8pt A O Output Output Inp Input Input Input l E Slot 0 t1 Slot 2 Slot 3 Slot 4 Slot 5 z YO Y20 XO 0 X30 X70 A Y17 Y27 X17 X27 X6 77 A oL Data is split over two locations for 16 Input Mode and over three locations for 32 Input Mode so instructions cannot access data from a DL430 V40403 i X XxX X xX X X X X X X X 7 76 6 5 54 4 3 32 2 7 07 0 7 0 7 0 7 07 0 32 Input Mode Only Channel Scanning Sequence Displaying Diagnostic Data F4 04AD 4 Channel Analog Input Before you begin writing the control program it i
20. 3000 3 was being read the data would be stored in V3002 V3000 2 Module Reading Acc Bits Offset Data Stored in NEXT Channel 1 000 0 v3000 Note This example uses SP1 Channel 2 001 1 V3001 which is always on You could also use an X C etc permissive con Channel 3 010 2 v3002 tact Channel 4 011 3 V3003 F4 04AD 4 Channel Analog Input m lt T LL 4 Ch Analog Input Reading Values With Sign Bits DL440 450 x viv 430 440 450 Broken Transmitter Detection In 16 Input Mode the most significant bit bit 15 is the sign bit for the active channel of the current scan Because it is multiplexed shared among the four channels you may need to separate it into four individual sign bits The following example gives a method to do this giving the resulting sign bits as internal contacts CO to C3 LDF X20 X35 K12 BCD OUT X35 V3000 Co s Co GED OUT X34 V3001 C1 R C1 c OUT V3002 C2 L Rs C2 SE OUT Note This example uses SP1 which is always on You could also use an X C etc permissive con tact X37 V3003 c3 L Rs C3 ee Loads the first 12 bits of the data word into the accumulator The X address depends on the I O configuration It s usually easier to perform mat
21. F4 04AD 4 Channel Analog Input In This Chapter Module Specifications Setting the Module Jumpers Connecting the Field Wiring Module Operation Writing the Control Program 16 Input Mode Writing the Control Program 32 Input Mode Scaling and Converting the Input Data Configuration Cross Reference D4 04AD to F4 04AD 3 2 F4 04AD 4 Channel Analog Input Module Specifications m lt lt T LL 4 Ch Analog Input Analog Input Configuration Requirements The F4 04AD Analog Input module provides several features and benefits a ee e It is a direct replacement for the 2 sia oe popular D4 04AD module when ue ee properly configured oser __ e It accepts four differential voltage or Oy Ta current inputs a a e Analog inputs are optically isolated rac F from PLC logic components se HO e The module has a removable w pE terminal block so the module can ae be easily removed or changed Se without disconnecting the wiring v Ga e All four analog inputs may be read u ea in one CPU scan DL440 450 CPUs Soe OS only ae e Broken transmitter detection is T ae provided for current inputs alassa Fa a NOTE If you are replacing a D4 04AD with a F4 04AD in an existing application make sure to re
22. NOTE If you are replacing a D4 04AD module with the F4 04AD in an existing application skip to the special section at the end of this chapter Configuration Cross Reference D4 04AD to F4 04AD 12 Bit Magnitude Plus Sign 13 Bit aa 14 Recommended for Format s 0 most applications 4095 to 4095 2 s Complement 13 Bit Format os f Recommended two s wml O complement format 2 s Complement 12 Bit Format 3 1 Not recommended for aa 0 new applications 12 Bit Magnitude 0 to 4095 3 1 Not recommended for 3 O new applications F4 04AD 4 Channel Analog Input 3 9 Connecting the Field Wiring Wiring Your company may have guidelines for wiring and cable installation If so you Guidelines should check those before you begin the installation Here are some general things to consider e Use the shortest wiring route whenever possible e Use shielded wiring and ground the shield at the transmitter source Do not ground the shield at both the module and the source e Don t run the signal wiring next to large motors high current switches or transformers This may cause noise problems e 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 e Unused inputs must be shorted to help reduce
23. You could also use an X C etc permissive contact BCD Since we are going to perform some math operations in BCD this instruction converts the data format You may have already converted the data in the previous examples If so leave out this instruction X40 OUT Channel 1 data is being sent to the CPU when X40 is on The OUT V3000 instruction moves the data from the accumulator to V3000 x1 LD When X1 is on load channel 1 data to the accumulator V3000 MUL Multiply the accumulator by 1000 to start the conversion We have K1000 a range of 0 to 100 and also need to see tenths of a unit So 100 times 10 is 1000 DIV Divide the accumulator by 4095 K4095 OUT Store the result in V3100 V3100 F4 04AD 4 Channel Analog Input Analog and Digital Sometimes it is helpful to be able to quickly convert between the signal levels and Value Conversions the digital values This is especially useful during machine startup or troubleshooting The following table provides formulas to make this conversion easier corresponding channel 0 to 5V _ 5 D _ 4095 A 7095 Be A 0 to 10V _ 10 D _ 4095 A 4095 n 10 a 1 to 5V _ A D 4095 A _ A 4095 Oe ge 4 to 20mA _ 16 D 4095 A _ A 7095 4 eae ASA 0 to 20mA _ 20 D _ 4095 A 4095 Dog 5V _ 5 D _ 4095 A A 4095 Be 5 2 10V a 10D p 4095 A af 4095 10 qo oe T For example suppose you are using
24. ad the last section in this chapter Configuration Cross Reference D4 04AD to F4 04AD The F4 04AD Analog Input module requires either 16 or 32 discrete input points depending on its operating mode jumper selectable The module can be installed in any slot of a DL405 system including remote bases The limitations on the number of analog modules are e For local and expansion systems the available power budget and discrete I O points are the limiting factors e For remote I O systems the available power budget and number of remote I O points are the limiting factors Check the user manual for your particular model of CPU for more information regarding power budget and number of local or remote I O points F4 04AD 4 Channel Analog Input The following tables provide the specifications for the F4 O4AD Analog Input Module Review these specifications to ensure the module meets your application requirements Input Specifications General Specifications Number of Channels 4 Input Type Single ended or differential Input Ranges 0 5 1 5 0 10 5 10 VDC 0 20 4 20 mA Resolution 12 bit 0 to 4095 unipolar 13 bit 4095 bipolar Input Impedance 20 MQ minimum voltage input 250 Q 1 2W 0 1 25 ppm C current input Max Continuous Overload 50 VDC voltage input 45 mA current input Recommended External Fuse 0 032A Series 217 fast acting current inpu
25. atically turns these inputs on and off to indicate the active channel for each scan Bits Active Scan 13 12 Channel N 0 O 1 N 1 O 1 2 N 2 1 0 3 N 3 1 1 4 N 4 0 O 1 The first twelve bits of the first V memory location represent the analog data in binary format All input ranges use these bits Bit Value Bit Value 0 1 6 64 1 2 7 128 2 4 8 256 3 8 9 512 4 16 10 1024 5 32 11 2048 Bipolar input ranges use the twelve analog data bits as shown above plus an additional sign bit Bit 15 in the input word is the sign bit and is a 1 when the polarity of the active channel is negative If a unipolar mode is selected the input value is assumed to be greater than or equal to zero so this bit is always 0 One of the 4 20 mA current ranges features broken transmitter detection Bit 14 in the input word is set to 1 if the current on the active channel is at 1 25 mA or less This is useful for diagnostics or troubleshooting logic built in to your RLL program v40401 MSB LSB ae 111111987654321 0 543210 F active channel inputs V40401 MSB LSB i a 0 1111119876543210 543210 N _ data bits a D OR ee 2O ne Cc V40401 g MSB LSB L 1111119876543210 543210 L sign bit V40401 MSB LSB E 1111119876543210 543210 E broken t
26. ctive channels is in 32 Input Mode has 4 to 20 mA input range and the units of the data are 12 bit 0 to 4095 BCD numbers The F4 04AD module accepts from one to four analog inputs and converts the signal s to a desired format to send to E the CPU The bottom two jumpers J7 oe and J8 select the number of channels E enabled The module only converts a E signals on channels that are enabled If 3 E your application requires less than four 3 Bf ee signal inputs from this module selecting am 1 Number of fewer channels results in faster update o Active imes Channels Use the following table to set jumpers jumper removed jumper installed F4 04AD 4 Channel Analog Input 35 Channel 1 s a s 0 Channel 1 Channel 2 es 4 a a 0 Channel 1 Channel 2 Channel 3 om 4 a s 0 Channel 1 Channel 2 Channel 3 Channel 4 om 4 a a 0 Selecting 16 The top jumper selects either 16 Input remove Input or 32 jumper or 32 Input install jumper operating Input Modes modes This is the number of X inputs the module m Mode requires in the PLC memory map The module can E o interface to the CPU in two different way
27. de broken transmitter aml 4 0 to 4095 detection or A 1 VDC to 5 VDC Operating Range Selection 32 Input Mode F4 04AD 4 Channel Analog Input 3 7 The module s 32 Input mode provides eight possible input range and data type combinations Two of the bipolar ranges are dedicated to BCD data type The other six input signal ranges convert to various data types and ranges selected by the units select jumpers Input Signal Range Jumper Settings Data Type and Range 10 VDC to 10 VDC Binary Coded Decimal 7 T oO BK gt iw D P gt 5 v O Q 5 xe fa aoe 2 oe d 9999 to 9999 e 0 5 VDC to 5 VDC on b Binary Coded Decimal we i 5000 to 5000 a E 0 10 VDC to 10 VDC oe Set by Units Select aal 4 jumpers e 0 5 VDC to 5 VDC 22 2 Set by Units Select aal 4 jumpers a E 0 0 VDC to 10 VDC awl 2 Set by Units Select a a jumpers e s 0 0 mA to 20 mA or aml 2 Set by Units Select 0 VDC to 5 VDC c 4 jumpers a E 0 4 mA to 20 mA with bro aml 2 Set by Units Select ken transmitter detection aal 4 jumpers e 0 4 mA to 20 mA without Jal 2 Set by Units Select broken transmitter Jal 4 jumpers detection or Jal o 1 VDC
28. diately Note that you can configure the module to send bipolar voltage input data in BCD format making this step unnecessary When X40 is on channel 1 data is being sent to the CPU The out instruction moves the data from the accumulator to V3000 When X41 is on channel 2 data is stored in V3001 When X42 is on channel 3 data is stored in V3002 When X43 is on channel 4 data is stored in V3003 Note This example uses SP1 which is always on You could also use an X C etc permissive contact Single Active Channel Vivi v 430 440 450 Reading Four Channels in One Scan DL440 450 X viv 430 440 450 F4 04AD 4 Channel Analog Input If the module is configured for only one input channel you can omit the channel selection logic this simplifies the program SP1 Channel 1 data is always being sent to the CPU Use LD LD or LDF or LDF depending on the type of CPU you are using BCD The BCD instruction converts the data from binary to BCD This instruction may be optional for your application Do not use with PID loops The OUT instruction stores the data in V3000 OUT V3000 Note This example uses SP1 which is always on You can also use an X C etc permissive contact Also the DL430 requires an additional instruction to mask off the most significant four bits that are brought in with the LD instruction before the BCD i
29. el If your transmitter requires a load resistance below 250 ohms you do not have to make any adjustments However if your transmitter requires a load resistance higher than 250 ohms you need to add a resistor in series with the module Consider the following example for a transmitter being operated from a 36 VDC supply with a recommended minimum load resistance of 750 ohms Since the module has a 250 ohm resistor you need to add an additional resistor R Tr Mr R resistor to add R 750 250 Tr Transmitter Requirement R gt 500 Mr Module resistance internal 250 ohms Two wire Transmitter a Module Channel 1 R V gt DC Supply A C r 36V Tov 250 ohms OV The F4 04AD module has a removable connector to make wiring easier Simply remove the retaining screws and gently pull the connector from the module NOTE 1 Shields should be grounded at the signal source ANALOG INPUT NOTE 2 Unused channels should be shorted for best noise immunity TB 2 RUN NEG NOTE 3 When a differential input is not used OV should be connected to C of the channel T 16 256 cht See NOTE 1 Internal a tees cho CH1 D v Module Fa 04AD Single ended Voltage Hep cw Wiring ose EH Transmitter 7 See D I front end O e NOTE 3 ew 250 ohms AtoD fpe CH2 per a E D an Convertor on Differen
30. figure the module to send bipolar voltage input data in BCD format making this step unnecessary When X40 is on channel 1 data is being sent to the CPU The out instruction moves the data from the accumulator to V3000 When X41 is on channel 2 data is stored in V3001 When X42 is on channel 3 data is stored in V3002 When X43 is on channel 4 data is stored in V3003 Note This example uses SP1 which is always on You could also use an X C etc permissive contact The following program example shows how to read the analog data into V memory locations with the DL430 CPU Since the DL430 does not support the LDF instruction you can use the LD instruction instead as shown You can also use this method with DL440 and DL450 CPUs X40 LD V40401 ANDD KFFF BCD X41 OUT V3000 X42 OUT V3001 X43 OUT V3002 OUT V3003 Loads all 16 bits of the data word into the accumulator The X address depends on the I O configuration If the module is configured for one of the 12 bit ranges the upper for bits are returned as 0000 ANDDS the value in the accumulator with the constant KFFF which masks the channel ID bits and stores the value in the accumulator Without this the values will not be correct so do not forget to include it It s usually easier to perform math operations in BCD so it is best to convert the data to BCD imme
31. following examples show you how to scale and convert the input data for both 16 Input and 32 Input modes Most applications usually require H L measurements in engineering units Units A 4095 which provide more meaningful data This is accomplished by using the H high limit of the engineering conversion formula shown unit range You may have to make adjustments to L low limit of the engineering the formula depending on the scale you unit range choose for the engineering units A analog value 0 4095 For example if you wanted to measure pressure PSI from 0 0 to 99 9 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 Units A H L 4095 E 100 0 Units 2024 4095 Units 49 Handheld Display Example with multiplier Set an H L Units 10A 7595 we 100 0 Units 20240 4095 Units 494 Handheld Display V 3101 V 3100 V MON 0000 0049 V 3101 V 3100 V MON 0000 0494 This value is more accurate F4 04AD 4 Channel Analog Input Here s how you would write the program to perform the engineering unit
32. h operations in BCD so it is best to convert the data to BCD immediately You can omit this instruction if your application does not require it such as PID loops Channel 1 data is being sent when X34 and X35 are off The out instruction moves the data from the accumulator to V3000 Turn off sign bit CO for channel 1 It will remain off for positive numbers When the module s sign bit X37 is on the data is negative CO turns on Channel 2 data is being sent when X34 is on and X35 is off The out instruction moves the data from the accumulator to V3001 Turn off sign bit C1 for channel 2 It will remain off for positive numbers When the module s sign bit X37 is on the data is negative C1 turns on Channel 3 data is being sent when X34 is off and X35 is on The out instruction moves the data from the accumulator to V3002 Turn off sign bit C2 for channel 3 It will remain off for positive numbers When the module s sign bit X37 is on the data is negative C2 turns on Channel 4 data is being sent when X34 and X35 are on The out instruction moves the data from the accumulator to V3003 Turn off sign bit C3 for channel 4 It will remain off for positive numbers When the module s sign bit X37 is on the data is negative C3 turns on When the 4 20 mA range is selected the bit next to the most significant bit bit 14 is on when the current for the active channel is less than 1 25 mA You can
33. le does much of that work for you It uses the first stack location to temporarily hold the data to be stored at an address modified by an offset in the accumulator SP1 Loads the first 12 bits of the data word into the accumulator The X LDE X20 address depends on the I O configuration BCD Since the DL405 CPUs perform math operations in BCD it is usually best to convert the data to BCD immediately You can leave out this instruction if your application does not require it such as PID loops This LDF instruction loads the two channel indicator bits into the rod X34 accumulator The channel data is pushed onto a stack The OUTX out indexed instruction stores the channel data O currently the first item on stack to an address that starts at V3000 plus the channel offset 0 3 located in the accumulator For example when channel 3 is read the data is stored in V3002 V3000 Note This example 2 uses SP1 which is Module Reading Acc Bits Offset Data Stored in always on You could also use an X C etc Channel 1 00 0 V3000 permissive contact Channel 2 01 1 v3001 Channel 3 10 2 V3002 Channel 4 11 3 V3003 The following program example shows how to read the analog data into V memory locations with DL430 CPUs Since the DL430 does not support the LDF instruction you can use the LD instruction instead as shown You can also use this method with DL440 and DL450 CPUs
34. nstruction is executed This method is shown in the previous example using an ANDD instruction The following program example shows how to read all four channels in one scan by using a FOR NEXT loop Remember the FOR NEXT routine shown here will add about 5 ms 1 25 ms loop to the overall scan time If you don t need to read the analog data on every scan change SP1 to a permissive contact such as an X input CR or stage bit to only enable the FOR NEXT loop when it is required This FOR NEXT loop program will not work in a remote slave arrangement use one of the programs shown that reads one channel per scan D SP1 K4 Starts the FOR NEXT loop The constant K4 specifies how many FoR times the loop will execute equal to the number of channels you are 3 K using For example enter K3 if you re using 3 channels SN 5S1 Immediately loads all 32 bits of the data word into the accumulator g LDIF X20 The LDIF instruction retreives the I O points without waiting on the a gt K32 CPU to finish the scan 0O Save the new input status which is in the accumulator to the image O register V memory Remember the FOR NEXT loop will do this S OUTD four times before the CPU s normal scan updates V40401 and 40402 V40401 again This ANDD instruction masks off the upper sixteen bits leaving just ANDD the lower 16 bits which contain the 1
35. odes You need to read only the section that matches your selection in the jumper configuration In this mode the F4 04AD module requires 16 discrete input points These inputs provide e an indication of which channel is active e adigital representation of the analog signal 12 bit plus sign e broken transmitter detection for current signal inputs Since all input points are automatically mapped into V memory it is very easy to determine the location of the data word that will be assigned to the module F4 04AD I 7 7 7 719 O 8pt 8pt 16pt 16pt 16pt 16pt Input Input Input Input Output Output XO X10 X20 X40 X7 X17 X37 X57 Q exe V40400 V40402 V40401 MSB LSB Bit 15 1413121110 9 8 765 43 21 0 NOX X X 3 2 07 on x Within this data word location the individual bits represent specific information about the analog signal Active Channel Indicator Inputs 16 Input Mode Analog Data Bits 16 Input Mode Sign Bit 16 Input Mode Broken Transmitter Bit 16 Input Mode F4 04AD 4 Channel Analog Input 315 The two bits 12 and 13 inputs of the upper V memory location indicate the active channel They are binary encoded to indicate up to four active channels Only the enabled channels are updated The module autom
36. ogram F4 04AD 4 Channel Analog Input Writing the Control Program 16 Input Mode Multiple Active Channels Reading Values DL440 450 X viv 430 440 450 If you have configured the F4 04AD module for 16 Input mode use the following examples to get started writing the control program For modules configured in 32 Input mode skip to the section titled Writing the Control Program 32 Input Mode Since all channels are multiplexed into a single data word the control program must determine which channe s data is being sent from the module during each scan If you have enabled only one channel then its data will be available on every scan Two or more channels require multiplexing the data word Since the module requires 16 input points from the CPU it is very easy to use the active channel status bits to ae determine which channel is Sign a i being monitored Transmitter Bit F4 04AD l I i A 8pt 8pt 16pt 16pt 16pt 16pt O Input Input Input Input Output Output XO X10 X20 X40 X7 X17 X37 X57 TT a G o V40400 V40402 V40401 MSB LSB Data Bits Active Channel Bits Broken The following program example shows how to read the analog data into V memory locations with DL440 and DL450 CPUs Once the data is in V memory you can perform ma
37. ose terminal block The 24V indicator turns on when the external 24V supply voltage is low or not connected The RUN LED flashes on and off only if the jumper configuration is valid and the module s internal diagnostics have passed If the jumper configuration is incorrect the RUN LED remains off During normal operation the RUN indicator flashes on and off continuously at approximately a one second rate The NEG light turns on if the voltage or current input to the selected channel is negative D 9 2 ST DO OR o gt Ro m D m 5 m lt T LL 4 Ch Analog Input F4 04AD 4 Channel Analog Input Displaying Channel Data Input Assignments for 16 Input Mode By removing the connector cover you can access the push button DISPLAY CH to select which channel s data is currently being displayed The CH1 through CH4 indicators correspond to the selected channel The input value data corresponding to the channel is shown by the 12 data bit indicators They are numbered from 1 to 2048 to indicate the binary weight The bit is on 1 if the indicator is illuminated Push button 7 DERS to select ANALOG INPUT channel for TB 24V RUN NEG P P DATA a viewing e a e LEDs indicate 2 32 512 CH2 values as shown 4 64 1024 CH3 8 128 2048 CH4 F4 04AD o T tee er The next two sections describe the input bit assignments for both 16 Input and 32 Input operating m
38. our input channels simultaneously The type of input voltage or current is actually determined by user wiring to specific terminals on the front connector Along with proper wiring set these jumpers for the desired voltage or current signal range The three jumpers are binary encoded to offer eight possible settings 2 Range 1 Select o Jumpers More input ranges are available for the module s 32 Input mode than for 16 Input mode The following tables list the ranges for each of the modes Input Signal Range Jumper Settings Data Type and Range not used in 16 Input soe 2 Mode ag A soe 0 not used in 16 Input Ii 2 Mode ra g a E 0 10 VDC to 10 VDC ki 2 12 Bit Magnitude Plus Sign 7H 4 Bit 4095 to 4095 e s 0 5 VDC to 5 VDC oan 2 12 Bit Magnitude Plus Sign 7H 4 Bit 4095 to 4095 a E 0 0 VDC to 10 VDC am 2 12 Bit Magnitude a d 0 to 4095 e 0 0 mA to 20 mA or aml 2 12 Bit Magnitude 0 VDC to 5 VDC a d 0 to 4095 a E 0 4 mA to 20 mA with bro am 2 12 Bit Magnitude ken transmitter detection JE 4 0 to 4095 e 0 4 mA to 20 mA without am 2 12 Bit Magnitu
39. p program will not work in a remote slave arrangement DE use one of the programs shown that reads one channel per scan e 5 5 S SP1 K4 Starts the FOR NEXT loop The constant K4 specifies how many FoR times the loop will execute equal to the number of channels you are N using For example enter K3 if you re using 3 channels Immediately loads all 16 bits of the data word into the accumulator ree X20 The LDIF instruction retreives the I O points without waiting on the CPU to finish the scan Save the new input status which is in the accumulator to the image ate register V memory Remember the FOR NEXT loop will do this 40401 four times before the CPU s normal scan updates V40401 again ANDD This ANDD instruction masks off the upper four bits leaving just the KFFF 12 bit analog value in the accumulator Since the DL405 CPUs perform math operations in BCD it is usually BCD best to convert the data to BCD immediately You can leave out this instruction if your application does not require it such as PID loops This LDF instruction loads the two active channel bits into the chi X34 accumulator The OUT instruction above updated the V memory image which makes this possible during a scan X34 X20 14 The OUTX instruction stores the channel data to an address that oats starts at V3001 plus the channel offset 0 3 For example if channel
40. perating correctly
41. ransmitter bit F4 04AD 4 Channel Analog Input Input Assignments In this mode the F4A O04AD module requires 32 point discrete input points These for 32 Input Mode inputs provide e individual active channel bits for each channel e a digital representation of the analog signal in various data formats e individual sign bits for each channel e individual broken transmitter detection bits for each channel Since all input points are automatically mapped into V memory it is very easy to determine the location of the two data words that will be assigned to the module F4 04AD Al PS PR ST O 8pt 8pt 32pt 16pt 16pt 16pt r Input Input Input Input Output Output O XO X10 X20 X60 X7 X17 X57 X77 44 a V40400 V40403 5 Q V40402 V40401 ae MSB LSB MSB LSB 2 ERREREERESREEans 6k Ja Ls Bit 15 14 13 12 1 10 9 8 765 43 21 0 Bit 15 1413121110 9 8 765 43 210 s Whe X X X X x XxX X O 5 54 4 3 32 2 vt 7 07 0 7 07 0 Within these data word locations the individual bits represent specific information about the analog signal Active Channel The first four input bits 0 3 of the upper 40401 Indicator Inputs V memory location indicate the active MSB LSB 32 Input Mode channel Each bit corre
42. s z p depending on the setting of this jumper Use 32 a E Input mode if you want to maintain compatibility 3 E with PLC software written for the D4 04AD or to E use features not available in 16 Input mode and to 3 E simplify supporting ladder logic However use 16 E Input Mode if you must consume fewer X inputs D The feature chart on the next page can help you Q choose the mode for your application pe 5 1 oO Mode Jumper I O Points Consumed ies 16 Input Remove XO X17 57 32 Input Install XO X37 Number of X Input Bits Required From CPU 16 32 Input Value 12 Bit Plus Sign Bit Yes Yes Input Value 2 s Complement 12 Bits No Yes Input Value 2 s Complement 13 Bits No Yes Input Value 12 bit Yes Yes Input Value Binary Coded Decimal 16 bits No Yes for bipolar voltage ranges only Active Channel Indicator Inputs Yes Yes Broken Transmitter Detection 1 bit 4 bits combined individual Sign Bit s indicates negative analog value 1 bit 4 bits combined individual Based on this jumper selection the module can behave as two different modules from the CPU point of view This chapter covers both modes so only the CPU program examples labeled for the mode you choose will apply 3 6 F4 04AD 4 Channel Analog Input m lt T LL 4 Ch Analog Input Operating Range Selection 16 Input Mode These three jumpers select the voltage or current range for all f
43. s important to take a few minutes to understand how the module processes and represents the analog signals The F4 04AD module supplies one channel of data per each CPU scan This is true for both 16 Input and 32 Input Modes Since there are four channels it can take up to four scans to get data for all channels Once all channels have been scanned the process starts over with channel 1 Unused channels are not processed so if you select only two channels then each channel will be updated every other scan G 0 Scan a ve Read Inputs n i2 Scan N lt Channel1 Execute Application Program Read the data Scan N 1 lt Channel 2 RA Scan N 2 Channel 3 Store data Scan N 3 Channel 4 H _ Scan N 4 Channel 1 y Write to Outputs Even though channel updates to the CPU are synchronous with the CPU scan the module asynchronously monitors the analog transmitter signal and converts the signal to a 12 bit binary representation This enables the module to continuously provide accurate measurements without slowing down the discrete control logic in the RLL program At the top of the module s faceplate LED indicators display information for the selected channel The top row of LEDs display diagnostic information The TB indicator turns on when the module senses a lo
44. sponds to a single channel to indicate four possible active channels The module 111111987654321 0 automatically turns these bits on and off Boe NO each scan to indicate the active channel for that scan V40402 MSB LSB Bits Active nels Scan 3 2 1 0 Channel 111111987654321 0 N 0001 1 sie N 1 0010 2 N 2 0100 3 F active channel inputs N 3 1000 4 0001 1 N 4 Analog Data Bits 32 Input Mode F4 04AD 4 Channel Analog Input In 32 Input Mode the four possible data formats are 12 bit magnitude plus sign two s complement 13 bit format two s complement 12 bit format and 12 bit magnitude In the two 12 bit magnitude modes the first twelve bits of the lower word represent the analog value s magnitude Bit Value Bit Value 0 1 6 64 1 2 7 128 2 4 8 256 3 8 9 512 4 16 10 1024 5 32 11 2048 The two s complement formats are for bipolar inputs Each range uses 16 data bits and embeds the sign bit information in the data no sign bit is required in these ranges Each range is centered at 0 counting upward for positive numbers Negative numbers start at 65535 for count 1 and count downward Bit Value Bit Value 0 1 8 256 1 2 9 512 2 4 10 1024 3 8 11 2048 4 16 12 4096 5 32 13 8192 6 64 14 16384 7 128 15 32768 The BCD formats use 16 bits of the lower word to represent four binary coded decimal digits from 0000 to 9999 Digit 1 is the LSD Digit 4 is the MSD Bit Value Bit Value O digit 1 1 8
45. th on the data compare the data against preset values etc P1 E LDF X20 K12 BCD X34 X35 OUT V3000 X34 X35 OUT 1 1 V3001 X34 X35 OUT M V3002 X34 X35 OUT V3003 Loads the first 12 bits of the data word into the accumulator The X address depends on the I O configuration It s usually easier to perform math operations in BCD so it is best to convert the data to BCD immediately You can omit this instruction if your application does not require it such as PID loops When X34 and X35 are off channel 1 data is being sent to the CPU The OUT instruction moves the data from the accumulator to V3000 When X34 is on and X35 is off channel 2 data is stored in V3001 When X34 is off and X35 is on channel 3 data is stored in V3002 When X34 and X35 are on channel 4 data is stored in V3003 Note this example uses SP1 which is always on You could also use an X C etc permissive contact T P gt 5 v O Q xe fa 7 T oO BK gt iw F4 04AD 4 Channel Analog Input Optional Method DL440 450 XI x 4 430 440 450 5 Qa a Reading Values lt x E DL430 os EE x 430 440 450 we Q a The previous example used the OUT instruction to store channel data in V memory requiring four ladder rungs The OUTX Out Indexed instruction in the next examp
46. the equivalent to 1 count At 5V the conversion is to 61440 counts The conversion method translates positive polarity signals per normal binary scaling It s negative values that include an additional step In this case we start at the top of the 16 bit binary range 65535 and count downward With zero count point at mid range negative numbers transition to positive numbers As an example suppose the module sends the counts of 6 and 15 in successive scans to the CPU The RLL program is going to sum the input values When the module is configured for two s complement format negative numbers are specially formatted It takes the 6 in binary and takes a one s complement by inverting all the bits Then it adds 1 to the LSB to get a two s complement representation The 16 bit result the module sends to the CPU is decimal 65530 or FFFA hex representing 6 In the ladder program you can add 15 to this number By ignoring all end carries we have the correct answer of 9 The ladder program is simplified because it does not need to examine a sign bit to do a subtract instruction A B C V40401 MSB LSB Example In the module we start with the number 6 ololo olo o o o o o olo o 1 110 Take one s complement by inverting all the bits 4 fafa fa fa fafa ft ft fa a Jt ft Jojo Add 1 to the LSB for two
47. tial Voltage no a MN gt CES Ov WW l 5 v Transmitter D v D DV 250 ohms amp a c W CH3 I Mol Vv sT Differential Current OA D M 3 ov v Transmitter OY RSA Hw et cle gex 250 ohms gt CH3 1 Nay D V FADN ov CH4 AA G7 AN V D Not Used x l if CH4 Or See NOTE 2 move V350 ohms a Tpl CP 7 O 10VDC ey 1 5VDC D User 10 10VDC Supply 4mA 20mA H A A D Return J D H iP Channel select 24VDC 0 18 ey F4 04AD User Supply 21 8 26 4 VDC AA Class 2 D my 2 DT pO a o gt Rs TAD 5 Cc F4 04AD 4 Channel Analog Input Module Operation DL430 Special Even though the module can be placed in any slot it is important to examine the Requirements configuration if you re using a DL430 CPU As you ll see in the section on writing the program you use V memory locations to extract the analog data As shown in the following diagram if you place the module so that the input points do not start ona V memory boundary the instructions can t access the data Correct F4 04AD Al L y ao A O 16pt 8pt 16pt 32pt 8pt 8pt Output Output Input Input Input Input l e Slot 0 Slot 1 Slot 2 Slot
48. ts Common Mode Voltage Range 10V maximum Linearity 0 025 of span 1 count maximum unipolar Input Stability 1 2 count Cross Talk 80 dB 1 2 count maximum Full Scale Calibration Error 12 counts maximum voltage input 16 counts maximum at 20 000 mA current input Offset Calibration Error 1 count maximum voltage input 2 counts maximum at 4 000 mA current input Maximum Inaccuracy 0 4 maximum 25 C 77 F 0 55 maximum 0 to 60 C 32 to 140 F Conversion Time lt 6 mS per selected channel Noise Rejection Ratio Normal mode 3 dB 50 Hz 6 dB octave Common mode 70 dB DC to 12 kHz PLC Update Rate 4 channel per scan max Digital Input Points Required 16 or 32 bit mode 16 or 32 X input points 12 data bits 4 bits optional for two s complement mode 4 channel select bits 12 bits unused in 32 bit mode Power Budget Requirement 85 mA power from base External Power Supply 24 VDC 10 100 mA class 2 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 Insulation Resistance 10 MQ 500 VDC Noise Immunity NEMA ICS3 304 D gt
49. use the method in the previous example to generate four independent broken transmitter bits Just replace X37 with X36 in the example 3 27 F4 04AD 4 Channel Analog Input Writing the Control Program 32 Input Mode Multiple Active Channels If you have configured the F4 04AD module for 32 Input mode use the following examples to get started writing the control program for modules configured in 16 Input mode go back to the section titled Writing the Control Program 16 Input Mode The analog data is multiplexed into the lower word It is presented in either 12 or 16 bits depending on the range and format selected In the 12 bit format modes the upper 4 bits are always 0000 The upper word contains three groups of bits that contain active channel status sign bit information and broken transmitter status Each bit group contains one bit for each channel The upper four bits are unused and are always 0000 The control program must determine which channel s data is being sent from the module If you have enabled only one channel its data will be available on every scan Two or more channels require multiplexing the lower data word Since the module communicates as X input points to the CPU it is very easy to use the active channel status bits in the upper word to determine which channel is being monitored
Download Pdf Manuals
Related Search
Related Contents
Approx APPIPH01S holder キシレン,米山薬品工業 ,BB0104,2014年11月20日, 安全データシート Sensore luce-vento-pioggia AirLink AKVM-2UDA Quick Start Manual Livret CitySpeaker Rome MobDis User Manual Craftsman 917.376152 Owner`s manual Pourquoi ventiler ? pour évacuer Copyright © All rights reserved.
Failed to retrieve file