Home
Siemens High Speed Counter and Encoder Module SIMATIC 505 User's Manual
Contents
1. 2 2 1 Selecting The HSC module has two channels You can configure each channel Counter Mode to operate in any of four counter modes Prior to installing the module into the I O backplane configure the module by setting the jumper for each channel Figure 2 2 shows the location of the jumpers on the printed circuit board The top set of four pins set the counter mode for Channel 1 The bottom set of four pins set the counter mode for Channel 2 The default setting for the jumpers is 1X Quadrature mode for both channels CH 1 J umper in SLW filtered position d a 3 oja De a e gale a m BS 5 id 3 a CH 2 E a eee J umper in FST 2 unfiltered posi tion a a z E EH Figure 2 2 Jumper Settings NOTE Each channel musthave one and only one jumper installed Series 505 High Speed Counter Installation 2 5 and Encoder Module User s Manual Selecting Counter Operation continued 2 2 2 Selecting the Some applications require faster response on the reset input line than Reset Filter the standard 3 75 ms filter allows F or faster response select the optional 0 95 ms filter The 0 9 ms filter is more sensitive to noisy signals as noted in the Environmental Specifications in Ap
2. Ch2 RST Ch2 INH Ch2 INH 5 24VDC 1 Ch2Y1 TUR rd ep ZO Ch2 Y2 ce 69 ea 62 69 Ia 69 62 69 ea 169 Go G9 Go G9 W 8011401 90 5601 90 891 7911891169199 118817811988 58 98 BV Y OV v0 d dd Figure 2 5 Sample Terminal Block Wiring Diagram Series 505 High Speed Counter Installation 2 9 and Encoder Module User s Manual 2 5 Logging the Module into the Controller 2 5 1 Updating the VO After inserting the module into the base update the I O configuration Configuration in the controller The module does not automatically onfigure itself Definition A VPU or other programming device must be connected to the controller to register and verify controller module communication 2 5 2 Selecting the I O With your VPU or other programming device select the I O Configuration Configuration option For example if you have the module inserted into the first slot of the first I O base configure it as displayed in Figure 2 6 Refer to the manual that came with the programming device for instructions VO Address The HSC module is logged in as pee ne three input words WX and f
3. Use the Terminal Block Worksheet in Appendix B for planning your wiring N WARNING Tum off power to the I O base and any modules installed in the base before inserting or removing a module Failure to do so may cause potential injury to personnel or can damage equipment 2 4 2 Powering Up After wiring the terminal block for the HSC restore power tothe the Module base Wire Gauge 22 16 Max Width 5 54 mm 218 in Stud Size 44 2 5mm Amp Part 321462 O Max Width 4 62 mm 182 in Stud Size 4 2 5mm Amp Part 327891 Specify 2pt connector Figure 2 4 Wiring Guidelines 2 8 Installation Series 505 High Speed Counter and Encoder Module User s Manual a 5 24 VDC OV Sinking Driver Chl A GY Ch1 A Chi B Ch1 B Ch1 RST Ch1 RST Ch1 INH Ch1 INH 5 24VDC_ N Ch1Y1 ig Ye WW eV cv ly av J pad 69 691 8 8 88 A 69 69 ee W G9 Ch1Y2 dd co C CO p 5 24 VDC Sourcing Driver Ch2A Ch2 A Ch2 B Ch2 B Ch2 RST
4. Check that wires are as short as possible and make wires the same length if possible Broken wire Wrong quadrature mode or 2 jumpers on same chan nel Check continuity Check jumper position and condition of jumper metal insert intact Signal wire noise See wiring considerations Section 2 1 4 Broken wire Count being reset or in hibited Check continuity Check Reset and Inhibit signals from field Check Reset and Inhibit bits in Setup word WY4 Broken wire Pulse too narrow or frequency too high Check continuity Use slower gear ratio and higher resolution count Module not configured in controller I O configuration table Module configured incorrectly in controller Check quadrature mode Check signal wire noise Marginal input signal Configure module Reconfigure the module Module has failed self diagnostics Series 505 High Speed Counter and Encoder Module User s Manual Return module for repair Troubleshooting 4 1 4 1 Checking the Operation ofthe Module To check the operation of the module follovv these steps NOTE Module outputs vvill turn on during this procedure 1 Using a programming device force all presets to 0 2 Reset both counters through the reset signals from your application Using the default configuration the outputs should turn on 3 Using your programming device force the presets to any number greater than 0 T
5. Programming Reference Manual PPX 505 8104 2 1 3 Handling the Many integrated circuit IC devices are susceptible to damage by the Module discharge of static electricity Follow the suggestions listed below to reduce the probability of damage to these devices when you are handling a controller a base controller or any of the 170 modules Both the module and the person handling the module should be at the same ground potential To accomplish this ensure the following e Themodule is transported in an anti static container or antistatic material e Thework area has a conductive pad with a lead connecting it toa common ground e You are grounded by making contact with the conductive pad and or by wearing a grounded wrist strap 2 2 Installation Series 505 High Speed Counter and Encoder Module User s Manual 2 1 4 General Wiring The count inhibit and unfiltered reset inputs are high speed inputs which Considerations may respond to noise present on the lines To avoid problems follow these guidelines when installing the HSC module e Usetheshortest possible wires e Avoid placing signal wires parallel to high energy wires If the two must meet cross them at right angles e Avoid bending the wire into sharp angles e Use wireways for wire routing e When using shielded wires ground them only at the source end for better noise immunity e Place wires so that they don t interfere with existing wiring e Label the wires In
6. Status Word aaa ssi cds incaico a Gg baad 31 2 WX2 and WX3 Channel Count 1 3 1 3 WYA Setup Word sssssssssse Hm 3 1 4 WY5 WY8 Preset Words lele ee ver eee RR HH 3 1 5 I O Update COnsideratiON ll ll seke e kek ke kaka saaa aa aa aaa na kann Series 505 High Speed Counter Programming 3 1 and Encoder Module User s Manual Contoller Input Words 3 1 3 1 1 WXI Status Word 3 2 Programming The HSC module is configured as three word inputs WX and five word outputs WY It occupies eight words of the controller s word image register Word 1 WX is the module s status word Eight bits provide the status of each of the two channels Figure 3 1 shows the format of the status word CH 1 RESET STATUS CH 1 INHIBIT STATUS CH 1 OUTPUT 1STATUS CH 1 OUTPUT 2STATUS CH 2 RESET STATUS CH 2 INHIBIT STATUS CH 2 OUTPUT 1 STATUS CH 2 OUTPUT 2 STATUS 1 2 3 4 5 6 7 8 9 pan o li E E N m UJ m A HR ul IP a 1 Counter reset 1 Count inhibited 1 On 1 On 1 Counter reset 1 Counts inhibited 1 On 1 On gt Reserved and will be returned as zeros Figure 3 1 Status Word Format Reset Status Each channel has a Reset Status bit in the status word If the channel s RESET field input is active this bit will be 1 otherwise this bit will be 0 affect the reset
7. 3 IXQu adrature sas hci acsi eere vac or koi goce ek Red Roa OR RC E ee 1 5 4 2X Quadrature 2312221 34 Varas Etape aber D aeg ah Ceci acc rie A but ot 1 5 5 AX Quadrat te na case cas a Each aaa d e REQUE Pda Chapter2 Installation 2 1 2 2 2 3 2 4 2 5 Before Installing the Module dan au aa aaa aa ama ne nene e ve veze 2 2 2 1 1 Visual Inspection sico ab s 2 1 2 Additional References ccc cee a aaa a a kaka aa aa aa a a kk eka ka 2 1 3 Handling the Module aaa kk L kk kk kk e 2 1 4 General Wiring Considerations 2 1 5 Hierarchy of Installation sssi erernu kk se ks ss ke kk aa kaa ka a saa aaa aa anka ann Selecting Counter Operation eee eee HN NH BH HN NH B B NH NH B NH NH nn NH BN nn NH HN B NH EN B BN NH B B NB BN ON 2 5 2 2 1 Selecting Counter Mode aaa 2 2 2 Selecting the Reset Filler cece endrren rras Inserting the Module in the I O Base eene Wiring the Module pg 2 4 1 Wiring the Terminal Block 0 0 0 cece Re 2 4 2 Powering Up the Module aa Logging the Module into the Contoller BH NH HN HN NH HN B NH NH BH B NH NH B NH NH BH NH NH HN NH NH NH BOB NON BON 2 5 1 Updating the I O Configuration Definition aaa 2 10 2 5 2 Selecting the I O Configuration ee eee 12 101 2 5 3 Viewing I O Configuration Chart 1 aa 2 11 Chapter3 Programming 3 1 Contoller input Words ce cenociscesiecis n n s did 3 1 1 VVXI Status
8. Index Would you be interested in giving us more detailed comments about our manuals Yes Please send me a questionnaire No Thanks anyway Your Name Title Telephone Number Company Name Company Address Manual Name High Speed Counter and Encoder Module User Manual Edition Second Manual Assembly Number 2586546 0019 Date 12 92 Order Number PPX 505 8 113 2 FOLD BUSINESS REPLY MAIL FIRSTCLASS PERMITNO 3 JOHNSON CMY TN POSTAGE WILL BE PAID BY ADDRESSEE SIEMENS INDUSTRIAL AUTOMATION INC 3000 BILL GARLAND RD P O BOX 1255 JOHNSON CITY TN 37605 1255 ATTN Technical Communications M S 3519 FOLD NO POSIAGE NEC ESSARY IF MAILED IN THE UNITED STATES A Assi stance 2 2 C Configuration selecting 2 10 updating 2 10 Configuring jumpers 2 5 2 5 User Options 2 10 Count input 1 4 Count rate 2 2 Counter mode 1 7 D Double count quadrature 1 9 Electrical specifications B 3 Environmental specifi cations B 2 F Features H Handling the HSC 2 2 Index 1 0 address 2 10 configuration chart definition chart 2 10 1 O base 2 7 I nhibit 1 2 ips reset S ri Te 8 3 J J umper 2 5 J umper pins 2 5 L LED 1 2 A input 1 6 B input 1 6 LED indicator 1 6 Logging module into controller 2 10 O Output 1 5 open collector 1 5 specifications B 5 P
9. passband B 2 Specifications Series 505 High Speed Counter and Encoder Module User s Manual B 2 Electrical Specifications Table B 2 Hectrical Specifications Count Inputs Frequency maximum Duty Count Mode Quadrature Mode Cycle Freq Freq w 15 max phase error 10 10 Khz 4 Khz 20 25 Khz 8 Khz 25 30 Khz 10 Khz 30 35 Khz 12 Khz 40 50 Khz 15 Khz 50 45 Khz 15 Khz 60 35 Khz 15 Khz On voltage 4 to 28 VDC Class 2 supply Current on 8to16mA Off voltage 1 5 to 1 5 VDC Current off Oto 1 mA Volt Ampere Curve for Count Inputs 2 4 6 8 10 12 14 16 Bl Off Region Transition Region On Region Series 505 High Speed Counter Specifications B 3 and Encoder Module User s Manual Electrical Specifications continued NOTE Count inputs are constant cument type inputs Reset and Inhibit Inputs On voltage to 28 VDC Class 2 supply Current on 2to 40 mA Off voltage 1 5 to 1 5 VDC Current off Oto 0 75 mA Reset delay time unfiltered 950 us on 950 us off filtered 3 75 ms on 5 00 ms off Inhibit delay time 200 us on 200 us off Volt Ampere Curve for Reset and Inhibit Inputs 30 Min Max 25 20 Vin Volts 15 10 5 10 20 30 40 lin mA MI Off Region VA Transition Region On Region B 4 Specifications Series 505 High Speed Counter and Encoder Module User s Manual Outputs User voltage Voltage drop Peak current Output current 40
10. some installations when both the HSC and TI505 49XX series of relay modules are used false counts may be induced when switching high voltage in the relay module voltage gt 40 Vrms This is the result of internal arcing of the relay contacts If you encounter this problem place a snubber consisting of a 47 ohm 1 4 watt resistor and a 0 022 uFd capacitor across the relay contact terminals on the terminal block Snubbers were not included in the relay modules in order to meet the need for lower current leakage in many applications NOTE Snubber components must be UL component recognized and or CSA Certified for use across the rated voltage being switched by the relay module Series 505 High Speed Counter Installation 2 3 and Encoder Module User s Manual Before Installing the Module continued 2 1 5 Hierarchy of Figure 2 1 provides a simple flowchart of the installation process Installation Set J umper Configuration on Module Y Insert the Module v Connect Wires v Power Up v Log into Controller Figure 2 1 Hierarchy of Installation 2 4 Installation Series 505 High Speed Counter and Encoder Module User s Manual 2 2 Selecting Counter Operation
11. status bit NOTE The Reset Command bit see Setup Word Section 3 1 3 doesnot Series 505 High Speed Counter and Encoder Module User s Manual 3 1 2 WX2 and WX3 Channel Count Inhibit Status Each channel has an Inhibit Status bit in the status word If the channel s Inhibit field input is active or if its Inhibit Command bit is 1 see Setup Word Section 3 1 3 this bit will be 1 and the counter will not count Otherwise this bit will be 0 Output Status Each channel has an Output 1 Status and an Output 2 Status bit in the status word If the corresponding field output is on the bit will be 1 Otherwise the bit will be 0 Word 2 WX2 contains the current value of the Channel 1 count register and Word 3 WX3 contains the current value of the Channel 2 count register These values are unsigned integers between 0 and 65 535 inclusive 3 1 3 VVYA Setup Word Word 4 WY 4 is the module setup word The controller uses eight bits to control the HSC module s operation See Figure 3 2 1 CH 1 RESET 1 Reset counter default 0 2 CH 1 INHIBIT 1 I nhibits counts default 0 3 CH1 OUTPUT1 0 Count gt P On default 4 CH 1 OUTPUT 2 1 Count lt P On 5 CH 2 RESET 1 Reset counter default 0 6 CH 2 INHIBIT 1 I nhibits counts default 0 7 CH2 OUTPUT1 0 Count gt P On default 8 CH 2 OUTPUT 2 1 Count lt P On 9 10 1
12. 0 300 200 100 20 40 Isolation User side to P C side Channel 1 to 2 inputs Channel 1 to 2 outputs Inputs to outputs Power Required from Base Response Time Input pulse to output action Series 505 High Speed Counter and Encoder Module User s Manual N 2 Points per channel 28 VDC max 1 8 VDC max 400 mA 1 0 VDC max 25 mA 500 uA max aki sais wean ate 500 mA for 1 ms 1 Point per channel 275 mA 175 mA 100 1500 V rms ROME 2 5 W Specifications B 5 B 3 Additional Compliances In addition the system complies with applicable requirements of Verband Deutscher Elektrotechniker VDE 0160 Electrical Equipment Series 505 products have been developed with consideration of the draft standard for programmable controllers as described in the proposed standard of the International Electrotechnical Commission Committee IEC 65A WG6 Part 2 information concerning product reliability and compliancetothelEC or other standards can be provided upon request Contact your Siemens Industrial Automation Inc distributor for additional information B 6 Specifications Series 505 High Speed Counter and Encoder Module User s Manual Customer Registration We would like to know what you think about our user manuals so that we can serve you better How would you rate the quality of our manuals Excellent Good Fair Poor Accuracy Organization Clarity Completeness Overall design Size
13. 0 200 WX10 V20 V19 Following each calculation reset the HSC restart the Timer and perform a new calculation 1 second later C23 ONE SECOND TIMER HAS EXPIRED COMPUTE FLOW RESTART TIMER ON NEXT SCAN C20 C23 z TMRF2 9 P 01 000 C23 C24 SCALE COUNTER VALUE IN GALS MINUTE PUT RESULTS IN LOCATIONS V23 V24 RESET HSC CHANNEL 1 C23 C24 e MULT1 DIV1 BITS1 e A WX10 V21 A WY12 B V20 V19 C V21 V23 N 1 C25 TURN OFF CHANNEL 1 RESET TO HSC C23 C25 FX BITC1 He A WY12 N 1 Figure 5 5 LadderLogic for How Rate Example Applications 5 5 Series 505 High Speed Counter and Encoder Module User s Manual 5 3 Tank Filling Example 5 3 1 Description 5 3 2 Solution 5 6 Applications The HSC module measures the volume of liquid and control the filling valve See Figure 5 6 A flow meter generating 200 pulses per gallon is connected to the HSC channel 2 input A Output 2 controls the filling valve In this example the HSC operates in the pulse counter mode A count of 100 000 pulses is required to fill the tank to 500 gallons As this would overflow the HSC the following RLL is used to count 10 sets of 10 000 pulses before closing the filling valve In this program output 1 is used to indicate 10 000 pulses Since the HSC runs asynchronous to the PLC the program accumulates overcounts for each loop and adjusts the
14. 1 12 gt Reserved and should be set to O off 13 14 15 16 Figure 3 2 Setup Word Format Series 505 High Speed Counter Programming 3 3 and Encoder Module User s Manual Contoller Input Words continued 3 1 4 WY5 WY8 Preset Words 3 1 5 VO Update Consideration 3 4 Programming Reset Command Both channels have a Reset Command bit A transition from O off to 1 on of the Reset Command acts as a one shot providing a momentary reset of the channel setting the count to 0 Even though the bit remains 1 counting resumes Inhibit Command Both channels have an I nhibit Command bit When this bit is set to 1 the channel stops counting NOTE When in the pulse counter mode if the A orB input isin a different state at the beginning and end of an inhibit signal the count will change according to the normal counting logic If both A and B inputs are in different states the change may be asmuch astwo counts Output Level The output level bit specifies when the outputs for each channel turn on e Setting the output level bit to 0 turns the output on when the current count is greater than or equal tothe preset If the current count is less than the preset the output is off e Setting the output level bit to 1 turns the output on when the current count is less than the preset If the current count is greater than or equal to the preset the output is off Words WY 5 through WY 8 specifies preset values for ea
15. Powering up the module 2 8 Pulse counter mode 1 7 Pulse width 1 2 B 4 Index 1 Q T Quadrature Mode quadruple count 1 10 Terminal block 2 8 Quadrature mode wiring diagram 2 9 double count 1 9 worksheet 2 8 single count I 8 Quadruple count quadrature mode 1 10 References 2 2 Using status words 3 2 Reset F2 ta S VV Single count quadrature 1 8 Wiring Static electricity 2 2 considerations 2 3 Index 2 SIMATIC is a registered trademark of Siemens AG Series 505 and TISOFT are trademarks of Siemens Industrial Automation Inc Texas Instruments and TI are registered trademarks of Texas Instruments Incorporated T1505 T1525 T1535 and T1545 are trademarks of Texas Instruments Incorporated UL is a registered trademark of Underwriters Laboratories
16. REMAINING COUNT INTO PRESET 2 C51 C8 e CTR2 SUB2 MOVW 2 e P 9 A V200 A V201 B V100 B WY7 C140 C WY8 N 1 C256 TEST FOR COMPLETION OF 100 000 COUNTS INHIBIT FURTHER COUNTS AND CLEAR OVERCOUNT ACCUMULATOR C256 WILL THEN TURN OFF C140 AND DISABLE THE VALVE C8 C256 e BITP2 BITS2 LDC3 C e A WX1 A WY4 A 100 N 8 N 6 N 0 C51 WHEN HSC CH2 OUTPUT 1 TURNS ON PULSE COUNT IS 10 000 OR GREATER RESET COUNTER AND START NEW COUNT C51 C8 Y20 C51 e Vt VT BITP5 BITS5 e Q A WXt1 A WY4 N 7 N 5 Figure 5 7 LadderLogic for Tank Filling Example continued 5 8 Applications Series 505 High Speed Counter and Encoder Module User s Manual Appendix A Terminal Block Worksheet OV 98 8V ZV 9V SV aa a e a a a a a a ala a 8 1198 58 99 SO 99 88 8010 90 Sd 1901189114 e a a e a a le 0 40 vO 9 CO 88 8 9 Y amp 9 amp 9 9 8 e e vajjcallca Series 505 High Speed Counter Terminal Block Worksheet A 1 and Encoder Module
17. SIEMENS SIMATIC 505 High Speed Gounter and Encoder Module User Manual Order Number PPX 505 8113 2 Manual Assembly Number 2586546 0019 Second Edition Copyright 1992 by Siemens Industrial Automation Inc All Rights Reserved Printed in USA Reproduction transmission or use of this document or contents is not permitted vvithout express consent of Siemens Industrial Automation Inc All rights including rights created by patent grant or registration of a utility model or design are reserved Since Siemens Industrial Automation Inc does not possess full access to data concerning all of the uses and applications of customer s products we do not assume responsibility either for customer product design or for any infringements of patents or rights of others which may result from our assistance 01 21 92 Technical data is subject to change We check the contents of every manual for accuracy at the time it is approved for printing however there may be undetected errors Any errors found will be corrected in subsequent editions Any suggestions for improvement are welcomed Contents Chapterl Overview 1 1 1 2 1 3 14 1 5 Feallles sd aa cra as 1 2 1 5 1 6 Counting Modes at Lk tn tk tanta na anan anan aa antann aannnsennaannan OUPUS serene kann pa tk Pe LED Indicators 22a kak ay RARE A a e pa ni nda da aa 1 5 1 Pulse Counter Mode 1 5 2 Quadrature Mode sui Cede un Cl c C ER ed Bake 1 5
18. Speed CounterLEDS Pulse Counter Mode 0 1X Quadrature Mode gati sie i 2X Quadrature Mode 4X Quadrature Mode Hierarchy of Installation Jumper Settings na aaa anen Inserting the Module into the I O Base Wiring Guidelines Sample Terminal Block Wiring Diagram Sample VO Definition Chart VO Configuration Chart Status Word Format Setup Word Format a Sprayer Application HSC Connections aus rn VVa veform Pattem Ladder Logic for Sprayer Example Ladder Logic for Flow Rate Example Tank Filing Application Ladder Logic for Tank Filling Example Contents List of Tables 1 1 B 1 B 2 Determining Count in Pulse Counter Mode sess Environmental Specifications aaa Electrical Specifications Contents Chapter 1 Overview LL AAA mo Pe EA ADA SSS Av MEESZWA LZ MPSS kw pk eka oe L3 OUDUS da fi l n fk a a REA REO A AAA aj a ka A a a l LA LEDINOICAYTONS ke ki k k m a av e a a 1 5 Counting Modes l eka QUE EUER OR OE E a OCACA UR ene ACC a A a a 1 5 1 Pulse CounterMode sen eens 1 5 2 Quadrature Mode Overview 1 Los 1X CA AA UJE kurave x ma unto Eo ore ke dete Ys a 34e Eam 1 5 4 2X Quadrature dida di diana 1 5 5 4X Quadrature sesion bh ys Gases ented eons Series 505 High Speed Counter O
19. User s Manual Appendix B Specifications B 1 Environmental Specifications tett nna n kann aaa nna n kaa nnn nnn B2 Electrical Specifications B 3 Additional Compliances Series 505 High Speed Counter and Encoder Module User s Manual Specifications B 1 B 1 Environmental Spec ific ations Table B 1 Environmental Specifications Operating Temperature 0 to 60 C 32 to 140 F Storage Temperature 40 to 70 C 40 to 158 F Relative Humidity 5 to 95 noncondensing Pollution Degree 2 IEC 664 664A Vibration Sinusoidal IEC 68 2 6 Test Fc 0 15 mm peak to peak 10 57 Hz 1 0 g 57 150 Hz Random NAVMAT P 9492 or IEC 68 2 34 Test Fdc with 0 04 g2 Hz 80 350 Hz and 3 dB octave rolloff 80 20 Hz and 350 2000 Hz at 10 min axis Impact Shock IEC 68 2 27 Test Ea Half Sine 15 g 11 ms Electrostatic Discharge IEC 801 Part 2 Level 4 15 kV Electrical Noise Immunity IEC 801 Part 4 Level 3 Conducted MIL STD 461B Part 4 CS01 CS02 CS06 IEC 255 4 Appendix E EEC 4517 79 Com 78 766 Final Part 4 IEEE 472 2 5 kV Radiated IEC 801 Part 3 Level 3 MIL STD 461B Part 4 RS01 RS02 Corrosion Protection All parts are of corrosion resistant material or are plated or painted as corrosion protection Agency Approvals UL Listed CSA Certified TThe unfilltered reset input may be susceptible to these types of EMI The module responds to noise signals at its count or inhibit inputs that are within its
20. WOA tele eee eee ee tr pra ee eet HIR an 3 1 2 WX2 and WX3 Channel Count e eee eee e e eee ene e nana nee aaa nna en 3 1 3 WY4 Setup VOTO pac ac ka tae EY OR br eee ea 3 1 4 WY5 WY8 Preset Words 2 0 ccc ccc cece a pe a aaa an aa aa nannan 3 1 5 WO Update Considera tiom ss riri iiiaae ii aa B ai EAA A EAA Contents jii Chapter Troubleshooting 41 Checking the Operation of the Module Chapter5 Applications 51 Sprayer Example aaa kaka ana aa kaa anan anana aaa an aaa aa kan aa aa aa 5 1 1 ptem sia un e it a diy dt an 5 1 2 SOULO IM ara eres re mc et at n n na a re ee pea a Ze tk m 52 How Rate Example seee een 5 2 1 Desc nptlOn aeree ema na n ee e dt ES 5 2 2 SOUEN irr ERE antr EX do C me e a 53 Tank Alling Example nana nn dd A 5 3 1 Descnption pasi osuere xen ERE Eee asadas 5 3 2 SOlUTION siii a aides iaa ada eects AppendixA Terminal Block Worksheet A 1 Terminal Block Worksheet een nnn n n nnn Appendix B Specifications Bl Environmental Specifications nana nna annan aaa nnn B2 Bectical Specifications mad ane eee aaa B3 Additional Compliances knn n kan kan nna nnn nnn iv Contents List of Figures 1 1 1 2 1 3 1 4 1 5 1 6 1 7 2 1 2 2 2 3 2 4 2 5 2 6 2 7 3 1 3 2 5 1 5 2 5 3 5 4 5 5 5 6 5 7 High Soeed CounterModule OUUTE ane ab ana sonb wan pi aides High
21. aveform shown in Figure 5 3 Travels Up Travels Down oo Sprayer Travel LS1 P1 P2 LS2 P2 P1 LS1 Foo o Y r y OUTPUT 1 OUTPUT 2 Sprayer Enable Figure 5 3 Waveform Pattem Series 505 High Speed Counter Applications 5 3 and Encoder Module User s Manual Sprayer Example continued 5 4 Applications C1 C12 HE SETUP CHANNEL 1 SELECT COUNT CLEAR CHANNEL 1 OUTPUT 2 TO GO INHIBIT SETUP WORD LOW AT PRESET ON CHANNEL 1 LDC1 BITS1 BITS2 A WY4 A WY4 A WY4 N 0 N 4 N 2 C14 LOADS CHANNEL 1 PRESETS 1 amp 2 FROM V200 8 V201 INHIBIT CHANNEL 1 BIT IS CLEARED COUNTING IS ENABLED Hr MOVW1 A V200 B WY5 N 2 BITC23 A WY4 N 2 Figure 5 4 Ladder Logic for Sprayer Example Series 505 High Speed Counter and Encoder Module User s Manual 5 2 How Rate Example 5 2 1 Description 5 2 2 Solution A flow meter outputs 200 pulses per gallon The program requires calculation of flow rate in gallons per minute GPM Configure the HSC as WX9 WX11 WY 12 WY 16 Attach channel 1 to the flow meter The HSC accumulates flow meter pulses for the duration of a 1 second fast timer In the controller accumulated pulses are scaled to GPM by the following calculation using the controller memory locations Equation GPM Program Locations V23 V24 Pulses per Sec 6
22. ch channel You can specify any value between 0 and 65 535 e WY5 specifies the value for Preset 1 Channel 1 e WY6 specifies the value for Preset 2 Channel 1 e WY7 specifies the value for Preset 1 Channel 2 e WY8 specifies the value for Preset 2 Channel 2 In each scan the controller reads the module VVX vvords before updating the WY words For example during a scan when the controller resets the module the WX word s contain counter values existing prior to the reset Series 505 High Speed Counter and Encoder Module User s Manual Input LED is not on and Output LED is not on Counts in wrong direction Incorrect count Counts erratically Does not count Counts too fast or too slow Controller does not communicate with module Nonfatal error as a result of the module Chapter 4 Troubleshooting Probable Cause Corrective Action No power to board Re seat board Check for bent pins on board connector Check your base power supply Problems with input signals or output being reset or inhibited Connections wrong Check wiring Check encoder or field inputs Check Reset and Inhibit bits in Setup word WY4 Reverse wiring for inputs A and B Input wires substantially different lengths Connections wrong Check that wires are as short as possible and make wires the same length if possible Trace wiring connections Input wires substantially different lengths
23. er s Manual 1 5 Counting Modes 1 5 1 Pulse Counter Mode Each channel has two inputs A and B In the pulse counter mode counting occurs on the rising or falling edge of the incoming pulses The relationship of the states of these two inputs determines the direction of the count See Table 1 1 Typical devices for counting are high speed static switches or incremental encoders Table 1 1 Determining Count in Pulse Counter Mode In the pulse counter mode the channel senses the edges of the A or the B input to count up or down See Figure 1 4 To reliably record this transition from low to high the pulse width must be at least 8 us Pulse Counter Mode Count Value Count Input Input A Count Up Count Down Figure 1 4 Pulse Counter Mode 0 Series 505 High Speed Counter Overview 1 7 and Encoder Module User s Manual Counting Modes continued 1 5 2 Quadrature Mode For quadrature mode each channel counts according to rising and or Overview falling edges Typical devices for quadrature inputs are optical encoders Different quadrature modes are selected based on the resolution required by the application and the encoder used 1 5 3 1X Quadrature The module counts on the edges of the A input pulses e When input A leads input B the HSC counts up on each rising edge of input A e When input B leads input A the HSC counts down on the falling edge of input A Figure 1 5 illustrates the relationsh
24. final loop to reach the exact count The program utilizes the fact that the HSC VVX s are read before the WY s are written in an I O cycle Several V memory locations are used in the program their initial values are V200 10 000 channel 2 preset 1 V201 30 000 channel 2 preset 2 initial value V100 0 overcounts will be accumulated here Input A Output 2 HSC Channel 2 Figure 5 6 Tank Filling Application Series 505 High Speed Counter and Encoder Module User s Manual C140 C140 IS USED TO INITIATE TERMINATE FILLING X128 C140 n ge C140 C256 e yt C1 RESET HSC LOAD INITAL PRESETS C140 Y20 C1 e MV LDC4 BITS1 MOVW1 e e A WY4 A WY4 A V200 B WY7 N 0 N 5 N 2 C141 CLEAR RESET BIT C1 C141 BITC1 a Q A WY4 N 5 Y20 ENABLE LIQUID FLOW ci Y20 e Y20 C140 i Figure 5 7 LadderLogic for Tank Filling Example Series 505 High Speed Counter and Encoder Module User s Manual Applications 5 7 Tank Filling Example continued C61 ACCUMULATE THE OVERCOUNTS C51 C61 SUB1 ADD1 C e A WX3 A V101 B V200 B V100 C V101 C V100 C8 AFTER 90 000 PULSES SUBTRACT THE OVERCOUNTS FROM 10 000 AND LOAD THE
25. he HSC will be used to enable the sprayer during a pre defined section of travel See Figure 5 1 The encoder resolution is 500 cycles per revolution One shaft revolution equals 1 inch of sprayer travel When encoder signal A leads the direction of travel is up LLLLLLLLLALLLLLLLL 2 ke LS2 Reverse Motor Stop Spray SL Start Spray LS1 Home Reverses Motor MAPS LLL LL LLL LLL Figure 5 1 Sprayer Application 5 2 Applications Series 505 High Speed Counter and Encoder Module User s Manual 5 1 2 Solution Connect encoder signals A and B toinputs A and B of the HSC See Figure 5 2 Limit switch 1 sprayer home drives channel 1 Reset Channel 1 outputs 1 and 2 are wire ORed and drive the sprayer enable Select 1X Quadrature mode for channel 1 setup channel 1 output 1 to turn off when count gt preset output 2 to turn on when count lt preset Presets 1 and 2 are loaded with the Start Sprayer and Stop Sprayer counts respectively The Start Sprayer count 500 X Distance inches from LS1 to Start Sprayer position The Stop Sprayer count 500 X Distance inches from LS1 to Stop Sprayer position HSC Channel 1 Encoder A Input A Encoder B gt Input B LSI Reset Spray Enable Output 1 me Output 2 Figure 5 2 HSC Connections As the sprayer moves up and down the channel 1 outputs and the sprayer enable signal levels produce the w
26. he outputs should turn off NOTE Before resuming normal operation clear any vvords that you have forced Othervvise these vvords remain forced during operation and could yield unexpected results If you used the setup word to configure the module then the output follows your configuration To check the output operation look at the counter status word WX1 the outputs correspond to the follovving bits Channel 1 Output 1 bit 3 Channel 1 Output 2 bit 4 0 Output off Channel 2 Output 1 bit 7 1 Output on Channel 2 Output 2 bit 8 4 2 Troubleshooting Series 505 High Speed Counter and Encoder Module User s Manual Chapter 5 Applications 5 1 Sprayer Example s eese nr SLL JDescnptioh osaocenxieswkipeek A AA A RW eeu ri dus 54 2 SOOM Siga enr deinen Coens eka tne a o FA CP De Ac A n 5 2 How Rate Example s sana aa dk er E 5 4 1 Descrmptlon io eee ice re eine eie E cn RIEN EUR RE En x Re 5 2 2 Solution uap rtig iea ter nO pega i gb e e dr Ar a D ca e i Gt t eae 5 3 Tank Filling Example 55525255225222252222222245222 2522222225253 5 3 1 Descnptlon oom peda dd 52 2 O hone tayo Bara godt Series 505 High Speed Counter Applications 5 1 and Encoder Module User s Manual 5 1 Sprayer Example 5 1 1 Description A reversible DC motor drives a paint sprayer up and down a vertical assembly A quadrature encoder on the drive shaft senses the direction and relative position of the sprayer Channel 1 of t
27. ip between inputs A and B and the count valuein 1X Quadrature mode 1X Quadrature Count Value SANE ki d Y Count Up Count Down A Leading B Leading Figure 1 5 1X Quadrature Mode 1 8 Overview Series 505 High Speed Counter and Encoder Module User s Manual 1 5 4 2X Quadrature If input A leads input B the module counts up on both the rising and falling edges of input A If input B leads input A the module counts down on the rising and falling edges of input A Figure 1 6 illustrates the relationship between inputs A and B and the count value in the 2X quadrature mode 2X Quadrature Count Value Di Val Counts Up Counts Down A Leading B Leading Figure 1 6 2X Quadrature Mode Series 505 High Speed Counter Overview 1 9 and Encoder Module User s Manual Counting Modes continued 1 5 5 AX Quadrature If input A leads input B the module counts up on rising and falling edges of both input A and input B If input B leads input A the module counts down on the rising and falling edges of input A and input B Figure 1 7 shows the relationship between inputs A and B and the count value in the 4X quadrature mode 4X Quadrature Count Value Counts Up Counts Down A Leading B Leading Figure 1 7 4X Quadrature Mode 1 10 Overview Series 505 High Speed Counter and Encoder Module User s Manual 2 1 2 2 2 3 2 4 2 5 Chapter 2 Installation Before Installing the M
28. ive of the current output words WY base MO MODULE DERINITION FOR CHANNEL 1 BASE 00 1 0 Number of Bit and Word I O Special Slot Address X Y WX WY Function 2 200 203 105 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Slot Number SF Module Install the HSC into any avail The HSC is not an SF able I O slot on the Series 505 Module The default for this base definition is NO Figure 2 6 Sample VO Definition Chart 2 10 Installation Series 505 High Speed Counter and Encoder Module User s Manual 2 5 3 Viewing the I O Configuration IO CONFIGURATION CHART FOR 1 0 POINTS Slot 1 Slot 2 Slot 3 Slot 4 Slot 5 Slot 6 Series 505 High Speed Counter and Encoder Module User s Manual Use SHOW to view the I O Configuration Chart If the HSC is installed in slot 1 for channel 1 base 00 the I O chart will appear Chart as displayed in Figure 2 7 CHANNEL 1 BASE 00 WX001 WX002 WX003 WY 004 WY 005 WY O06 WY 007 WY 008 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 Figure 2 7 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 VO Configuration Chart 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 Installation 2 11 Chapter 3 Progra mming 31 Controller Input Words 11 nn ana nan nn cece eee nna nna n aaa kaa annan naannna 3 1 1 WXI
29. odule cen nn nn n nn n n nn 2 1 1 Visual Inspection rra edam pp n S prosa ton em ex ra Fs a Ba 2 1 2 Additional References aa 21 3 Handling the Module gjiri sa kila wi See RR pn e onde Eres 2 1 4 General Wiring Considerations 2 1 5 Hierarchy ot Nsta la BON cua genin vd dh e d ERU Selecting Counter Operation eee area an nannan nana anana annnnan 221 Selecting Counter Mode asa ive da vivan ii Da pk ai 2 2 2 Selecting the Reset Filter ccc eee eee eee Inserting the Module in the I O Base Wiring the Module 4 iss kic kok CA ai CA KC ACR CE CC CE RR RA a ak 2 4 1 Wiring the Terminal Block 2 4 2 Powering Up the Module Logging the Module into the Controller i eee 2 5 1 Updating the VO Configuration Definition 25 2 Selecting the VO Configuration dani an res ndash mnn 25 3 Viewing JO Configuration Chart oia Rhet tal 2 11 Series 505 High Speed Counter Installation 2 1 and Encoder Module User s Manual 2 1 Before Installing the Module 2 1 1 Visual Inspection If thereis any visible damage to the module contact your Siemens Industrial Automation Inc distributor for replacement 2 1 2 Additional Refer to the manuals listed below for instructions on installing References programming and troubleshooting your Series 505E controller e SIMATIC TI545 System Manual PPX 545 8101 e SIMATIC TI525 TI535 Hardwareand Installation Manual PPX 505 8103 e SIMATIC TI505
30. pendix B The reset filter may be selected independently for each input channel by placing the jumper in the FST fast or SLW slow position as shown in Figure 2 2 2 6 Installation Series 505 High Speed Counter and Encoder Module User s Manual 2 3 Inserting the Module in the I O Base The HSC is a single vvide module Insert it into any available slot on any Series 505 I O base Do not touch the printed circuit board while inserting the module This could cause electrostatic damage to the components on the board Insert the module as shown in Figure 2 3 A WARNING To minimize potential shock tum off power to the I O base and any modules installed in the base before inserting or removing a module Failure to do so may result in potential injury to personnel or damage to equipment 3cm x kg 2 6in x lb max torque REISE E KISS SSP SSSR Base Plane Connectors gt SIS SSSR SS Sa gt SS d Figure 2 3 Inserting the Module into the I O Base Series 505 High Speed Counter Installation 2 7 and Encoder Module User s Manual 2 4 VViring the Module 2 4 1 VViring the VViring the module consists of vviring the the input and output signals Terminal Block See Figure 2 4 and Figure 2 5 for general guidelines All connections are made at the module terminal block See Figure 2 5 Output returns for Channel 1 and 2 are internally connected
31. re also software reset and inhibit functions See Section 3 Series 505 High Speed Counter and Encoder Module User s Manual 1 3 Outputs Each channel has two open collector outputs capable of driving TTL level signals or sinking up to 0 4 Amps of current at 40 C from an external 24 VDC source and load 9 Y Output A e Output Return Output Circuit P1 P2 65 535 Counter Value Figure 1 2 Output The output transistor Y or Yo turns on when the count is greater than or equal to the corresponding preset Figure 1 2 shows the field output operation You can invert this operation by setting the appropriate bits in the setup word WY 4 See Section 4 1 Series 505 High Speed Counter Overview 1 5 and Encoder Module User s Manual LA LED Indic ators Each channel contains four LED indicators which provide a visual indication of the channel s status as shown in Figure 1 3 HIGH SPEED COUNTER e 8 6 8 Yi 6 e v2 e e CH1 CH2 ASE VO Figure 1 3 High Speed Counter LEDs A Turns on when there is current flow through the A input B Turns on when there is current flow through the B input Y1 Turnson when Output 1 is on Y2 Turns on when Output 2 is on NOTE If Reset or Inhibit is turned on the HSC does not count and theA and B LEDs are frozen 1 6 Overview Series 505 High Speed Counter and Encoder Module Us
32. verview 1 1 and Encoder Module User s Manual 1 1 Features ZN WARNING 1 2 Overvievv The Series 505 High Speed Counter HSC module PPX 505 7002 provides two independent high speed counter channels Each channel has the following features e Four counter modes Pulse counter Quadrature counter modes 1X 2X 4X e A 10kHz count rate with a minimum pulse width of 25 us e Fourinputs two count inputs v reset inhibit e Twofield outputs each controlled by a separate programmable preset e LED indicators display the status of the A and B count inputs and of Y1 and Y2 outputs All inputs may be sinking or sourcing with external 24 VDC power supply The HSC module operates asynchronously from the controller scan You can program the controller to monitor the HSC and or to provide high level control of the HSC s operation To support these functions the HSC provides reset inhibit output and counter status to the controller and accepts reset and inhibit commands and preset values from the controller The HSC module controls its four outputs If the controller switches from the Run mode to the Program mode the HSC continues to function as programmed and outputs may be activated by the HSC This means that if you switch the controller to Program mode any devices controlled by the four outputs of the HSC will continue to operate as programmed Series 505 High Speed Counter and Encoder Module User s Manual Be
33. zel Screw 9 y My M Og MN mo Terminal e Block S Yi Q Q RO Chy O lo n lt q Base Plane Connector TEE ey NU NAVY VAN VAN lt q Printed Circuit Board Front Bezel Bezel Screw Figure 1 1 High Speed Counter Module Series 505 High Speed Counter and Encoder Module User s Manual Overview 1 3 1 2 14 Inputs Overview The HSC module has two independent channels Each channel has four inputs e Reset e Inhibit e Two counter inputs Each input may be used as either sinking or sourcing with external 5 24 VDC power supply The input signals are connected to the field wiring terminal block on the front bezel Counter Inputs Each channel has two counter inputs Input A and Input B Reset Current flow through the reset input sets the channel s counter to zero The counter will be held at zero until the reset input becomes inactive Inhibit Current flow through the inhibit input inhibits the channel from counting The counter holds at the last value and does not change until the inhibit input becomes inactive NOTE When in the pulse counter mode if the A or B input isin a different state at the beginning and end of an inhibit signal the count will change according to the normal counting logic If both A and B inputs are in different states the change may be as much as two counts NOTE Therea
Download Pdf Manuals
Related Search
Related Contents
Prozessdrucktransmitter IPT-11 Vers. 4.0 - Emet Guide de l`utilisateur de l`imprimante 3600-4600 Series uStream Guide Utilisateur IWAKI PUMPS AUSTRALIA Troubleshooting evaluation checklist Tecnologia social, economia solidária e políticas públicas Frigidaire FFMV154CLS Wiring diagram GE Quiet-Aire AKL05 Air Conditioner Fujitsu FI-4220CC2 User's Manual Chapter 1 — Introduction Philips CD Soundmachine AZ382 Copyright © All rights reserved.
Failed to retrieve file