Home
High Speed Counter Module Type A1SD61 User`s Manual
Contents
1. 1 Mitsubishi shall accept onerous product repairs for seven 7 years after production of the product is discontinued Discontinuation of production shall be notified with Mitsubishi Technical Bulletins etc 2 Product supply including repair parts is not available after production is discontinued 3 Overseas service Overseas repairs shall be accepted by Mitsubishi s local overseas FA Center Note that the repair conditions at each FA Center may differ 4 Exclusion of loss in opportunity and secondary loss from warranty liability Regardless of the gratis warranty term Mitsubishi shall not be liable for compensation of damages caused by any cause found not to be the responsibility of Mitsubishi loss in opportunity lost profits incurred to the user by Failures of Mitsubishi products special damages and secondary damages whether foreseeable or not compensation for accidents and compensation for damages to products other than Mitsubishi products replacement by the user maintenance of on site equipment start up test run and other tasks 5 Changes in product specifications The specifications given in the catalogs manuals or technical documents are subject to change without prior notice 6 Product application 1 In using the Mitsubishi MELSEC programmable logic controller the usage conditions shall be that the application will not lead to a major accident even if any problem or fault should occur in the programmable logic con
2. indicates a channel number 3 SPECIFICATIONS 3 7 Applicable Encoders The encoders applicable to the A1SD61 are shown below 1 Open collector type 2 CMOS output type Make sure that the output voltage of the encoder complies with the A1SD61 specifications The following types of encoders cannot be used with the A1iSD61 e TTL output type e Line drive output type 4 INSTALLATION AND PRE OPERATION SETTING PROCEDURE MELSEC A 4 INSTALLATION AND PRE OPERATION SETTING PROCEDURE This section describes the pre operation procedure of the A1SD61 the names and settings of each part of the A1SD61 and the wiring method 4 1 Pre operation Setting Procedure The pre operation setting procedure of the A1SD61 is shown below Set the following pins on the print board on the side of the module e Counting speed setting pin eere See section 4 3 e Pulse input voltage setting pin External input voltage setting pin e See section 4 4 4 INSTALLATION AND PRE OPERATION SETTING PROCEDURE 4 2 Handling Precautions Handling precautions for the A1SD61 are given below 1 Protect the case and the terminal block from impact since they are made from resin 2 Do not remove the printed circuit board from the case Doing so can cause a failure 3 When wiring make sure that no wire offcuts remain around the terminal block Remove foreign matter if it has entered 4 Tigh
3. 2 Decremental count Incremental pulse input When a decremental count is made the operation timings of the incre mental and decremental pulse inputs and the present value of the storage buffer memory are shown below A1SD61 BA Erca j Decrementa pulse input Encoder Encoder if 3 Incremental pulse input Decrementa pulse input OFF Incremental pulse in oe OOO put phase A Decremental pulse i f f f input phase B Present value storage buffer memory 1 addresses 0 to 1 2 Incremental decremental count When an incremental decremental count is made the operation timings of the incremental and decremental pulse inputs and the present value of the storage buffer memory are shown below A1SD61 Incremental pulse in put phase A 3 i 1 i 1 I L I E t F i 1 t L I t I 1 Decremental pulse in i i 1 1 1 1 I 1 l 1 I E I put phase B 1 2 1312 3 2 13 2 Present value storage i buffer memory 01 addresses 0 to 1 3 5 PULSE INPUT AND COUNTER PROCESSING METHOD MELSEC A 5 2 2 Phase Pulse Input When the 2 phase pulse input is done the counting mode can be selected from multiplication by one two and four e Multiplied by one Incrementally and decrementally counts phase A pulses at the rise e Multiplied by two Incrementally and decrementally counts phase A pulses both at
4. When the counter function selection is executed by the external input apply ing the voltage to the F START terminal or by the sequence program turning ON the counter function selection start command there is an error in counting l 1 The error range when the counter function is executed by the external input is shown below Max count error 1 AL s x pulse input speed PPS x multiplication number count Min count error isis x pulse input speed PPS x multiplication number count 2 When the counter function is executed by the sequence program there is an additional error for one scan of the PC CPU besides the error as shown in 1 Mitsubishi recommends that the counter function selection should be executed by the external input 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 9 2 Latch Counter Function Count enable command Y10 Present value storage buffer memory addresses 0 to 1 Counter function start command Y14 F START terminal Counter function counter value storage buffer memory addresses 2 to 3 Latch the present value of the counter when a signal input is done The relationships between the counter present value and the counter function selection start command and between the present value and the counter function selection count value buffer memory are shown below 150 100 50 aaeoa a N OO mz aL 8 15
5. e Input voltage in excess of the voltage set by the setting pin will cause failures Cautions on Wiring N CAUTION e Tighten the terminal screws to the stipulated torque Loose screws will cause short circuits fire or malfunctions Overtightening may cause a short circuit or malfunctions due to a damaged screw e Make sure that no foreign matter such as chips or wiring offcuts gets inside the module It will cause fire failure or malfunction Cautions on Startup and Maintenance D DANGER e Do not touch terminals while the power is ON Doing so may result in an electric shock or malfunction e Do not install remove the terminal block more than 50 times after the first use of the product IEC 61131 2 compliant e Be sure to shut off all phases of the external power supply before cleaning or retightening the terminal screws Carrying out this work while the power is ON will cause failure or malfunction of the module CAUTION e Do not disassemble or modify any module This will cause failure malfunction injuries or fire e Be sure to shut off all phases of the external power supply used by the system before mounting or removing the module Mounting or removing it with the power ON can cause failure or malfunction of the module e Before handling the module always touch grounded metal etc to discharge static electricity from the human body Failure to do so can cause the
6. 10 13 The preset value is the same as the Set the values so that they are not ring counter value the same A preset value or coounter value was Turn OFF the ring counter 14 written do the buffer memory while command Y13 cancel the ring the ring counter command Y13 was counter function and execute the write ON 102 A write operation was attempted to Delete the sequence program addresses 0 to 3 containing that operation The ON OFF position data setting Set the limit switch output ON OFF 10 values of dogs 0 to 3 for a channel position data so that the values are are not in ascending order in ascending order for each dog A value outside the range of 0 to 4 20 was set in the multi dog setting Set a value of 0 to 4 The error code is expressed as a decimal number indicates a channel containing the first error during an operation indicates a dog containing the first error during an operation 2 When several errors occur during a single operation only the code number of the first error detected by the A1SD61 is stored 3 Reset the error either by turning ON the error reset command Y17 or by writing 0 to the data error code storage buffer memory address 11 After resetting the error the RUN LED will stay lit instead of flashing 10 1 10 TROUBLE SHOOTING 10 2 RUN LED Flashes or OFF 1 When the RUN LED flashes Check Item Corrective Action Read the error code stor
7. 5 91 in or more from power line Monitor and confirm the input waveform using a synchroscope lf the waveform is not consistent with the specifications correct the waveform Do the pulses input waveform to the speci fications 10 4 Count Cannot be Made Check Item Corrective Action ls ths external wiring of A and B cor Check the external wiring and correct it e When the LEDs went ON check the When voltage is applied to the pulse input external wiring and the pulse generator and take appropriate measures terminals A and B do the LEDs of A and B go ON When the LEDs did not go ON the hardware may be faulty In this case consult your nearest Mitsubishi representative Turn ON the count enable command Y10 Is the count enable command Y10 ON with the sequence program When the PLC CPU contains an error see the troubleshooting section in the PC CPU manual and verify the correct operation functions Does the PLC CPU signal that an error occurred When the count disable function was set by the counter function selection turn OFF Y14 or the F START terminal Is the counter function selection start com mand Y14 ON or is the voltage applied to the F START terminal 10 3 APPENDICES MELSEC A APPENDICES Appendix 1 COMPARING THE A1SD61 AND AD61 S1 Table 1 Performance Comparison Counting Speed Counting
8. 7 is set to 2000 the ring counter value of the storage buffer memory addresses 8 to 9 to 0 and the present value of the storage buffer memory addresses 0 to 1 to 500 respectively the ring counter is executed as shown below Present value 1 2 Increment count If the ring counter value reaches the preset value 2000 the preset value will remain When the next count is made the preset value ring counter value 1 is stored to the present value of the storage buffer memory The ring counter value 0 is not stored to the present value of the storage buffer memory Decrement count If the ring counter value reaches the preset value 0 the preset value 2000 is stored to the present value of the storage buffer memory The ring counter value 0 is not stored to the present value of the storage buffer memory Ring counter value Preset value a to 1998 1999 2000 1 2 to 498 499 Ring counter value 0 is not stored to the present value storage buffer memory 7 EXECUTING THE RING COUNTER FUNCTION 1 If the ring counter starts when the present value is outside the range of the preset and ring counter values except when the present value is equal to the preset and ring counter values the count cannot be made within the range of the preset and ring counter values MELSEC A Ring counter value Preset value Present value 3000 Preset value NS Ring counter value 2147483648
9. 0 2000 2147483647 Within the range of the Outside the range of the Outside the range of the preset preset and ring counter preset and ring counter and ring counter values values values nn N S N When the preset value storage buffer memory addresses 6 to 7 is set to 0 the ring counter value storage buffer memory addresses 8 to 9 to 2000 and the present value storage buffer memory addresses 0 to 1 to 3000 respectively the ring counter is executed as shown below Present value Ring counter value Preset value 2000 3000 3001 to 2147483647 2147483648 to 2 2001 2002 to 2998 2999 PULL PULL Ring counter value 2000 is not stored to the present value of the storage buffer memory When the present value of the counter is outside the range of the preset and ring counter values the present value of the counter can be changed to the preset value using the preset command Y12 1 When the ring counter function is executed do not write the preset value or ring counter value If the write is executed an error will occur and the error code 14 will be stored as a data error of the storage buffer memory address 11 2 When the ring counter function is executed make sure that the difference between the preset and the ring counter values is larger than the number of input pulses per msec Preset value Ring counter value gt Number of pulses msec Example When the pulse input speed is more than 50
10. 5 1 5 8 5 1 Counting at 1 Phase Input 0 0 cece cet eee eee eens 5 2 5 1 1 Counting using the phase A pulse input and decremental count command 5 3 5 1 2 Counting using the incremental phase A pulse input and the decremental phase B pulse input 0 0 0 eee eee eee 5 4 5 2 Counting at 2 Phase Pulse Input 00 cece eee eee 5 5 5 2 1 Counting using 2 phase pulse input multiplied by one 000 5 6 5 2 2 Counting using 2 phase pulse input multiplied by two 02 5 7 5 2 3 Counting using 2 phase pulse input multiplied by four 5 7 5 3 Reading the Present Value 2 0 oe cece eee tee eee ete 5 8 EXECUTING THE PRESET FUNCTION c cece eee eee n eee ue eeee 6 1 6 8 6 1 Preset Function 0 0 0 cece et eee teen eens 6 1 6 2 Preset Using the Sequence Program 0 cee cece eee tne eee 6 2 6 2 1 Executing the preset function using the sequence program 6 2 6 2 2 Example program 0 cece ete eee ee eens 6 3 6 3 Preset by External input 0 0 0 cece ee eee nets 6 6 6 3 1 When the preset is executed by external input 0 0 eee 6 6 6 3 2 Example program 0 ce eee eee teen ee ene 6 7 7 EXECUTING THE RING COUNTER FUNCTION 02eeeeene eee eereee 7 1 7 6 7 1 Ring Counter Function 00 eee ee eee ee etn eee 7 1 7 2 Example Program 0 0 ec ete eee eee e etn nenenee 7 5 8 EXECUTING THE LIM
11. _ Dog t for CH2 L D23 to D24 3 4 5 6 7 8 0 1 2 0 2 3 4 6 7 OFF address 8 EXECUTING THE LIMIT SWITCH OUTPUT FUNCTION Example program Pulse input mode setting M9038 X000 tf AE mov ke do Start the count operation X020 000 Present value read x021 X000 4 Top Hoo K4 Do Kt Limit switch output command x022 X015 X009 e i X023 X000 fi X00B X000 ee wowe e 0 ouove k 1200 os pwovens move k s00 D8 DMOVP D16 DMOVP __ top Ho000 k29 pie Ke H 1i Ae MELSEC A Set the pulse input mode of the 2 phase pulse input mul tiplied by one Start the pulse count by the count enable command SET Read the present value and store it to devices D1 to D2 Number of multi dogs for CH1 Dog 0 ON address Dog 0 OFF address Dog 1 ON address Dog 1 OFF address Dog 2 ON address Dog 2 OFF address Store the contents in D3 to D15 in addresses 12 to 24 of the buffer memory Number of multi dogs for CH2 Dog 0 ON address Dog 0 OFF address Dog 1 ON address Dog 1 OFF address Store the contents in D16 to D24 in addresses 29 to 37 of the buffer memory Execute the limit switch output 8 EXECUTING THE LIMIT SWITCH OUTPUT FUNCTION MELSEC A Fuse biown detection X00C ir Detects blown fuse and o output voltage cutoff Error detection reset R
12. count 2 phase input pulses multiplied by one and execute the periodic pulse counter function System configuration X00 to XIF YOO to YiF X20 to X3F A1S A1S Ais Ais 62P CPU D61 X41 Devices to be used 1 Execution commands a Pulse input mode setting command ssssssesssssesssesssrerersrsrerrerrresse M9038 b Count operation start command s ssesesesrsssersresrrrsssresenrrersrternenernsuseere c Present value read command ee eesceesseeesenerscteereceesenstensneneneneerens d Counter function selection count value read command e Counter function selection setting command s ssssssessrersrorsrenrs f Periodic time setting command s esesssesooseennorrsnserenrrrerserrererorereeseee g Periodic pulse counter command sesssseeresorserrernssorrseecnrensoreenasena H Error reset command 20 eesccecesccceeeeeeeceesenceeresnereceneneserenereeeressaeae i Count operation stop command se eesssesererseseernrerseeansnnnrenronnsrnsreensrere 2 Relationship between the data register DO to D7 and the buffer memory Buffer memory Address Contents L Counter function selection count value H D3 to D4 gt D1 to D2 o gt Counter function selection D5 setting o gt 9 13 9 SELECTING AND EXECUTING THE COUNTER FUNCTION Pulse input mode setting M9038 Count operation start a ommaan d Present value read x021
13. keep output ON or OFF Add an external monitoring circuit for output signals whose incorrect exetution could result in serious accidents AN CAUTION e Use the PLC in the environment indicated in the general specifications of the manual Using this PLC in an environment outside the range of the general specifications may cause electric shock fire malfunction and damage to or deterioration of the product Do not bundle control lines or communication wires together with main circuit or power lines or lay them close to these lines As a guide separate the lines by a distance of at least 100 mm otherwise malfunctions may occur due to noise Cautions on Mounting e Do not touch any conductive part of the module directly Doing so may cause malfunction or failure in the module Mount the module after fully inserting the fixing projectin on the bottom of the module into the fixing hole in the base unit and then tighten the module fixing screws to the specified torque Not doing so can cause a malfunction failure or drop of the module Cautions on Wiring e Ground the shield wire to the encoder relay box using class D class 3 grounding or higher Otherwise malfunctioning will result Carry out wiring to the PLC correctly checking the rated voltage and terminal arrangement of the product Using a power supply that does not conform to the rated voltage or carrying out wiring incorrectly will cause fire or failure
14. memory with instructions such as FROM TO should be made only when necessary Table 3 7 Buffer Memory Assignment Setting Contents initial Read write po Present value 5 3 H Read only L Counter function selection count value 9 1 1 H 1 Pulse input mode setting o 5 5 Counter function selection setting o L Preset value setting H Read write L possible 7 1 Ring counter value setting nn 1024 9 3 and 9 4 Sampling periodic time setting 8 1 table 3 8 pate data error code o ato 28 __ CHT kimit switch output data setting o 201045 CH2 limit switch output data setting o 46 to 62 631079 801096 97 10 113 114 to 130 131 to 147 CH8 limit switch output data setting Read write possible 3 SPECIFICATIONS MELSEC A Table 3 8 Details for Buffer Memory Addresses 12 to 147 Limit Switch Output Data Setting of CH1 to CH8 Buffer Memory Address Setting Contents 12to28 29to45 46to62 63to79 80t096 97t0113 114t0 130 131 to 147 CH1 CH2 CH3 CH4 CH5 CH6 CH7 a Number of multi dogs of CHT 12 29 46 63 80 97 114 ON address of dog _ fly 0 of CHI H OFF address of dog 0 of CH J _ ON address of dog _ L _ ON address of dog Ll OFF address of dog 2 of CH _ ON address of dog _ 3 of CH OFF address of dog 3 of CH J
15. of the phase A B pulse The phase difference between phase A and phase B pulses determines whether the count is made incrementally or decrementally Incremental count Decremental count Phase A pulse input _fLif Le Phase A pulse input FLA L_ Phase B pulse input f Phase B pulse input f f l Present value storage Present value storage buffer memory toto ta tyg tg in tot bulfer memory rr a rr ns Addresses 0 to 1 O 11126364 15 6 7i 8 Addresses 0 to 1 O 4 2314 1 5 6 7 8 Timings to Make an Incremental Count mea me Lr ao S Lm ee a a r a 5 PULSE INPUT AND COUNTER PROCESSING METHOD MELSEC A 5 3 Reading the Present Value The following describes the contents of the present value stored in the addresses from 0 to 1 of the A1SD61 buffer memory and how to read the present value 1 The present value storage buffer memory stores the present value when 2 3 4 any function is used When the latch counter sampling counter or periodic pulse counter function is executed the count value is stored into the counter function selection count value storage buffer memory aside from the present value storage buffer memory Refer to Chapter 9 The present value of 2147483648 to 2147483647 is stored in signed 32 bit binary code to the buffer memory When the present value is negative that data is stored as a complemen tary number of two to the present value of the s
16. pulse inputs decremental count command and the present value of the stor age buffer memory are shown below Pulse input phase A f f f f f f f Decremental count command phase B and Y11 A1SD61 Pulse Decremental count command or Y14 oA Present value storage 0 i 1 1 2 3 4i 5i 6i 7 buffer memory addresses 0 to 1 When the decremental count command is executed apply voltage to phase B or turn ON Y11 5 PULSE INPUT AND COUNTER PROCESSING METHOD 5 1 2 Counting using the incremental phase A pulse input and the decrementa phase B pulse input Decremental pulse input The following counts can be made using the incremental phase A pulse input and the decremental phase B pulse input e Incrementally counts the pulses that are input to phase A at the rise e Decremenially counts the pulses that are input to phase B at the rise e Subtracts the number of incremental pulses from the number of decremental pulses when the pulses are input to both phases A and B 1 incremental pulse input Incremental count When an incremental count is made the operation timings of the incre mental and decremental pulse inputs and the present value of the storage buffer memory are shown below AiSD61 Incremental pulse in put phase A Decremental pulse OFF input phase B Present value storage buffer memory addresses 0 to 1
17. stop Ka 03 Set the pulse input mode of the 2 phase pulse input multi plied by one Start the pulse count with the count enable command SET X021 X000 Read the present value Ji H DFRO H0000 and store it to devices D1 to D2 Set the count disable func tion Execute the count disable X000 Read the error code and FROM H0000 KM i D4 K1 store it to device D4 X024 X00B 1H IH Y017 Reset the error X025 X000 Stop the pulse count i HE YO10 with the count enable command RST CIRCUIT END 10 TROUBLE SHOOTING 10 TROUBLESHOOTING 10 1 Error Codes This section explains the A1SD61 error codes LED indication and trou bleshooting for the count operation errors 1 When the FROM TO instruction is executed if an error occurs RUN LED flashes the corresponding error code number will be stored to the error code storage buffer memory address 11 as shown in table 10 1 Table 10 1 Error Codes Error A value outside the range of 0 to 4 was set to the pulse input mode setting buffer memory address 4 See section 5 and set a value from 0 to 4 A value outside the range of 0 to 4 was set to the counter function selection setting buffer memory address 5 l See section 9 and set a value from 0 to 4 O was set to the sampling periodic 12 time setting butfer memory address Set a value within the range of 1 to 65535
18. the external preset 6 3 1 reset command command detection flag XOA aa y17 2 Error reset Resets the error code Turns OFF the command error flag XOB at the same time Yet a 1 In table 3 6 the operating timings es become valid in the following cases JPL Valid when the signal is ON f L Valid when the signal is at rise OFF ON Use the OUT instruction while the signal is ON 2 Use the PLS instruction when the signal is at rise When the SET RST instruction is used to turn ON OFF the output signal Y10 to 17 it may not function normally unless the ON time is 1 5ms or longer 3 SPECIFICATIONS 3 6 Buffer Memory Assignment Table 3 7 shows the buffer memory assignment without battery backup of the A1SD61 Table 3 8 gives detailed information about the settings of the addresses from 12 to 147 of the buffer memory initial values are set in the buffer memory when power to the A1SCPU is ON or when the PLC CPU is reset The contents in the buffer memory can be read written using a FROM TO instruction in a sequence program of the PLC CPU Among various processings of the special function module access from the PLC CPU is processed with priority Therefore frequent access from the PLC CPU to the special function module buffer memory not only increases the scan time of the PLC CPU but also causes delays in various processings of the special function module Access from the PLC CPU to the buffer
19. the rise and at the fall e Multiplied by four Incrementally and decrementally counts phase A B pulses both at the rise and at the fall 1 The relationship between the phase A pulse input and the phase B pulse input is given below Phase A pulse input A1SD61 Encoder Phase B pulse input 2 Counter processing mode setting To use the above mentioned mode set the A1SD61 pulse input mode setting buffer memory address 4 to any number from 2 to 4 using the sequence program Counting Mode Setting Value Multiplied by one Multiplied by two Multiplied by four Sequence program Write Watchdog command timer error HAA n ee Tt et 1 In set the first two digits of the 3 digit head I O number in hexadecimal notation assigned to the A1SD61 2 Set any number from 2 to 4 to J 5 PULSE INPUT AND COUNTER PROCESSING METHOD 5 2 1 Counting using 2 phase pulse input multiplied by one Count is made at rise of phase A pulse The phase difference between phase A and phase B pulses determines whether the count is made incrementally or decrementally Incremental count Decremental count Phase A pulse input FLA LAF LA L Phase A pulse input f l f l f f l Phase B pulse input f l j l Phase B pulse input Present value storage Present value storage i 4 buff n E E 3 bramo OG 1 j 2 7 8 iaewnde OF 1 i 2 i 3 4 Timings to Make an F I
20. value once set is not changed create the program as shown below X20 i ET E Ee X20 Preset value write d set Mo X21 Proset command in MO l 1 6 EXECUTING THE PRESET FUNCTION 6 3 Preset by External Input The following describes the preset by the external input 6 3 1 When the preset is executed by external input Execute the preset by applying the voltage to the external input PRESET terminal ON F 45 Count enable command Y10 OFF Input pulses to be counted i HUL LRA I I E 1 1 1 Li 1 1 Li 1 Li Preset value setting buffer 0 D memory Addresses 6 to 7 I l t I 4 l i l l 1 I Preset command PRE i SET terminai RC r I l I 1 External preset command de ON 1 1 1 t fi l 1 i 1 tection flag XOA OFF f l 1 I 1 I b l External preset command ON 1 1 1 1 1 I l detection reset command Y16 oF Present value storage buffer memory Addresses 0 to 1 1 Writes a given value to the preset value of the setting buffer memory addresses 6 to 7 in 32 bit binary code 2 Executing the preset command applying the voltage to the PRE SET terminal sets the preset value in the buffer memory to the present value buffer memory 3 Even when the external preset command detection reset com mand Y16 is ON the preset can be executed with the preset command applying the voltage to the PRESET terminal The preset function
21. 0 130 100 50 At the rise of the counter function selection start command Y14 F START terminal corresponding to 1 to 4 in the above diagram the counter present value is stored to the counter function selection count value buffer memory addresses 2 to 3 The latch counter function works whether the count enable command Y10 is ON or OFF 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 9 2 1 Example program The following program allows the A1SD61 to count 2 phase input pulses multiplied by one and execute the latch counter System configuration X00 to XIF YOO to Y1F X20 to X3F Ais A1S A1S A1S 62P CPU D61 X41 Devices to be used 1 Execution commands a Pulse input mode setting command sessesssersrerererererererrsrerernsers M9038 b Count operation start command esessssseesseessereserenerseresorearersonesrevese X20 c Present value read command 1 cesccsesesssceeseeeessneterseeseepeoneneeneees X21 d Counter function selection count value read commanid X22 e Counter function selection setting command ce eetesenetetenes X23 f Latch Counter command 2 ccescscsserereseeseeresneresenersasesssorsesseneneeers X24 g Error reset command 10 cecseseesceecssereseeesssersseceeerareseaessneessseuesnsenees X25 h Count operation Stop command sessssssersrennrersseressrnrssnoornsnrrenanenenase X26 2 Relationship between the data register DO to D6 and the bu
22. 0 t0 250 to 350 to 500fto 16 _ 0 OFF position gt 17 350 Dog 1 18 0 ON position ON ma rm OFF Dog 1 20 0 OFF position 2 OFF range limit switch B contact operation dog position write In this case the ON position data is written along with a value larger than the OFF position data If the dogs are not written in ascending order an error occurs Address decimal 250 Dog 0 Switch operation 31 0j ON position 31 0 ON ps Counter present value CH2 33 Oj OFF position to__ 100 tol 250 itol 350 Jid 500 tq 650 td 700 to 34 Dogi 3 ON position 1 i A 3 Dog 1 ON i j j 3 OFF position or LS LS 3 Dog 2 3 ON position 4 Dog 2 4 OFF position 8 EXECUTING THE LIMIT SWITCH OUTPUT FUNCTION Both of the ON and OFF ranges cannot be used for a single channel MELSEC A Example When the dog 0 ON position is 100 the dog 0 OFF position is 200 the dog 1 ON position is 150 and the dog 1 OFF position is 400 ON OFF Error occurs because of the overlap 100 150 200 400 Dog 0 ON range Dog 1 ON range 3 The number of multi dogs can be set in the following range 0 to 4 The lower 4 bits of the data set are valid However when this number is set to O the corresponding dog ON OFF position data becomes invalid Also when a value larger than 4 is set an error occurs disabling the limit switch output function c The follo
23. 3 100 40 Present value storage buffer memory addresses 0 to 1 100 4 Count disable function See section 9 5 Inputs the signals when the count enable command is ON stop ping the pulse count ON Signal SFE Counter present value storage buffer memory addresses 0 to 1 Pulse to be input 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 1 2 3 Select a counter function by writing a value to the counter function selection setting buffer memory address 5 as shown in the following table However when the counter function is changed make sure that the counter function selection start command Y14 F START terminal is OFF fe Latch counter function 1 The counter function can be selected by using either the counter function selection start command Y14 or the F START terminal external input When both of the signals are input during a certain period priority is given to the first signal input Set the time of the sampling counter function or periodic pulse counter function within the range from 1 to 65535 The time can be set in 10ms increments and the accuracy is 0 7ms Example When 420 is set to the sampling periodic time setting buffer memory 420 x 10 4200 ms 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 9 1 1 Reading the counter value when executing the counter function selection Read the counter value when the counter function is sele
24. Goes ON when the preset command applied voltage reaches the PRESET terminal Goes OFF when the external command detection reset command Y16 is turned ON Goes ON or OFF simultaneously with a limit switch output All channels are OFF when the limit switch 8 1 command Y15 is OFF i Externa preset command detection flag Goes ON when the write setting value contains an error Stores the error code to the buffer memory address 11 which is used for write data error code storage when the error flag is turned ON Error flag Goes ON when the fuse to the limit switch Fuse external power cutoff detection flag output part blew or when no power is supplied to the OUT terminal x00 Sampling periodic counter flag foes ON when a sampling periodic counter R to 3 SPECIFICATIONS MELSEC A Table 3 6 Output Signals Referenc Signal PLC CPU gt A1SD61 oFiming 9 Description e Section YOO to Counts pulses by subtracting the pulsed when this signal is ON This signal is valid only when a 1 phase Decrement count command pulse is input However this signal 5 1 1 cannot be used along with an external input B Ring counter command Starts the ring counter 7 1 1 Counter function selection start 9 2 9 3 4 wo Enables the limit switch output 8 Limit switch output command channels in batch 8 1 yi6 External preset command detection Turns OFF
25. IT SWITCH OUTPUT FUNCTION 000 ee neues 8 1 8 10 8 1 Limit Switch Output Function 0 0 0 ccc ee eee eee ees 8 1 8 1 1 Example program 20 0 cee eee tenes 8 7 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 6 9 1 9 17 9 1 Selecting a Counter Function 2 cece cee eee eee tenes 9 1 9 1 1 Reading the counter value when executing the counter function selection 9 3 9 1 2 Count errors 2 ee eee erent an neeee 9 4 9 2 Latch Counter Function 1 0 0 0 ccc eet nent nents 9 5 9 2 1 Example program 2 eee eee eee 9 6 9 3 Sampling Counter Function 00 cece eee eens 9 8 9 3 1 Example program 20 cc een eee eee 9 9 9 4 Periodic Pulse Counter Function 1 0 2 0 cee eee eee tent e eens 9 11 9 4 1 Example program 0 ec ee eee eee e eens 9 13 9 5 Count Disable Function 00 0 ccc eee eee eee eet een eee eens 9 15 9 5 1 Example program ccc cece eee ee eee eee eee 9 16 10 TROUBLESHOOTING cece cece eee eee renter ete eeeees 10 1 10 3 10 1 Error Codes 2 0 ccc eee tere eee e eee tence nee 10 1 10 2 RUN LED Flashes or OFF 2 cece ce teen ees 10 2 10 3 Counter Value is incorrect 0 ee ee teens 10 3 10 4 Count Cannot be Made ic cece eee eee teen eee 10 3 APPENDICES 2 ccc cece eect cere reece ener e tener sere naneee APP 1 APP 2 Appendix 1 COMPARING THE A1SD61 AND AD61 S1 0 0 ee eee ee APP 1 App
26. MITSUBISHI High Speed Counter Module Type A1SD61 User s Manual melse Mitsubishi Programmable Logic Controller SAFETY CAUTIONS You must read these cautions before using the product In connection with the use of this product in addition to carefully reading both this manual and the related manuals indicated in this manual it is also essential to pay due attention to safety and handle the product correctly The safety cautions given here apply to this product in isolation For information on the safety of the PLC system as a whole refer to the CPU module User s Manual These SAFETY CAUTIONS are classified into two grades DANGER and CAUTION Safety caution given when incorrect handling could result in hazardous DANGER situations involving the possibility of death or serious injury Safety caution given when incorrect handling could result in hazardous CAUTION situations involving the possibility of moderate or light injury or damage to property Note that depending on the circumstances failing to follow a CAUTION may also have very serious consequences Both of these classes of safety caution are very important and must be observed Store this manual carefully in a place where it is accessible for reference whenever necessary and forward a copy of the manual to the end user Cautions on Design e An external output transistor failure may
27. OKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission Specifications subject to change without notice
28. ON OFF CH1 Limit switch ON output state flag X01 5 and OUT1 terminal OFF t output state fl CH8 Limit switch ON ag X08 o 3 4 and OUT8 terminal FF l I l l Limit switch output enabled 1 Turning ON the limit switch output command Y15 verifies whether or not the set limit switch output data contains an error When no error is detected the limit switch output enable flag X09 will be set 2 Turning ON the limit switch output enable flag X09 executes the limit switch output function 3 The present value of the counter is compared with the set limit switch output data The data is then output to the limit switch output state flags X01 to X08 and the OUT terminals OUTs 1 to 8 4 Turning OFF the limit switch output command Y15 turns OFF the limit switch output enable flag X09 and turns OFF all the limit switch output status flags X01 to X08 and OUT terminais OUT1 to OUT8 of CH1 to CH8 8 EXECUTING THE LIMIT SWITCH OUTPUT FUNCTION MELSEC A 1 The limit switch output is executed whether the count enable com mand Y10 is ON or OFF 2 In the limit switch output the preset latch counter and sampling counter execution commands are ignored until the limit switch out put command Y15 is turned ON to set the limit switch enable flag X09 However the execution of the external input is valid example When the preset funct
29. PROCESSING METHOD 5 PULSE INPUT AND COUNTER PROCESSING METHOD This section describes the pulse input and counter processing method 1 Either 1 phase or 2 phase pulse input may be executed a 1 Phase puise input When the 1 phase pulse input is executed the following counts can be made 1 Counts the phase A pulse inputs incrementally and counts the pulses by the decremental count command 2 Counts the phase A pulse inputs incrementally and counts phase the B pulse inputs decrementally b 2 Phase pulse input When the 2 phase pulse input is executed the following counts can be made 1 Multiplied by one Counts phase A pulses at the rise 2 Multiplied by two Counts phase A pulses both at the rise and at the fall 3 Multiplied by four Counts phase A B pulses both at the rise and at the fall 2 When i phase pulse input is done the pulses are counted at rise 3 When the pulse input mode is changed the count is made from 0 5 PULSE INPUT AND COUNTER PROCESSING METHOD 5 1 1 Phase Pulse Input At 1 phase pulse input either counting using the phase A pulse input and decremental count command or counting using the incremental phase A pulse input and the decremental phase B pulse input can be selected 1 For the relationship between the phase A pulse input and phase B pulse input refer to Section 5 1 1 and 5 1 2 2 Setting of counting method When using the counting method set 0 or 1
30. Set the pulse input voltage setting pin to the BERE position 4 INSTALLATION AND PRE OPERATION SETTING PROCEDURE MELSEC A 2 Connection of a voltage output pulse generator 5 VDC A1SD61 4702 1 4Ww Pulse input Pulse generator Twisted shielded wire External 5 VDC power sup 1 Set the pulse input voltage setting pin to the EMEN position 4 INSTALLATION AND PRE OPERATION SETTING PROCEDURE 4 4 3 Wiring example for the connection of a controller to external input terminals PRESET and F START 1 When a controller sink load type is supplied with 12 V A1SD61 External input voltage setting pin Controller 6802 1 4W XZ PRESET or F START This diagram assumes that the internal circuit is set to PRESET 2 When a controller source load type is supplied with 5 V A1SD61 External input volt age setting pin Controller 680 Q 1 4W PRESET or F START This diagram assumes that the internal circuit is set to PRESET 1 Set the external input voltage setting pin to the IAM position 4 4 4 Wiring examples at external output terminals OUTs 1 to 8 To use an OUT terminal the internal photocoupler should be activated For this example 10 2 to 30 VDC external power is necessary Connection methods are as follows A1SD61 5 J eo Zhe OUTS 12 24V _ 10 2 to 30 V 5 PULSE INPUT AND COUNTER
31. Speed AD61 Setting Pin 50K Setting Pin 10K e E Phase 1 phase input 2 phase input 5 VDC Signal level gA B 12 VDC 2 to 5 mA 24 VDC 10k pps 50k pps 10k pps 7k pps 50k pps 7k pps signed 32 bit binary signed 24 bit binary Counting Range 2147483648 to 2147483647 0 to 16777215 Counter UP DOWN preset counter ring counter function 100psec 142usec Count input signal 100usec 20sec 20usec Min Count pulse width k k k Input rise fall time should be 5 usec or i less duty ration is lon a eT gt eisai Sasa lion tml orig Sop 50 sec sec 1 phase input 2 phase input sec sec 1 phase input 2 phase input sec sec sec sec i phase input 2 phase input Comparison range Signed 32 bit binary Signed 24 bit binary Limit switch output A contact operation Set value lt Counter value Dog ON address lt Counter value lt Dog OFF Set value Counter value address B contact operation Set value gt Counter value Dog OFF address lt Counter value lt Dog ON address sec sec sec sec i phase input 2 phase input Comparison results 12 24 VDC 3 6 mA 5 VDC 5 mA 12 24 VDC 3 6 mA 5 VDC 5 mA External input Transistor open collector output 12 24 VDC 0 1 A point 0 8 Transistor open collector ou
32. X000 X000 X000 Example program TOP Ho000 K4 B Periodic pulse counter command He X022 X000 H AF X023 X000 MOVP K2 DO DO Ki SET Y010 DFRO H0000 TDFRO Hoooo Ko J Di aH 5 TOP H0000 KS Ds Kt H X024 X000 i ae movP K500 D6 jH X025 X000 Error detection reset X000 At Count operation stop X027 X000 CIRCUIT END ae 9 14 RET MELSEC A Set the pulse input mode of the 2 phase pulse input mutti plied by one Start the pulse count with the count enable command SET Read the present value and store it to devices D1 to D2 Read the counter function se lection counter value and store it to devices D3 to D4 Set the periodic pulse counter function Set the periodic time Execute the periodic pulse counter Read the error code and store it to device D7 Reset the error Stop the pulse count with the count enable command RST 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 9 5 Count Disable Function Stop the count operation while the count enable command is ON The relationships between the count enable command and the counter func tion selection start command and between them and the counter present value are shown below Count enable command Y10 Counter function selectionion start command F START ter
33. als The factory setting is 24 V Mitsubishi cannot guarantee the module when a pulse whose voltage is higher than the set voltage is applied Set using a jumper See section 3 4 Pulse input voltage setting pin 2 Used for protecting OUTs 1 to 8 from overcurrent soldered to board type External input voltage Lit when the module operates normally Flashes when a data write error has occurred 3 setting pin fron OFF when a watchdog timer error has occurred RUN Lit when voltage is applied to phase A pulse input terminal gB Lit when voltage is applied to phase B pulse input terminal PRESET Lit and latched when voltage is applied to the PRESET terminal OFF when external preset detection reset signal Y 16 is turned ON FUNCTION ON when voltage is applied to the F START terminal OUTs 1 ON when a corresponding limit switch is turned ON by the limit switch output function to 8 OFF when the limit switch is turned OFF Pulse input terminals 0B is used as decrement count command PRESET gt The terminal in which voltage is applied when a preset is executed from an external device LED indicators 5 8 F START The terminal in which voltage is applied when a counter function selection is executed 9 OUTs 1 to 8 An external output terminal used for limit switch output 4 INSTALLATION AND PRE OPERATION SETTING PROCEDURE 4 4 Wiring Details on how to wire a puls
34. ar 6 EXECUTING THE PRESET FUNCTION Pulse Start Present value read Preset command Error Count operation stop Example program input mode setting M9038 X000 it moe ee Too 7 ror roo e To DH the count operation X020 X000 w o o y X021 X000 1 H HE K1 H X022 gi ar ewove Kio0 63H KH 7 ser w H X023 MO X000 e e oy detection reset X0000 Ae FROM H0000 Kt H X024 X00B X000 i i ____ X025 X000 tH Yo10 H CIRCUIT END MELSEC A Set the pulse input mode of the 2 phase pulse input multiplied by one Start the pulse count with the count enabie command SET Read the present value and store it to devices D1 to D2 Store the preset value of 100 to address 6 of the buffer memory Execute the preset Read the error code and store it to device D5 Reset the error Stop the pulse count by the count enable command RST 6 EXECUTING THE PRESET FUNCTION lt Precautions for creating preset program gt 1 When changing the preset value When changing the preset value to execute the preset command Y12 execute the command Y12 one scan after setting the preset value as shown in the following program As preset may not be executed depending on the timing X20 Preset command 1 X21 Preset command 2 w roe ae e o ui l PLS 2 When not changing the preset value When the preset
35. can be used whether the count enable com mand Y10 is ON or OFF 1 When the external preset detection flag XOA is ON see 4 in the above indicated diagram even if the voltage is applied to the PRESET terminal the preset function cannot be executed In this case by turning ON the external preset command detection reset command Y16 see 5 in the above indicated diagram and turning OFF the external preset command detection flag X0A the preset function can be executed 6 EXECUTING THE PRESET FUNCTION 6 3 2 Example program The following program allows counting of 2 phase input pulses multiplied by one to execute preset using the external input System configuration X1F Soo b VAF X20 to X3F PRESET terminal voltage applied here A1S AIS S aje Devices to be used 1 Execution commands a Pulse input mode setting command essssssesssssesnrererenerrersesrerees M9038 c Count operation start command sssssssssserersrrrsrssrvannrenruneranerereereereren X20 d Present value read command sssssssessessersssrrnreneresnrerutenserusreureresornee X21 e Preset value Write COMMANGA cccesesececsceteeeetseceeeecssteteeeseaeneceseeees X22 f External preset command detection flag reset command XOA g Error reset command s eeseseerssesrrnesereerererererserseurrasreveraensintnreseronrenteet X23 h Count operation stop command sseeesersssesseresrrsrensrorenresrressrersresere
36. ceeeeeeeceetseeseneeuesecnsssserseseesssstassnssensegs X0C c Count operation Start command oo sesseteesestsesteetsseseseeesseneeneees X20 d Present value read Command ee ceeecessesterseesenereenseneneaesesoenrened X21 e Limit switch output data setting COMMANG ese seseneeserensetees X22 f Limit switch output command oo eect essenescensssnessseeesseeuensenessees X23 g Error reset command 2 00 cee eeeceseeeteneeeseneseseesnenssanesseesanensenensensaton X24 h Count operation Stop command sesessesssressrereresrererrsorinerresrerorenneenne X25 8 EXECUTING THE LIMIT SWITCH OUTPUT FUNCTION MELSEC A 2 Relationship between the data register DO to D25 and buffer memory Buffer memory 1 gt D1 to D2 J o GULLELA 4 N YYYY Data write error code n gt os 12 Number of multi _ dogs for CH1 J ow 1 L D4 to D5 el __ Dog 0 for CH1 ON address 1 H w Dog 0 for CH1 D6 to D7 77 OFF address 1 H w _ Dog 1 for CH1 D8 to D9 ON address 1 H a8 Dog t for CH1 L D10 to D11 7 OFF address A pope tor cut D12 to D13 _ Dog 2 for a zl ON address tk 2 2 Dog 2 for CH1 t 3 23 OFF address H 3 3 D14 to D15 3 D16 _ Dog 0 for CH2 t D17 to D18 ON address 31 H 3 Dog 0 for CH2 9 OFF address D19 to D20 H _Dog 1 for CH2 L ON address D21 to D22 H
37. cted The following explains the counter function selection count value contents stored in the A1SD61 counter function selection count value storage buffer memory addresses 2 to 3 and how to read the counter value 1 Inthe counter function selection count value storage buffer memory the value of the latch counter sampling counter or periodic pulse counter is stored 2 The counter function selection count value 2147483648 to 2147483647 is stored in a signed 32 bit binary code When the counter function selection count value is negative this value is stored as a complementary number of two 3 When an incremental count is made if the counter function selection count value exceeds 2147483647 it will jump to 2147483648 When a decremental count is made if the counter function selection count value exceeds 2147483648 it will jump to 2147483647 4 The sequence program to read the counter function selection count value is shown below Read Watchdog command timer error H orro Hoooo K2 Do K1 Number of items of data to be read Head device number of counter function selection count value storage destination Head address of the buffer mem ory in which the counter function selection count value is stored Higher two digits of the 1 0 head number Read command in units of two words 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 9 1 2 Count errors
38. e drop in the extension cable 4 Data link system In a data link system the module can be installed at a master station loca station or remote I O station For an example of a remote I O station program refer to the MELSECNET MELSECNET B Data Link System Reference Manual For Details on the ranges for the number of I O points and on calculating voltage drops refer to the following manuais e Type ATSJCPU S3 Users Manual occ scesesenssesseseeseeeseeee IB NA 66446 e Type A1S A1SC24 R2 A2SCPU S1 Users Manual IB NA 66320 e Type A2ASCPU S1 Users Manual ice csssenssersressrensseeneeeee IB NA 66455 A52GCPU T21B Users Manual 0 00 es eusccssesssseetsseresserenerenereet IB 66419 A52GCPU T21B Reference Manual sess taseasanenessserteeseans IB 66420 e Type A1SJH 8 A1SH A2SHCPU S1 User s Manual IB 66779 e Type AZUSHCPU S1 Users Manual 0 ccs secscersessesseesersnessesses 1B 66789 e Model Q2AS H CPU S1 Users Manual oo cessseserereeeneees SH 3599 3 SPECIFICATIONS 3 SPECIFICATIONS This section describes the general specifications of the A series PC CPUs performance specifications of the A1SD61 specifications of I O signals to a PC CPU and buffer memory 3 1 General Specifications Table 3 1 gives the general specifications of the A series PC CPUs Table 3 1 General Specifications a Operating ambient o Storage ambient _ o Operating ambient humidity 10 to 90 RH non co
39. e generator device to the A1SD61 are described below 4 4 1 Wiring preconditions The preconditions when a pulse generator device is wired to the A1SD61 are described below 1 Fora high speed pulse input take the following counter measures against noise a Be sure to use shielded twisted pair cables Also make sure it is grounded to Class 3 specifications b Do not run a twisted pair cable in parallel with power cables or other I O lines which may generate noise Run cables at least 150 mm 5 91 in away from the above mentioned lines and over the shortest distance possible 2 For 1 phase input connect count input signal to phase A only 3 If the A1SD61 picks up pulse noise it will count incorrectly 4 The specific measures against noise are shown below A1S8D61 Terminal biock Terminal m block Metal piping Never run solenoid or inductive wiring through the same conduit yY lf sufficient distance cannot be provided between the high current line and input lt wiring use shielded wire for the high current line Separate more than 150 mm from equip ment such as in verters Also take gare of witing inside Distance between the encoder and the joint box should be as short as possible Allowing a long distance between the A1SD61 and the Jointbox encoder may cause a voltage drop problem Using a tester or other measuring device con firm that th
40. e voltage at the terminal block of the joint box doesn t exceed the rated voltage when the encoder is in operation or at stand stili If the voltage drop is large increase the S size of wiring or use an encoder of 24 VDC with less current consumption AC motor Encoder e Ground twisted shielded wire on the encoder side joint box This is a connection example for 24 V send load 4 Power supply for encoder The shielded wire for the encoder and twisted pair shielded wire are connected inside the joint box If the shielded wire for the encoder is not grounded inside the encoder ground it in the joint box as indicated by the dotted line Tog A Tos B To A1SD61 4 INSTALLATION AND PRE OPERATION SETTING PROCEDURE MELSEC A 4 4 2 Wiring example of module and pulse generator 1 Wiring example for connection with open collector output type pulse A1SD61 generator 24VDC Pulse generator l External power supply For the wiring of the A1SD61 and encoder separate the power supply cable from signal cable An example is shown below A1SD61 CORRECT External power _ su INCORRECT A1SD61 Since currents flow in the twisted pair cable in the same direction a canceling effect is lost and the module becomes susceptible to electromagnetic induction External 77 power A supply 1
41. ead the error code and FROM H0000 store the code to D25 X024 X00B X000 f pe Y017 Reset the error Counter operation stop X025 X000 S _____ Stop the pulse count Y010 by the count enable CIRCUIT END command RST 8 10 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 9 1 Selecting a Counter Function Select one of the four counter functions and execute it Execute the selected function by turning ON the counter function selection start command Y14 or applying voltage to the external F START terminal 1 Latch counter function See section 9 2 Latches the present value of the counter when the signal is input Signal on Counter function selection count f l f l f value storage buffer memory OFF addresses 2 to 3 100 Z gt ee 2 Sampling the counter function See section 9 3 Present value storage buffer memory addresses 0 to 1 The input pulses are counted at the preset time T after the signal inputs ON Counter function selection count Signa orr t L__f l f l value storage buffer memory addresses 2 to 3 Present value storage buffer memory addresses 0 to 1 3 Periodic pulse counter function See section 9 4 Stores the number of input pulses at specified intervals while a signal input is done Counter function selection count Signal ON value storage buffer memory OFF T addresses 2 to
42. ed in the AiSD61 Does the A1SD61 contain data that cannot buffer memory and take measures be written or read according to the error code listed in section 11 1 2 When the RUN LED is OFF e Check to make sure the power is correctly supplied Try turning the power supply ON and OFF several times Was a fault in the hardware watchdog Also check if noise influences the timer error detected hardware If the LED is not lit the AiSD61 hardware is faulty Consult your sales representative 10 2 10 TROUBLE SHOOTING 10 3 Counter Value is Incorrect Is the pulse input mode consistent with the Input pulses consistently with the setting pulse input setting in the buffer memory see section 5 Is the sequence program data processed Correct the sequence program so that the as 32 bit BIN data data is processed as 32 bit BIN data is a twisted pair wire used as the pulse in ar e Disconnect the A1SD61 from the ground Does noise come in through the ground of 2 the A1SD61 e lf the A1SD61 comes in contact with the ground separate it from the ground Have adequate measures been taken against noise in the panel or noise result ing from the other equipment Provide CR surge suppression to magnetic switches etc is sufficient distance provided between heavy voltage equipment and pulse input line Wire the pulse input line independently and separate wire in panel 150 mm
43. endix 2 EXTERNAL DIMENSIONS 0 0 eee ee eee te eee eee eas APP 2 1 INTRODUCTION 1 INTRODUCTION This user s manual describes the specifications handling programming etc of the A1SD61 high speed counter module hereinafter referred to as the A1SD61 that is used with the MELSEC A series CPU module hereinafter referred to as the PLC CPU and counts pulses at the maximum counting speed of 50kpps The AiSD61 counts a 1 phase and 2 phase pulse input in the following way 1 phase pulse input Counts the pulse at the rise 2 phase pulse input multiplied by one Counts the pulse at the rise of phase A 2 phase pulse input multiplied by two Counts the pulse at the rise fall of phase A 2 phase pulse input multiplied by four Counts the pulse at the rise fall of phases A and B The following diagram shows how the A1SD61 works PLC CPU 4 VO signal Read write to buffer memory AiSD61 Pulse train Pulse generator JS HUUL m Encoder eight channels m 3 o Limit switch output External input signal Controller J gt Preset counter function selection Counts a pulse being input into the A1SD61 External input signal allows the preset counter selection Allows comparison with the counter s present value and output of a signal as a limit switch output Allows confirmation of the A1SD61 I O signals and buffer memory using a sequence program Additionall
44. erminal and PLC power supply Internal power consumption 5 VDC 0 35 A Weight 0 27 kg External in put Isolation specifications 3 SPECIFICATIONS MELSEC A The counting speed is influenced by the pulse rise fall time The following counting speeds are possible If a pulse is counted with a rise fall time that is too long a counter error may be caused Counting Speed Setting Pin Rise fall Time 1 phase Input 2 phase Input 1 phase Input 2 phase Input lose sec or 50k pps 50k pps 10k pps 7k pps tes sec or 5k pps 5k pps 1k pps 700 pps 3 3 Functions Table 3 3 gives the functions of the AiSD61 Table 3 3 Function Specifications e Changes the present value of the counter Preset e The preset operation can be done either by a sequence program or by an external preset input e Counting alternates between the preset value and the ring e Outputs an ON OFF signal in a specified output status comparing it with the present value of the limit switch output command counter e Stores the present value of the counter when the signal of the 9 2 counter function selection start command is input Limit switch output Latch counter Sampling counter function e After inputting the signal of the counter function selection start command the input pulse is counted during a specified period and stored in the buffer memo
45. ffer memory Buffer memory Di to D2 gt gt D3 to D4 gt L _ Counter function selec tion count value H Pulse input mode setting Faa 5 Counter function setting Data write error code D6 9 SELECTING AND EXECUTING THE COUNTER FUNCTION Pulse input mode setting M9038 X000 Count operation start X020 X000 Example program wow e o ro roo k J oo e 1 AE Present value read X021 X000 m counter command x022 X000 Latch DFRO Hooo0 ko bi Ki aH r AE eae TH X024 X000 aH bt Error detection reset X000 HE X025 X00B X000 mie lt AP From Hoo00 kit os Ki H Count operation stop X026 X000 CIRCUIT END Bst voto Fy MELSEC A Set the pulse input mode of the 2 phase pulse input mul tiplied by one Start the pulse count with the count enable command SET Read the present value and store it to devices Di to D2 Read the counter value and store it to devices D3 to D4 Set the latch counter func tion Execute the latch counter Read the error code and store it to device D6 Reset the error Stop the pulse count with the count enable command RST 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 9 3 Sampling Counter Function Count the pulses when a sampling time is specified The sampling time can be set in 10ms i
46. g counter function allows repeated pulse counting between the preset value and ring counter value set with the ring counter command The ring counter can be used for a control such as fixed pitch feed Ring counter function application example Using a system to cut a sheet to a specified size adjust its rollers by setting the ring counter value and cut the sheet to the specified size 1 Set the preset and ring counter values to execute the ring counter function 2 Turn on the motor to operate the rollers 3 Operate the rollers so that the sheet can be cut to the specified size 4 Cut the sheet 5 Repeat steps 2 to 4 Cutter Roller Sheet Cutter Encoder A1SD61 7 EXECUTING THE RING COUNTER FUNCTION 1 The ring counter function is executed when both the count enable command Y10 and the ring counter commands Y13 are ON 2 Ring counter operation When the present value of the counter is in the range between the preset value and ring counter value pulses are counted within the range by the ring counter function When the ring counter function is executed if the counter present value reaches the ring counter value the present value will be automatically set to the preset value Also if the present value of the counter reaches the preset value the preset value will remain the same Ring counter value Preset value Preset value Ring counter value P
47. he limit switch output enable flag X09 is not set turning ON the limit switch output command Y15 does not activate the limit switch output func tion Instead of the conventional limit switch the limit switch output can be also applied to a series of the operations on the processing line Limit switch output function application example By using a processing line system products are made through the processing operations corresponding to each channel 1 Carries material with the belt conveyor 2 The location of material is known through the counter present value since the pulses are input to the AiSD61 3 When the work reaches the corresponding preset position it is processed according to the limit switch output CH1 to CH4 from the A1SD61 CH2 CH3 CH1 CH4 A1SD61 Pulse input gt Part shaving Drilling 8 EXECUTING THE LIMIT SWITCH OUTPUT FUNCTION MELSEC A 1 In limit switch output up to 8 channels can be used Encoder detection Encoder location baw OCCT Channel 1 Location detection Channel 2 oN 100 200 300 400 500 600 700 800 ON Channel 3 Channel 4 gt LSJ L Aispe1 gt L L ON gt Channel 8 ofr o Loo 2 These are four dogs per channel In this manual the dog refers to concave of convex parts as shown below 0 1 2 3 CH2 Each number corresponds to dog numbers 3 The speed of the pulse input will determine the
48. ion is executed ON Limit switch output command Y15 OFF o Max 30 msec Limit switch output enable flag X09 OFF ON Preset command Y12 OF F Valid Invalid Create a program as show below Preset execution com mand Y15 X09 PLS Y12 8 EXECUTING THE LIMIT SWITCH OUTPUT FUNCTION 5 CH1 Limit switch output data CH1 to CH8 setting buffer memory addresses 12 to 147 This is an area in which ON OFF data for each channel in the limit switch output function is stored a The data set consists of the number of multi dogs and ON OFF position data of each dog for each channel b The data set for the multi dogs and ON OFF position data is written in binary code If the number of the multi dogs is set beyond the detection range or some dogs overlap an error occurs The dog position write operation is divided into two modes the dog position write in the ON range and the dog position write in the OFF range The A1SD61 automatically verifies if the dog data write is done in ON or OFF range by checking the contents of dog 0 1 ON range limit switch A contact operation dog position write in this case the ON position data is written along with a value less than the OFF position data lf the dogs are not written in ascending order an error occurs Address decimal Switch operation 13 Dog 0 P t4 ____o J ON position Dog 0 Counter pre sent value 10
49. k pps When the pulse is input at a speed of 50k pps make sure that the difference between the preset and the ring counter values is larger than 50 pulses msec 7 EXECUTING THE RING COUNTER FUNCTION MELSEC A 7 2 Example Program The following program allows the AiSD61 to count 2 phase input pulses multiplied by one and execute the ring counter function System configuration X00 to X1F YOO to YiF X20 to X3F Ais Ais B _ pele Devices to be used 1 Execution commands a Pulse input mode setting COMMANG cesses teetensnseeeeee M9038 b Count operation start command 2 0 seeeeseeeesseeeceenersteessasersnasonsunes X20 c Present value read command s essessesrsserrreserureverrnsrenuneornreoreveserrenane X21 d Preset ring count value write command esesssssrererererrerenersrnnreseene X22 e Ring counter command 2 20 eeceseseecetsssneeesessneeenseneesessssesersnsanneerans X23 f Error reset command esse escenecteseneesensessnsessteesesteeseussuasassueaeenens X24 g Count operation stop command eseseserersesrererererererenersrnrrnrernnrareerene X25 h Counter present value change command sesesseersrrsssrererereisenrererere X26 2 Relationship between the data register DO to D7 and the buffer memory Buffer memory gt D1 to D2 Ring counter D5 to D6 t value setting gt D3 to D4 gt gt 7 EXECUTING THE RING COUNTER FUNCTION Example p
50. minal Present value storage buffer memory addresses 0 to 1 Actual input N a Counter value to be stored to the present value storage buffer memory 1 I Count l t L 1 I 0 Count Count H l I operation opora fone stop it sto sto Count operation stop i p oP i i 1 Starts counting pulses when the count enable command Y10 is turned ON 2 Stops counting when the counter function selection start com mand Y14 is turned ON 3 Resumes the counting when the counter function selection start command Y14 is turned OFF 4 Stops counting when the counter function selection start com mand F START terminal is turned ON 5 Resumes the counting when the counter function selection start command F START termina is turned OFF 6 Stops the counting when the count enable command Y10 is turned OFF 7 Stops counting independently of the counter function selection start command Y14 since the count enable command Y10 is OFF 8 Continues to stop the counting even when the count enable command Y10 is turned ON since the counter function selection start command Y14 is ON 9 Resumes the counting when the counter function selection start command Y14 is OFF 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 9 5 1 Example program MELSEC A The following program allows the A1SD61 count 2 phase input pulses multi plied by one and execute the co
51. minimum setting width at ON OFF states Sampling interval Present value ro l Y 200 400 600 800 ON Channel ofe Set width at Set width at ON state OFF state In the A1SD61 the position data is sampled at intervals of 1 0ms and compared them with the set ON OFF data to output the limit switch signal Therefore if the pulse input speed exceeds the allowable speed the location cannot be detected in units of minimum length and the ON OFF signal cannot be executed according to the specification In this case enlarge the set width of the ON or OFF signal Find the allowable speed using the following formula a Set width at ON state Pulse input speed pps 1000 Count present value at OFF Count present value at ON x Multiplication number lt b Set width to the OFF state Pulse input speed pps 1000 Count present value at ON Count present value at OFF x Multiplication number lt 8 EXECUTING THE LIMIT SWITCH OUTPUT FUNCTION 4 The MELSEC A timing of each signal when the limit switch output function is exe cuted output data setting CH1 Limit switch ON buffer memory ot UIU Lio L t addresses 12 to 28 f output data setting buffer memory OFF i addresses 131 to 147 Limit switch output ON l i l l 1 l CH8 Limit switch ON Lid l l command Y15 Limit switch o enable flag X09 utput
52. module to fail or malfunction Cautions on Disposal N CAUTION e Dispose of this product as industrial waste REVISIONS The manual number is given on the bottom left of the back cover Print Date Manual Number Revision Sep 1991 IB NA 66337 A First edition Oct 2002 IB NA 66337 B Partial correction CONTENTS Chapter 2 Section 3 1 3 2 3 4 3 5 1 8 1 1 9 1 9 3 9 4 9 5 SAFETY PRECAUTIONS Nov 2004 IB NA 66337 C Partial correction SAFETY PRECAUTIONS Section 3 1 9 1 9 1 2 9 2 9 3 9 4 Sep 2006 IB NA 66337 D Partial correction SAFETY PRECAUTIONS Japanese Manual Version SH 3519 G This manual confers no industrial property rights or any rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual 1991 MITSUBISHI ELECTRIC CORPORATION INTRODUCTION Thank you for purchasing the MELSEC A series PLC Before using the equipment please read this manual carefully to develop full familiarity with the functions and performance of the A series PLC you have purchased so as to ensure correct use Please forward a copy of this manual to the end user CONTENTS INTRODUCTION 0 cece eee eee ete eee tetera nee ten eee eeeuneees 1 1 1 2 1 1 Feat
53. mory addresses 2 to 3 Sampling periodic counter on flag XOD The periodic time can be set in 10ms increments and the accuracy is 0 7ms The relationship between the each signal and the buffer memory is shown below OFF 200 100 100 OFF 300 200 100 100 200 300 OFF 9 11 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 1 Stores the counter present value 200 0 200 to the counter function selection count value storage buffer memory after the periodic time set in address 10 9 is set to the 0 state 2 Stores the counter present value of 300 to the counter function selection count value storage buffer memory 3 Stores the counter present value of 200 to the counter function selection count value storage buffer memory 4 Stores the counter present value of 50 to the counter function selection count value storage buffer memory 5 Keeps the sampling periodic counter flag XOD ON during exe cution of the periodic pulse counter 6 Ignores the counter value of the periodic pulse since the counter function selection start command is turned OFF 7 Retains the value of 50 item 4 after the periodic pulse counter is executed 8 The periodic pulse counter function works whether the count enable command Y10 is ON or OFF 9 12 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 9 4 1 Example program The following program allows the A1SD61 to
54. ncremental Count Li oF Precautions for counting using 2 phase pulse input multiplied by one The A1SD61 s counting using 2 phase pulse input multiplied by one is made at the rise of phase A Note the following points 1 If pulse input is repeated in either of the following ranges only increment or decrement is performed Only increment is Only decrement is performed if input performed if input is repeated in is repeated in this l this range l l range i lt lt ___ _ _ gt Phase A pulse input Phase B pulse input 2 When the use of such increment and decrement as positioning control is required it is recommended to use multiplication by four 5 PULSE INPUT AND COUNTER PROCESSING METHOD 5 2 2 Counting using 2 phase pulse input multiplied by two Count is made both at the rise and at the fall of the phase A pulse The phase difference between phase A and phase B pulses determines whether the count is made incrementally or decrementally Incremental count Decremental count Phase A pulse input f l f f t Phase A pulse input f f f Phase B pulse input Phase B pulse input Present value storage Present value storage H H uffer memory buffer memo i Addresses 0 to 1 0 1 2 3 4 5 6 Addresses D0 0 1 2 3 4 5 6 5 2 3 Counting using 2 phase pulse input multiplied by four Count is made both at the rise and at the fall
55. ncrements and the accuracy is 0 7ms The relationship between each signal and the buffer memory is shown below 5 Count enable OFF command Y10 Present value storage buffer memory 200 addresses 0 to 1 100 Counter start command ON Y14 F START terminal OFF Sampling periodic time setting buffer memory address 10 200 Counter value storage 100 buffer memory addresses 2 to 3 100 Sampling periodic ON counter flag X0D OFF 1 Starts counting input pulses from 0 at the rise of the counter function selection start command Y14 F START terminal 2 Stops counting after the specified sampling time 3 Keeps the sampling periodic counter flag XOD ON during exe cution of the sampling counter function 4 Retains the counter function selection count value in the buffer memory after completing the sampling counter function 5 The sampling counter function works whether the count enable command Y10 is ON or OFF 9 SELECTING AND EXECUTING THE COUNTER FUNCTION 9 3 1 Example program The following program allows the A1SD61 to count 2 phase input pulses multiplied by one and execute the sampling counter System configuration X00 to X1F YOO to YIF X20 to X3F AiS Ais Ais AIS 62P CPU D61 X41 Devices to be used 1 Execution commands a Pulse input mode setting command sss essrssesereerssersrenrsrneerreese M9038 b Count operation start command s esssssrerssersssere
56. ndensing Storage ambient humidity 10 to 90 RH non condensing Under intermittent vibration 0 075 mm Conforming to 2 Vibration resistance JIS B 3502 and 57 to 150 Hz 9 8m s 10 times in each IEC 61131 2 Under continuous vibration of X Y and Z 0 035 mm Conforming to JIS B 3502 and IEC 61131 2 147 m s 3 times each of three in X Y Z enoras i ones O rowtoniewi 2 er O O Indicates the element in the distribution system between the public electricity grid and the mechanical equipment inside the premises that the relevant device is assumed to be connected to Category II applies to devices such as those that draw their power supply from fixed installations The surge voltage withstand capability of devices with ratings up to 300 V is 2 500 V directions for 80 minutes 2 This is an index which gives a measure of the incidence of conductive materials in the environment in which the device is used A contamination level of 2 indicates an environment in which there is only contamination by non conducting materials but due to occasional condensation conductivity may occur 3 Do not use or store the PLC in the environment where the applied pressure is higher than the atmospheric pressure at the altitude of Om Doing so may cause a malfunction When using under such pressure consult our representative in a branch 3 SPECIFICATIONS 3 2 Performance Specifications Table 3 2 gives the pe
57. nee X24 2 Relationship between data register DO to D5 and buffer memory Buffer memory L Present value H gt Dito D2 1 Pulse input mode setting vo gt D3 to D4 gt a Preset value setting H Data write error code RARA ARAARA AA ok 6 EXECUTING THE PRESET FUNCTION Example program Pulse input mode seiting M9038 X000 Start the count operation X020 X000 ror Hoo K oo Tki ror e o H Hi Present value read Preset command X022 X000 iie Cser von H c pmove kioo o3 i X00A X000 m Error detection reset X000 Ae X023 X008 X000 From kooo en j os e f 1 AR Count operation stop X024 X000 CIRCUIT END oe a rE CPs vo H MELSEC A The following program counts 2 phase pulses multiplied by one and executes preset using the sequence program Start the pulse count with the count enable command SET Read the present value and store it to devices D1 to D2 Store the preset value of 100 to address 6 of the buffer memory Reset the external preset command detection flag Read the error code and store it to device D5 Reset the error Stop the pulse count by the count enable command RST 7 EXECUTING THE RING COUNTER FUNCTION 7 EXECUTING THE RING COUNTER FUNCTION This section describes the ring counter function 7 1 Ring Counter Function The rin
58. ng the voltage to the external terminal Preset function application example By using the preset function the production count can be continued from the previous day 1 The production volume of the previous day is preset from the PLC CPU to the A1SD61 2 Products are carried by a conveyor 3 The production volume is counted by inputting the pulse from the photo electric switch 4 Atthe end of the daily production the counter value in the buffer memory is stored to a word device D W etc in the PLC CPU latch range gt g HH J Photo electric switch PLC CPU Word device of latch range Used for storing produc tion volume data 3 Pulse train SUL A1SD61 1 Preset 6 EXECUTING THE PRESET FUNCTION 6 2 Preset Using the Sequence Program The following describes the preset function executed by the sequence pro gram 6 2 1 Executing the preset function using the sequence program Turn ON the preset command Y12 in the sequence program to execute the preset ON Count enable command Y10 OFF Input pulse to be counted Preset value setting buffer memory Addresses 6 to 7 Preset command Y12 ON Present value storage buffer memory Addresses 0 to 1 0 1 2 to 65 66 ay 00 4011102 103 104105 106 67 1 Writes a given value to the preset value setting buffer memory addresses 6 to 7 in 32 bit binary code 2 Turing ON the pre
59. nge shall be limited to normal use within the usage state usage methods and usage environment etc which follow the conditions and precautions etc given in the instruction manual user s manual and caution labels on the product 2 Even within the gratis warranty term repairs shall be charged for in the following cases 1 Failure occurring from inappropriate storage or handling carelessness or negligence by the user Failure caused by the user s hardware or software design 2 Failure caused by unapproved modifications etc to the product by the user 3 When the Mitsubishi product is assembled into a user s device Failure that could have been avoided if functions or structures judged as necessary in the legal safety measures the user s device is subject to or as necessary by industry standards had been provided 4 Failure that could have been avoided if consumable parts battery backlight fuse etc designated in the instruction manual had been correctly serviced or replaced 5 Failure caused by external irresistible forces such as fires or abnormal voltages and Failure caused by force majeure such as earthquakes lightning wind and water damage 6 Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi 7 Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user 2 Onerous repair term after discontinuation of production
60. r 0 1 mA or lower Response OFF ON ON OFF time 1 msec or Jess 1 msec or less K y Operating voltage 10 2 to 30 V OUT 2 Rated current 0 5 A OUT 3 Rated voltage 0 1 A point 0 8 A common Maximum rush current 0 6 A 10 msec 14 OUT 4 Maximum voltage drop at ON 0 7 V TYP OUT 5 2 Out 15 OUTS Fe onse time OFF gt ON ouT7 7 ON gt OFF 12 24V Input voltage oa e a Current consumption 8 mA TYP 24 VDC e com A Function start 21 6 to 26 4 V 2 to 5 mA input 24 V OFF 5Vorlower 0 1 mA or lower ON gt OFF 3 5 msec or less 2 to 5 mA 0 1 mA or lower 1 3 V MAX 1 msec MAX 0 3 msec MIN 1 msec MAX 0 3 msec MIN 10 2 to 30 V 1 In the preset input and function start input the same external input volt age seiting pin is used 2 The response time includes the internal processing time lt is the time from data detection till its output to the outside 3 SPECIFICATIONS 3 5 1 0 Signals from to a PLC CPU Tables 3 5 and 3 6 list the I O signals from to a PLC CPU The I O numbers X Y and I O addresses which are referred to in this manual are used when the A1SD61 is loaded to I O slot 0 of a main base unit Table 3 5 Input Signals Name ae Reference Goes ON when a watchdog timer error me rennet o Watchdog timer error flag occurs in the A1SD61 xoi cHt limit switch output status CH1 limit switch output status flag 8 ett opty
61. resent value 500 2147483648 0 2000 2147483647 Outside the Within the range range of the pre Outside the range of the preset of the preset and set and ring and ring counter values ring counter values counter values a When the preset value of the storage buffer memory addresses 6 to 7 is set to 0 the ring counter value of the storage buffer memory addresses 8 to 9 to 2000 and the present value of the storage buffer memory addresses 0 to 1 to 500 respectively the ring counter is executed as shown below 1 Increment count If the ring counter value reaches the ring counter set value 2000 the present value storage buffer memory addresses 0 to 1 will be set to the preset value 0 The ring counter value 2000 is stored io the present value storage buffer memory 7 EXECUTING THE RING COUNTER FUNCTION 2 Present value Decrement count If the ring counter value reaches the preset value 0 the preset value will remain When the next count is made the preset value ring counter value 1 is stored to the present value of the storage buffer memory The ring counter value 2000 is not stored to the present value of the storage buffer memory Ring counter value Preset value Re 2000 to 1998 1999 FU UU UL U Ring counter value 2000 is not stored to the present value storage buffer memory b When the preset value of the storage buffer memory addresses 6 to
62. resent value and DFRO H0000 store it to devices D1 to D2 Sampling counter command x022 X000 f Read the counter value and H DFRO H0000 store it to devices D3 to D4 X023 X000 ji J l ae MOVvP ke o Set the sampling counter function F H0000 X024 X000 move K1000 De Set the sampling time r Hoooo Kio De Ki X025 X000 mie Yo14 Execute the sampling Error detection reset X000 Read the error code and store 7 FROM H0000 e o kt it to device D7 x026 X00B X000 4 1 4 Reset the error Count operation stop X027 X000 Stop the pulse count with FE Y010 the count enable command RST CIRCUIT END 9 10 9 SELECTING AND EXECUTING THE COUNTER FUNCTION MELSEC A 9 4 Periodic Pulse Counter Function The periodic pulse counter function counts the number of pulses input at the preset intervals and stores them into the counter function selection count value storage buffer memory Find the value stored in the counter function selection count value storage buffer memory using the following formula Stored value Counter present value after the periodic time Counter present value at the start Count enable command ON Y10 Present value storage buffer memory addresses 0 to 1 Counter function selection ON start command 14 F START terminal i Sampling periodic time setting buffer memory address 10 Counter function selection count value storage buffer 0 me
63. rformance specifications of the A1SD61 Table 3 2 Performance Specifications a 2 5 VDC Signal fevels 12 VDC 2 to 5 mA 1 phase and 2 phase inputs Count input signal A and B 24 VDC Maximum 1 phase input 50k pps 10k pps counting speed 2 phase input 50k pps 7k pps 32 bit signed binary 2147483648 to 2147483647 Counting range Equipped with UP DOWN preset counter and ring counter functions 100u sec tue 50u 50u Tip Tip sec sec s c sec i phase input 2 phase input Counter 20u sec 142u sec Minimum pulse width that can be counted Adjust so that the rise fall time of the input is 5p sec or less Duty ratio 50 t phase and 2 phase inputs Comparison range 32 bit signed binary Comparison A cntact operation dog ON address lt count value lt dog OFF address result B contact operation dog OFF address lt count value lt dog ON address 5 12 24 VDC Function start 2 to 5 mA External Comparison Transistor open collector output output output 12 24 VDC 0 1 A point 0 8 A common Between paise input terminal and PLC power supply Between preset input terminai 5MQ or more an power supply i i A measured with a S00V Photocoupler isolation 500VAC for 1 minute N A Between function start input DC insulation go ee terminai and PLC power supply Between coincidence output t
64. rogram Pulse input mode setting X000 M9038 ag L Start the count operation X020 X000 4 L O A wowe e 00H CoP remo a o Tri Present value read X021 X000 set yoo lt 4F Ring counter command X000 x022 x013 I X023 X000 IH He move KO oe H Bmove ke000 s JH Dror Hooo Ke J oo e Error detection reset X000 H X024 X00B x000 m Count operation stop X025 X000 rH Counter present value change x026 IF CIRCUIT END MELSEC A Set the pulse input mode of the 2 phase pulse input multiplied by one Start the pulse count with the count enable command SET Read the present value and store it to devices D1 to D2 Store the preset and ring counter values to addresses 6 to 9 of the buffer memory Execute the ring counter Read the error code and store it to device D7 Reset the error Stop the pulse count by the count enable com mand RST Change the present value of the counter to the preset value 8 EXECUTING THE LIMIT SWITCH OUTPUT FUNCTION 8 EXECUTING THE LIMIT SWITCH OUTPUT FUNCTION This section describes the limit switch output function 8 1 Limit Switch Output Function The limit switch output function is used in the following cases When the counter present value is consistent with a specified limit output status ON OFF address of a certain channel the ON OFF signal is output When t
65. ry Counter function selection e While inputting the signal of the counter function selection start command the input pulses are stored in the buffer memory at specified intervals Count disable e Stops counting pulses while the count enable command is ON Counter function selection means that only one out of the four functions can be used Periodic pulse counter 3 SPECIFICATIONS 3 4 External Devices Interfaces Table 3 4 lists the external device interfaces Table 3 4 External Device Interfaces Input Voltage input Terminal Guaranteed Value Pulse input yoltage set ting pin 24V input 12V Phase A Pulse input voltage set ting pin Phase B pulse input 24V 3 Phase B pulse input 12 V Phase B pulse input 5 V 4 7KQ External input Preset input aw 12 V 24 V voltage setting pin 1 Phase A pulse on 45t05av zisma ade fd po e ON_ 10 2 to 26 4 V 2 to 6 mA 0 1mA or lower Preset input ON 4 5 to 5 5 V 3 5 to 5 5 mA Te OFF 1 5V or lower 0 1mA or lower MELSEC A Operating Current Guaranteed Value 2 to 5 mA 0 1mA 2to5mA 0 1mA or lower 2to5mA 0 1 mA or lower OFF gt ON 7 1 msec or less put votiage belting pin ON OFF 10 8 to 13 2 V 4 V or lower Function start input 12V input 5V Function stat ON 4 5to5 5V 2to5mA OFF 2V or lowe
66. s may be used a Latch counter function b Sampling counter function c Periodic pulse counter function d Count disable function A function can be selected between the preset and the counter using the external input see Sections 6 3 and 9 By applying voltage to the PRESET preset F START function start external terminal either the preset or the counter function can be used 2 SYSTEM CONFIGURATION 2 SYSTEM CONFIGURATION 1 Appilcable CPUs A1SJCPU S3 A2SCPU S1 A52GCPU T21B A1SJHCPU S8 A2SHCPU S1 eA1SCPU S1 A2ASCPU S1 S30 A1SCPUC24 R2 eA2USHCPU S1 eA1SHCPU Q2ASCPU S1 Q2ASHCPU S1 2 Number mountable Any number of modules can be used provided the number of I O points of the appilcable CPU is not exceeded 3 Available slots The module can be installed to any slot in the base unit with the exception of the following cases When installing mounting modules in an extension base unit that does not have a power supply A1S52B S1 A1S55B S1 A1S58B S1 the power supply capacity may be insufficient Note that When installing an A1SD61 to the extension base unit that has no power supply module select the power supply module main base unit exten sion base unit and extension cable after fully considering the following factors 1 Current capacity of the power supply module on the main base unit 2 Voltage drop at the main base unit 3 Voltage drop at the extension base unit 4 Voltag
67. set command Y12 sets the preset value in the buffer memory to the present value buffer memory The preset function can be used whether the count enable com mand Y10 is ON or OFF 6 EXECUTING THE PRESET FUNCTION 6 2 2 Example program The following program allows counting of 2 phase input pulses multiplied by one to execute preset using the sequence program System configuration X00 to X1F YOO to YIF X20 to X3F A1S A1S sjel Devices to be used 1 Execution commands a Pulse input mode setting command seesssesessusersserrsrnsrenerrenrerrs M9038 b Count operation start command ssesesesesesessssseseernrresnrestnneruseresnennse X20 c Present value read command eee eeseseseneeesseeesreeersenseneeensnenteaees X21 d Preset value write COMMANG cccseccssscessrecsseecssesensnensaneneracerenanes X22 e Preset COMMANG cesssccessececsssnenesssceenssceesesssseeessssnesessseeseneneneneens X23 f Error reset command ssesesersseseenererrsveserersntuenusonsrereesveneenrnasenrneonn ren X24 g Count operation stop command esessesseserrerrerserorereserussernnseeevrrreessor X25 2 Relationship between data register DO to D5 and buffer memory Buffer memory L Present value gt Dito D2 H Pulse input mode setting vo gt D3 to o gt Preset value setting H Data write error code gt D5 Lankana peraman Pe nn in son
68. sssetesnotesasrersnerenresse X20 c Present value read command eeecesecestessssrensseeessaeaseaetoseensorenees X21 d Counter function selection count value read command 006 X22 e Counter function selection setting command Qu ee eeseseneeneeees X23 f Sampling time setting command sseersresersesrorsresersrenerurenernenorenersnnuo X24 g Sampling counter command c ce eeecesesessseeeesnsersecevsetesereosenevenenes X25 h Error reset command 00 ccceseesecececsseesvececeneteeeesaceeaeesseesaseseeeseeesese X26 i Count operation Stop command cc ceeeeesseeesereeesteetstersenetonneveneeses X27 2 Relationship between the data register DO to D7 and the buffer memory Buffer memory Address Contents L Present value 4 D1 to D2 H L Counter function L D3 to D4 selection count value H DO Pulse input mode setting Counter function selection settin Sampling periodic time setting gt D7 Data write error code D5 D6 UA 9 SELECTING AND EXECUTING THE COUNTER FUNCTION MELSEC A Example program Pulse input mode setting l M9038 X000 Count operation start Set the pulse input mode of the 2 phase pulse input mul tiplied by one top Hoo K4 bo Ki X020 X000 Start the pulse count with aana Y010 the count enable command SET Present value read X021 X000 Read the p
69. ten the module mounting screws and terminal screws within the following ranges Terminal block mounting screw M4 screw 5 Install the module on the base unit by engaging the module locking tabs in the module locking holes in the base unit and tightening the module mounting screws To remove the module from the base unit unfasten the module mounting screws then disengage the module locking tabs from the module locking holes Module mounting screw Base unit Module Base unit connector Module locking tab Module locking hole 4 INSTALLATION AND PRE OPERATION SETTING PROCEDURE MELSEC A 4 3 Part Names and Settings The names of each part of the A1SD61 and the settings are shown below DIOS conrs g onou00000 oA Q w OOO WIE eole el 7 preset DO12 24V 01A A150861 S 50k Counts pulses at a maximum speed of 50k pps in 1 phase or 2 phase input 10k Counts pulses at 10k pps in 1 phase input at 7k pps in 2 phase input The factory setting is 50k Set using a jumper icSelelieloelclolell 1 Counting speed setting pin Sets the pulse voltage that is input to Phase A or B The factory setting is 24 V Mitsubishi cannot guarantee the module when a pulse whose voltage is higher than the set voltage is applied Set using a jumper See section 3 4 Sets the voltage input to the PRESET F START termin
70. to the pulse input mode setting buffer memory address 4 of the A1SD61 in the sequence program Counting using the phase A pulse input and de cremental count command Counting using the incremental phase A pulse 1 input and the decremental phase B pulse input Sequence program Write command WDT error H 1 In set the first two digits of the 3 digit head I O number in hexadecimal notation assigned to the A1SD61 2 In set 0 ori 5 PULSE INPUT AND COUNTER PROCESSING METHOD 5 1 1 Counting using the phase A pulse input and decremental count command The following counts can be made using the incremental phase A pulse input and decremental count command e Incrementally counts the pulses that are input to phase A at the rise e Decrementally counts pulses when the decremental count command volt age applied to phase B or Y11 turned ON by the PLC CPU is input at the rise of a pulse input to phase A 1 Incremental count When an incrementa count is executed the operation timing of the pulse inputs decremental count command and the present value of the stor age buffer memory are shown below Pulse input phase A f f f f f l f l Decremental count command ON phase B and Y11 OFF AiSD61 A Present value storage i H buffer memory O 1 2 38 4 i5 i6 addresses 0 to 1 2 Decremental count When a decremental count is executed the operation timing of
71. torage buffer memory When an incremental count is made if the value exceeds 2147483647 it will jump to 2147483648 When a decremental count is made if the value exceeds 2147483648 it will jump to 2147483647 Incremental count puseinpt Lf Lief Lf L i 1 Present value stor I I 1 I 1 1 L age buffer memory 2147483646 2147483647 2147483648 2147483647 I Decremental count Pulse input Present value stor age buffer memory 2147483647 2147483648 2147483647 2147483646 1 I I I 1 I The sequence program used to read the present value from the buffer memory is shown below Read Watchdog command timer error iH ro Hooo ko Do kt Number of items of data to be read Head device number of the present value storage destination Head address of the present storage area First two digits of the 3 digit head I O number in hexadecimal notation Instruction for reading in units of two words 6 EXECUTING THE PRESET FUNCTION 6 EXECUTING THE PRESET FUNCTION This section explains the preset function 6 1 Preset Function The preset function is used for converting the counter s present value to a different value This changed value is called the preset value The preset function can be used when a pulse count is started from the set value The preset function consists of two modes preset by the sequence program and preset from the external input applyi
72. tput 12 24 VDC 5mA External output Current consumption 5 VDC APP 1 APPENDICES MELSEC A Appendix 2 EXTERNAL DIMENSIONS 4 o a Oo o o o EJ o exvanrona 5 Q 2 6 5 COZ 0 26 93 6 3 69 34 5 1 36 Unit mm in APP 2 MEMO WARRANTY Please confirm the following product warranty details before using this product 1 Gratis Warranty Term and Gratis Warranty Range If any faults or defects hereinafter Failure found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company However if repairs are required onsite at domestic or overseas location expenses to send an engineer will be solely at the customer s discretion Mitsubishi shall not be held responsible for any re commissioning maintenance or testing on site that involves replacement of the failed module Gratis Warranty Term The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place Note that after manufacture and shipment from Mitsubishi the maximum distribution period shall be six 6 months and the longest gratis warranty term after manufacturing shall be eighteen 18 months The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs Gratis Warranty Range 1 The ra
73. troller device and that backup and fail safe functions are systematically provided outside of the device for any problem or fault 2 The Mitsubishi programmable logic controller has been designed and manufactured for applications in general industries etc Thus applications in which the public could be affected such as in nuclear power plants and other power plants operated by respective power companies and applications in which a special quality assurance system is required such as for Railway companies or Public service purposes shall be excluded from the programmable logic controller applications In addition applications in which human life or property that could be greatly affected such as in aircraft medical applications incineration and fuel devices manned transportation equipment for recreation and amusement and safety devices shall also be excluded from the programmable logic controller range of applications However in certain cases some applications may be possible providing the user consults their local Mitsubishi representative outlining the special requirements of the project and providing that all parties concerned agree to the special circumstances solely at the users discretion High Speed Counter Module Type A1SD61 User s Manual MODEL A1SD61 USERS E MODEL 13J674 IB NA 66337 D 0609 MEE a MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU T
74. unt disable function System configuration X00 to X1F YOO to YIF X20 to X3F A1S A1S A1S A1S 62P CPU D61 X41 Devices to be used 1 Execution commands a Pulse input mode setting command ssserssessrererersrereeserererere b Count operation start command ssssssssssssssssensrinurersrererrusenusereserrereees c Present value read command ssssssserneerererunersrereresrrsreurenensrenorerrenes d Count disable start command ssesssersrsresersrorevsrererurersoresrrasreeneenes e Count disable stop command ssssssssssrsssrsrurirnrussnuerornurantnnenusanennseener f Error reset command sesssessssusresrerrresesterererssenstaseestarorsernrenerarrerensees g Count operation stop command sssssseseresesereserereruneeerunernreesanseseennren 2 Relationship between the data register DO to D4 and the buffer memory Buffer memory L Present value H gt r to D2 DO Pulse input mode setting Counter function selection setting Data write error code D3 H gt ov 9 16 9 SELECTING AND EXECUTING THE COUNTER FUNCTION MELSEC A Example program Pulse input mode setting M9038 X000 1 At Count operation start X020 X000 Ae TOP H0000 1 Present value read Count disable command x022 X023 X000 X000 1 Error detection reset tH Count operation
75. ures 0 eee tee enn beeen eee eneenens 1 2 SYSTEM CONFIGURATION 02 cece eee eter eee renee eee e ee eeeeaee 2 1 SPECIFICATIONS 10 0 cece cere cece tee ee te eect eee e tee eteees 3 1 3 9 3 1 General Specifications 0 0 0 0 cece eet teen eee eraro 3 1 3 2 Performance Specifications 00 cc cee eee e ee nees 3 2 3 3 Functions 0 ee eet eee eee teen nnes 3 3 3 4 External Devices Interfaces 0 cece cette ee tee eee nent nees 3 4 3 5 I O Signals from to a PC CPU 2 eee nen eens 3 5 3 6 Buffer Memory Assignment 0 0 2 eee eee eens 3 7 3 7 Applicable Encoders ence eee nde en eee eee teen teen eee nets 3 9 INSTALLATION AND PRE OPERATION SETTING PROCEDURE 4 1 4 7 4 1 Pre operation Setting Procedure 0 0 c cece eee eens 4 1 4 2 Handling Precautions 0 0 eee eee nena eens 4 2 4 3 Part Names and Settings 0 cece ee ec tte eens 4 3 4 4 Wing 2 ee eee ete eee erent eee ees 4 4 4 4 1 Wiring preconditions 0 0 cece eee een eens 4 4 4 4 2 Wiring example for the connection with the open collector output pulse generator 1 2 cee eee eee tenet eens 4 5 4 4 3 Wiring example for the connection of a controller to external input terminals PRE SET and F START 20 eee ee et eee e eee e eee 4 7 4 4 4 Wiring examples at external output terminals OUTs 1 to 8 4 7 PULSE INPUT AND COUNTER PROCESSING METHOD 055
76. wing occurs when an multi dog setting error occurred 1 Limit switch output enable flag X09 OFF 2 Limit switch output states X01 to X08 and OUTs 1 to 8 All channels are OFF 1 When the limit switch output data is set or changed make sure that the following conditions are satisfied a The limit switch output enable command Y15 is OFF b The limit switch output enable flag X09 is OFF Data setting command Y15 X09 Seo ae HH 2 When the multi dog data setting is erroneous error code 110 to 183 201 to 208 turning ON the limit switch output command Y15 does not turn ON the limit switch output enable flag X09 In this case reset the error and turn ON the limit switch output command Y15 again 8 EXECUTING THE LIMIT SWITCH OUTPUT FUNCTION MELSEC A 8 1 1 Example program The following program allows the A1SD61 to count 2 phase input pulses multiplied by one and execute the limit switch output function System configuration X00 to X1F YOO to YIF X20 toX3F Y40 to Y4F AiS AiS AIS AIS Ais 62P CPU D61 X41 Y14 Operation status ON OFF status of the limit switch output is shown below Present value e ad to pood to frof to f o to so to froo te aoo to eoo to eoo to 1000 to ON CHI OFF ON CH2 OFF Devices to be used 1 Execution commands a Pulse input mode setting COMMANGA cscs erreeterseeseteees M9038 b Fuse blown detection ce
77. y a start stop or preset counter operation may be done The functions of the A1SD61 differ from those of the AD61 S1 Refer to Appendix 1 1 INTRODUCTION 1 1 Features 1 2 3 4 6 7 Pulses can be counted within a wide range from 2147483648 to 2147483647 The count value is stored as a signed 32 bit data in binary code Count multiplication may be done see Section 5 When a 2 phase pulse is input the count can be multiplied by either one two or four The maximum counting speed can be selected between 50 and 10k pps See Sections 3 2 and 4 3 When the maximum counting speed is set to 50k pps a pulse at a maximum of 50k pps can be counted in both the 1 phase and 2 phase inputs When the maximum counting speed is set to 10k pps a pulse at a maximum of 10k pps in the 1 phase input or at a maximum of 7k pps in the 2 phase input can be counted The ring counter function can be used see Section 7 This function allows pulses to be counted repeatedly between the preset value and ring counter value The limit switch output can be used see Section 8 The preset output status of a given channel is compared with the present value of the counter to output an ON OFF signal a A single module outputs to eight channels b Four dogs can be used for each channel One out of the four counter functions can be selected see Section 9 Whichever function is desired from the following function
Download Pdf Manuals
Related Search
Related Contents
Samsung Micro-ondes encastrable Gril, 23L, Inox - FG87SST MJB - Under Bed Light (ext.), Out of Bed Detection 仮面ライダーフォーゼ 青春合体!!超アストロベース 3. Asahi Pentax IQZoom 130-M Operating Manual WTC 516 - Switel VMT5015 Handbuch DE V3.1 - ads-tec Philips SDV2210 Nitrogen generator model ZEFIRO 3-5 User's manual Copyright © All rights reserved.
Failed to retrieve file