background image

MELSEC-A

10. PROGRAMMING

 

10 - 30 

10.5.4 Program example of ring counter function 

Network parameter settings with dedicated command RLPA

Automatic refresh parameter settings with dedicated command RRPA

Synchronous mode is 
invalid.
No. of modules connected
: 1 

Station information of 

high-speed counter module 

(remote device station, 4 

stations occupied, station 

number 1) 

Dedicated command 
(RLPA) 
Head I/O number of 
master module

Parameter storage head 
device 

Device that turns on 1 
scan at completion 

Parameter status reading 
at abnormal completion 

RX head number is set. 

"X" is set. 

X400 is set. 

128 points is set. 

RY head number is set. 

"Y" is set. 

Y400 is set. 

128 points is set. 

RW head number is set. 

"D" is set. 

D200 is set. 

263 points is set. 

SB head number is set. 

"B" is set. 

B0 is set. 

512 points is set.

SW head number is set. 

"W" is set. 

Downloaded from 

ManualsNet.com

 search engine

Summary of Contents for AJ65BT-D62

Page 1: ...High Speed Counter Module Type AJ65BT D62 AJ65BT D62D AJ65BT D62D S1 User s Manual Downloaded from ManualsNet com search engine ...

Page 2: ...Downloaded from ManualsNet com search engine ...

Page 3: ...carefully where they can be accessed whenever necessary and should always be passed on to the end user along with the equipment Design Precautions WARNING When a communication error occurs in data link the faulty station will result in the following status Using the communication status information configure up an interlock circuit in the sequence program to make the system safe Misoutput or misop...

Page 4: ...electric shock CAUTION Be sure to shut off all phases of the external power supply used by the system before installation or wiring Not doing so can cause the product to be damaged or malfunction Ground the FG terminal to the protective ground conductor dedicated to the programmable controller Failure to do so may result in electric shock or malfunction Use applicable solderless terminals and tigh...

Page 5: ...on or power cable connected to the module When the cable is fitted with a connector hold the connector of the cable part connected to the module When the cable is not fitted with a connector loosen the screw in the cable part connected to the module If you pull the cable connected to the module the module or cable can be damaged or misoperation can occur due to improper cable connection Starting a...

Page 6: ...ng or dismounting the module to or from the panel Not doing so can cause the module to fail or malfunction Do not install remove the terminal block more than 50 times after the first use of the product IEC 61131 2 compliant Before handling the module always touch grounded metal etc to discharge static electricity from the human body Failure to do so can cause the module to fail or malfunction The ...

Page 7: ...clear Power Plants and any other power plants operated by Power companies and or any other cases in which the public could be affected if any problem or fault occurs in the PRODUCT Railway companies or Public service purposes and or any other cases in which establishment of a special quality assurance system is required by the Purchaser or End User Aircraft or Aerospace Medical applications Train ...

Page 8: ... SAFETY PRECAUTIONS Section 3 5 4 3 4 4 6 5 3 9 1 9 3 9 4 9 5 Mar 2006 IB NA 66823 E Partial Correction SAFETY PRECAUTIONS Conformation to the EMC Directive and Low Voltage Instruction Section 10 6 4 Sep 2006 IB NA 66823 F Partial Correction SAFETY PRECAUTIONS Addition Section 11 4 Section number change Section 11 4 11 5 Apr 2012 IB NA 66823 G Partial Correction SAFETY PRECAUTIONS MANUALS COMPLIAN...

Page 9: ...37 H This manual confers no industrial property rights or any right 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 1997 MITSUBISHI ELECTRIC CORPORATION Downloaded from ManualsNet com search engine ...

Page 10: ...IONS 3 1 to 3 18 3 1 General Specifications 3 1 3 2 Performance Specifications 3 2 3 3 Functions 3 8 3 4 Interfaces with External Devices 3 9 3 5 I O Signals Transferred to from the Master Module 3 12 3 6 Remote Register Allocation 3 14 3 7 Applicable Encoders 3 15 3 8 Data Link Processing Times 3 16 4 INSTALLATION AND PRE OPERATION SETTING PROCEDURE 4 1 to 4 16 4 1 Pre Operation Setting Procedure...

Page 11: ...11 9 1 Selecting the Counter Function 9 1 9 1 1 Reading the counter function selection count value 9 3 9 1 2 Counting errors 9 4 9 2 Count Disable Function 9 5 9 3 Latch Counter Function 9 7 9 4 Sampling Counter Function 9 8 9 5 Periodic Pulse Counter Function 9 10 10 PROGRAMMING 10 1 to 10 55 10 1 Programming Procedures 10 1 10 2 Condition of Program Example 10 1 10 3 Program Example when QCPU Q ...

Page 12: ...f sampling counter function 10 36 10 5 8 Program example of frequency pulse counter function 10 38 10 6 Program Example when ACPU QCPU A Mode is Used From To Command 10 40 10 6 1 Program example of coincidence output function 10 40 10 6 2 Program example of preset with sequence program 10 42 10 6 3 Program example of preset with external control signal 10 44 10 6 4 Program example of ring counter ...

Page 13: ...anual Describes the system configuration performance specifications functions handling wiring and troubleshooting of the L26CPU BT and LJ61BT11 Option SH 080895ENG 13JZ41 Type AnSHCPU AnACPU AnUCPU QCPU A A Mode Programming Manual Dedicated Instructions Describes the instructions extended for the AnSHCPU AnACPU AnUCPU Option IB 66251 13J742 COMPLIANCE WITH EMC AND LOW VOLTAGE DIRECTIVES 1 Method o...

Page 14: ...tion that handles bit information only Input output is performed with external devices AJ65BTB1 16D AJ65SBTB1 16D etc Remote device station Station that handles bit information and word information Input output with external devices analog data conversion Remote station General name of remote I O station and remote device station It is controlled by master station Intelligent device station Statio...

Page 15: ...ct name Quantity AJ65BT D62 type high speed counter module 1 AJ65BT D62D type high speed counter module AJ65BT D62D S1 type high speed counter module AJ65BT D62 AJ65BT D62D AJ65BT D62D S1 type high speed counter module user s manual Hardware 1 Downloaded from ManualsNet com search engine ...

Page 16: ...VDC 2 to 15mA Differential input Function start 5 12 24VDC 2 to 5mA Max counting speed Max 200kPPS Max 400kPPS CC Link station type Remote device station Counting range 24 bit binary 0 to 16777215 Counting switch over 200k 10k 1 phase 400k 2 phases 300k 10k The high speed counter module counts 1 phase and 2 phase pulse inputs as described below 1 phase pulse input multiplied by one Counts on the l...

Page 17: ...ontrol signal Only the AJ65BT D62D S1 accepts one input and provides one coincidence output However it can use two points for the counter value magnitude comparison coincidence greater less signals 1 Pulses input to the high speed counter module are counted 2 The preset or counter function can be selected with an external control signal 3 The pulse is compared as a coincidence output with the pres...

Page 18: ...oints for counter value coincidence greater less signals 5 Ring counter function is available Counting repeats between the preset value and the ring counter value and this function is effective in controlling fixed pitch feed 6 Four counter functions are available Any of the following functions can be selected and used a Latch counter function Latches the present counter value in response to an in...

Page 19: ...M CONFIGURATION This chapter describes a system configuration using the high speed counter module 2 1 Overall Configuration The overall configuration using the high speed counter module is shown below Downloaded from ManualsNet com search engine ...

Page 20: ...D008H40 CPU UNIT MODEL DATE PROGRAMMABLE CONTROLLER DATE 9707 B MITSUBISHI ELECTRIC CORPORATION JAPAN BD992D008H40 9707 B Manufacturing year and month Function version Manufacturing year and month Function version Large type Small type 2 Limitations for use of dedicated command RLPA RRPA for CC Link The dedicated command RLPA RRPA for CC Link may not be used depending on the programmable controlle...

Page 21: ...2000m Installation location Inside control panel Overvoltage category 2 II or less Pollution degree 3 2 or less 1 Do not use or store the programmable controller under pressure higher than the atmospheric pressure of altitude 0m Doing so may cause malfunction When using the programmable controller under pressure please consult your local Mitsubishi Electric representative 2 This indicates the sect...

Page 22: ...Response time OFF ON 0 5ms or less ON OFF 3ms or less External output Coincidence output 2A 1 common Response time 0 1ms or less CC Link station type Remote device station Number of stations occupied 4 stations Connection cable Dedicated cable for CC Link Withstanding voltage 500VAC for 1 minute across all DC external terminals and grounding terminal Insulation resistance 10M or more across all DC...

Page 23: ...ting of a pulse having long rise and fall times may result in miscounting Counting Speed Setting Switch HIGH LOW t t Rise fall time 1 phase input 2 phase input 1 phase input 2 phase input t 2µs or less 200kPPS 200kPPS 10kPPS 7kPPS t 25µs or less 10kPPS 10kPPS 1kPPS 700PPS t 500µs 500PPS 250PPS Downloaded from ManualsNet com search engine ...

Page 24: ... Response time OFF ON 0 5ms or less ON OFF 3ms or less External output Coincidence output 2A 1 common Response time 0 1ms or less CC Link station type Remote device station Number of stations occupied 4 stations Connection cable Dedicated cable for CC Link Withstanding voltage 500VAC for 1 minute across all DC external terminals and grounding terminal Insulation resistance 10M or more across all D...

Page 25: ...ving long rise and fall times may result in miscounting Counting Speed Setting Switch HIGH LOW t t Rise fall time 1 phase input 2 phase input 1 phase input 2 phase input t 0 1µs or less 400kPPS 300kPPS t 1 25µs or less 200kPPS 200kPPS 10kPPS 7kPPS t 12 5µs or less 20kPPS 20kPPS 1kPPS 700PPS t 250µs 500PPS 250PPS Downloaded from ManualsNet com search engine ...

Page 26: ...Texas Instruments make Function start 5 12 24VDC 2 to 5mA Response time OFF ON 0 5ms or less ON OFF 3ms or less External output Coincidence output 2A 1 common Response time 0 1ms or less CC Link station type Remote device station Number of stations occupied 4 stations Connection cable Dedicated cable for CC Link Withstanding voltage 500VAC for 1 minute across all DC external terminals and groundin...

Page 27: ...ving long rise and fall times may result in miscounting Counting Speed Setting Switch HIGH LOW t t Rise fall time 1 phase input 2 phase input 1 phase input 2 phase input t 0 1µs or less 400kPPS 300kPPS t 1 25µs or less 200kPPS 200kPPS 10kPPS 7kPPS t 12 5µs or less 20kPPS 20kPPS 1kPPS 700PPS t 250µs 500PPS 250PPS Downloaded from ManualsNet com search engine ...

Page 28: ...emote registers when the signal of the counter function selection start command is input Section 9 3 Sampling counter function After the signal of the counter function selection start command is input input pulses are counted during a preset sampling period and stored into the remote registers Section 9 4 Periodic pulse counter function While the signal of the counter function selection start comm...

Page 29: ... or less 0 1mA or less 11 18 Phase B pulse input COM Input 12 19 Preset input 24V ON 21 6 to 26 4V 2 to 5mA OFF 5V or less 0 1mA or less Preset input 12V ON 10 8 to 13 2V 2 to 5mA OFF 4V or less 0 1mA or less Preset input 5V ON 4 5 to 5 5V 2 to 5mA OFF 2V or less 0 1mA or less 13 20 COM Respon se time OFF ON 0 5ms or less ON OFF 3ms or less Input 14 21 Function start input 24V ON 21 6 to 26 4V 2 t...

Page 30: ...5mA OFF 5Vor less 0 1mA or less Preset input 12V ON 10 8 to 13 2V 2 to 5mA OFF 4V or less 0 1mA or less Preset input 5V ON 4 5 to 5 5V 2 to 5mA OFF 2V or less 0 1mA or less 13 20 COM Respon se time OFF ON 0 5ms or less ON OFF 3ms or less Input 14 21 Function start input 24V ON 21 6 to 26 4V 2 to 5mA OFF 5V or less 0 1mA or less Function start input 12V ON 10 8 to 13 2V 2 to 5mA OFF 4V or less 0 1m...

Page 31: ...ulse input 10 18 Phase B pulse input 11 19 Phase B pulse input Input 12 20 Preset input 13 21 Preset input Input 14 22 Function start input 24V ON 21 6 to 26 4V 2 to 5mA OFF 5V or less 0 1mA or less Function start input 12V ON 10 8 to 13 2V 2 to 5mA OFF 4V or less 0 1mA or less Function start input 5V ON 4 5 to 5 5V 2 to 5mA OFF 2V or less 0 1mA or less 15 23 Function start input COM Respon se tim...

Page 32: ... off by the coincidence signal reset command RXnA RXnD Counter value less point No 2 Turned on when the counter value is less than the set value No 2 RXnE RXnF Unusable RX n 1 0 RX n 1 2 Preset completion Turned on on completion of the preset function executed when the preset command RY n 1 1 RY n 1 8 turns on Turned off when the preset command switches from ON to OFF Section 7 2 RX n 1 1 RX n 1 3...

Page 33: ...Y n 1 5 RY n 1 C Unusable RY n 1 6 RY n 1 D Counter function selection start command Starts executes counter function selection Chapter 9 RY n 1 E to RY n 1 F Unusable RY n 2 0 RY n 2 2 External preset detection reset command Resets external preset detection Section 7 3 RY n 2 1 RY n 2 3 Point No 2 coincidence signal reset command Resets the point No 2 coincidence signal Section 6 1 Section 8 1 RY...

Page 34: ...a of master station RWrn RWrn 8 Present value storage area L Read only Section 5 3 RWrn 1 RWrn 9 H RWrn 2 RWrn A Latch count value sampling count value periodic pulse count previous value storage area L Section 9 3 Section 9 4 Section 9 5 RWrn 3 RWrn B H RWrn 4 RWrn C Periodic pulse count present value storage area L Section 9 5 RWrn 5 RWrn D H RWrn 6 Sampling periodic counter flag storage area fo...

Page 35: ...pe encoder Make sure that the output voltage of the encoder complies with the specifications of the module 2 Encoder connectable to the AJ65BT D62D and AJ65BT D62D S1 a Line driver output type encoder Make sure that the output voltage of the encoder complies with the specifications of the module POINT The following type of encoder cannot be used TTL output type encoder Downloaded from ManualsNet c...

Page 36: ...hronous mode OFF ON 103 102 101 100 99 98 to 2 1 0 2 3 1 100 4 4 Count enable command RY n 1 4 RY n 1 B Coincidence signal enable command RY n 1 2 RY n 1 9 Input pulse for counter Coincidence output point No 1 setting area Addresses RWwm 3 to 4 RWwm B to C Counter value less point No 1 RXn2 RXn6 Counter value coincidence point No 1 RXn1 RXn5 Point No 1 coincidence signal reset command RY n 1 0 RY ...

Page 37: ...e station Formula SM LS 1 remote device station processing time 1ms ms high speed counter module SM Scan time of master station sequence program LS Link scan time 3 Master station RX remote device station RX processing time Normal value The following is the processing time takes for the remote device station to receive a coincidence signal reset command and for the master station to receive inform...

Page 38: ...owing is the transmission time to set coincidence output point No 1 set value at the remote device station Formula SM LS 1 remote device station processing time 1ms ms high speed counter module SM Scan time of master station sequence program LS Link scan time Downloaded from ManualsNet com search engine ...

Page 39: ... This chapter describes the pre operation procedure of the high speed counter module the names and settings of each part and the wiring method 4 1 Pre Operation Setting Procedure Use the following procedure to make pre operation setting for the high speed counter module Downloaded from ManualsNet com search engine ...

Page 40: ...ified torque range Undertightening the terminal screws can cause short circuit or malfunction Overtightening can damage the screw and or module resulting in drop short circuit or malfunction Ensure that foreign matters such as chips and wire off cuts do not enter the module They can cause a fire failure or misoperation Do not disassemble or modify the module This can cause a failure misoperation i...

Page 41: ...ng the module avoid the following environment If the environment of the module used is outside the range of general specifications an electric shock fire misoperation or product damage or deterioration can occur Ambient temperature outside the range 0 to 55 C Ambient humidity outside the range 10 to 90 RH Condensation due to sudden temperature changes Corrosive or combustible gasses Dust conductiv...

Page 42: ...TE 0 2 1 3 4 Number to Be Set Transmission Baud rate 0 156kbps factory setting 1 625kbps 2 2 5Mbps 3 5Mbps 4 10Mbps Other than 0 to 4 Unused If the value set is other than 0 to 4 the L ERR LED lights up to indicate a communication error 3 Counting speed setting switch LOW position Up to 10kPPS can be counted for 1 phase input or up to 7kPPS for 2 phase input HIGH position Up to 400 200 kPPS can be...

Page 43: ...at voltage is being applied to the phase B pulse input terminal DEC Lit to indicate down count PRE Lit to indicate that voltage is applied to the PRESET terminal and remains lit Turns off on the trailing edge of the external preset detection reset command F ST Lit to indicate that voltage is being applied to the F START terminal EQU1 Lit to indicate that the coincidence output setting No 1 is equa...

Page 44: ...COM 7 24G 21 F START 8 CH1 A A 22 CH1 EQU1 9 A 23 EQU2 10 B B 24 CH2 EQU1 11 B 25 EQU2 12 PRESET 26 12 24V 13 COM 27 COM 14 F START For the AJ65BT D62D S1 Pin Number Signal name Pin Number Signal name 1 DA 16 CH2 A A 2 DB 17 A 3 DG 18 B B 4 SLD 19 B 5 24V 20 PRESET 6 F G 21 PRESET 7 24G 22 F START 8 CH1 A A 23 9 A 24 CH1 EQU1 10 B B 25 CH2 EQU1 11 B 26 12 24V 12 PRESET 27 COM 13 PRESET 14 F START ...

Page 45: ...setting pins The also applies to CH2 Circuit board AJ65BT D62D S1 F ST PRE 24V 12V 5V CH 1 F ST 24V 12V 5V CH 1 AJ65BT D62D AJ65BT D62 PRE F ST CH 1 B A 5 V 24V 12V 5V 24V 12V 5V Jumper connected to 5V Jumper connected to 12V Jumper connected to 24V Jumper Factory setting 24V Downloaded from ManualsNet com search engine ...

Page 46: ...red are determined by the station number setting of the high speed counter module For details refer to the user s manual details of the used master module 4 5 Orientation of Module Installation The following shows the possible orientation for high speed counter module installation Panel When installing alongside the panel When installing on the panel Downloaded from ManualsNet com search engine ...

Page 47: ...lowing diagram shows the wiring of the master module remote module and high speed counter module with dedicated cable for CC Link Sketch POINT The terminal resistors supplied with the master module must be connected to the modules at both ends of data link Connect them across DA DB Downloaded from ManualsNet com search engine ...

Page 48: ...re of wiring inside the panel The distance between the encoder and joint box should be as short as possible If the distance from the high speed counter module to the encoder is too long an excessive voltage drop will occur Therefore measure voltages with a tester or the like during operation and stop of the encoder and check that the voltages are within the rated voltage of the encoder If the volt...

Page 49: ...ing the AJ65BT D62 and encoder separate the power supply and signal lines as shown below Incorrect Wiring Example Since the same twisted wire is used for both the encoder signal and power supply the canceling effect will reduce and electro magnetic induction may occur REMARK Set the pulse input voltage setting pins in the position Downloaded from ManualsNet com search engine ...

Page 50: ...4 INSTALLATION AND PRE OPERATION SETTING PROCEDURE 4 12 2 Pulse generator is voltage output type 5VDC REMARK Set the pulse input voltage setting pins in the position Downloaded from ManualsNet com search engine ...

Page 51: ...MELSEC A 4 INSTALLATION AND PRE OPERATION SETTING PROCEDURE 4 13 3 Pulse generator is line driver equivalent to AM26LS31 Downloaded from ManualsNet com search engine ...

Page 52: ...input voltage setting pins correctly after confirming the rated voltage of the external power supply Miss wiring wrong setting can cause a fire or failure The pulse external input voltage setting pins must be set after switching power off externally in all phases Otherwise the module can fail or misoperate Set the jumper to the pulse external input voltage setting pins in the correct inserting ori...

Page 53: ...required to activate the internal photocoupler Connection methods are as follows 1 AJ65BT D62 AJ65BT D62D 2 AJ65BT D62D S1 POINT Even when not using an EQU terminal wire the 12 24V terminal pin number 26 and the COM terminal pin number 27 to an external power supply If they are not wired SW0088 to SW008B fuse blown status of the master module would be on Downloaded from ManualsNet com search engin...

Page 54: ...ulse on leading and trailing edges of phase A Phase B or RY n 1 3 RY n 1 A is on 2 phase multiplied by one Up counting A B Counts a pulse on leading edge of phase A Count increases in response to phase differ ence between phases A and B Down counting A B Counts a pulse on trailing edge of phase A Count decreases in response to phase differ ence between phases A and B 2 phase multiplied by two Up c...

Page 55: ...lowing set value the initial value 1 phase multiplication by one is set Counting Mode Set Value 1 phase multiplication by one 00H 1 phase multiplication by two 01H 0 0 0 4 bits 8 bits 0 15 Counter function selection register Refer to Chapter 9 External output hold clear setting 0 Clear 1 Hold Refer to Appendix 1 Address RWwm 2 CH1 RWwm A CH2 Set in hexadecimal Pulse input mode register Sequence pr...

Page 56: ...e the initial value 1 phase multiplication by one is set Counting Mode Setting 2 phase multiplication by one 02H 2 phase multiplication by two 03H 2 phase multiplication by four 04H 0 0 0 4 bits 8 bits 0 15 Counter function selection register Refer to Chapter 9 External output hold clear setting 0 Clear 1 Hold Refer to Appendix 1 Address RWwm 2 CH1 RWwm A CH2 Set in hexadecimal Pulse input mode re...

Page 57: ...ll be stored aside from the present value storage buffer memory in the remote registers indicated below Description Latch Count Value Sampling Count Value Periodic Pulse Count Previous Value Periodic Pulse Count Present Value Remote register addresses CH1 RWrn 2 to 3 RWrn 4 to 5 CH2 RWrn A to B RWrn C to D 2 The present value 0 to 16777215 is stored in 24 bit binary in the present value storage ar...

Page 58: ...nce output point No 2 setting area L RWwm F H In the AJ65BT D62D S1 its external output coincidence output does not switch on off if the coincidence output No 2 is set However the counter value comparison coincidence greater less output signals X signals switch on off as ordinarily Example of using the coincidence output function In a machining line system machining operations are performed in res...

Page 59: ...ut point value the counter value less signal switches off and the counter value coincidence signal switches on 3 The coincidence signal reset command is switched on to reset the counter value coincidence signal If the counter value coincidence signal remains on the next coincident signal cannot be issued 4 When the counter value becomes greater than the set coincidence signal output point value th...

Page 60: ...d the count value are the same in the initial state If the following time is not satisfied for the execution of the point No 2 coincidence output reset command the point No 2 coincidence output reset command will not switch on off ON ON 1 Point No 2 coincidence output reset command RY n 2 1 RY n 2 3 1 10 link scans 2 sequence scans As the point No 2 coincidence output reset command is only valid o...

Page 61: ...ernal terminal Remote registers used Address Description RWwm 0 CH1 Preset value setting area L RWwm 1 H RWwm 8 CH2 Preset value setting area L RWwm 9 H Example of using the preset function By using the preset function the production count can be continued from the previous day 1 Production amount of the previous day is preset from the programmable controller CPU to the high speed counter module 2...

Page 62: ...sses RWrn 0 to 1 RWrn8 to 9 3 1 Write any value in advance in 24 bit binary to the preset value setting area addresses RWwm 0 to 1 RWwm 8 to 9 2 On the leading edge OFF ON of the preset command RY n 1 1 RY n 1 8 the value in the preset value setting area is preset to the present value storage area Preset can be executed independently of whether the count enable command RY n 1 1 RY n 1 8 is on or o...

Page 63: ...s on or off POINT For the preset function through external input reset external preset detection 5 in the figure above every time after the execution of the preset function is completed Doing so allows the next external input While the external preset command detection RXn3 RXn7 is on 4 in the figure above the next execution of the preset function through external input or a sequence program is no...

Page 64: ... for control such as fixed pitch feed When using the ring counter preset the ring counter setting switch of the high speed counter module to ON Also set the preset value and ring counter value to the remote registers Remote registers used Address Description RWwm 0 CH1 Preset value setting area L RWwm 1 H RWwm 3 CH1 Coincidence output point No 1 setting area L RWwm 4 H RWwm 8 CH2 Preset value sett...

Page 65: ...d cut it to the given length 1 Set the preset and ring counter values to execute the ring counter function 2 The motor is run to rotate the rollers 3 The motor is stopped as soon as the given length of the sheet is fed by the rollers 4 The sheet is cut 5 The operations in steps 2 to 4 are repeated Cutter Cutter M Encoder Motor Roller Sheet High speed counter module Pulse Downloaded from ManualsNet...

Page 66: ...n the leading edge OFF ON of the preset command RY n 1 1 RY n 1 8 the value in the preset value setting area is preset to the present value storage area Preset can be executed independently of whether the count enable command RY n 1 4 RY n 1 B is on or off 4 When the counter value reaches the ring counter value the counter value coincidence signal switches on to execute presetting When the present...

Page 67: ...5 2002 2001 2000 0 16777215 to to 2 If preset value ring counter value present value The following operation is performed if the ring counter function is executed at the preset value of 0 ring counter value of 2000 and present value of 3000 1 In up count the present value returns to the minimum value 0 when it is counted up to the maximum value 16777215 Then when the present value is counted up to...

Page 68: ...al 50 Latch count value storage area Addresses RWrn 2 to 3 RWrn A to B Current value storage area Addresses RWrn 0 to 1 RWrn 8 to 9 3 Sampling counter function Refer to Section 9 4 Counts pulses entered during a preset time T which begins with the input of the signal T T T 0 T T T ON OFF Siglnal Sampling count value storage area Addresses RWrn 2 to 3 RWrn A to B Current value storage area Addresse...

Page 69: ... input mode register Refer to Sections 5 1 5 2 Counter function selection register External output hold clear setting Refer to Appendix 1 Address RWwm 2 CH1 RWwm A CH2 Set in hexadecimal 2 A selected function can be executed using the counter function selection start command RY n 1 6 RY n 1 D or the F START terminal external input The signal input earlier is prioritized 3 Set the time for the samp...

Page 70: ...ount Value Periodic Pulse Count Previous Value Periodic Pulse Count Present Value Remote register CH1 RWrn 2 to 3 RWrn 4 to 5 CH2 RWrn A to B RWrn C to D 2 The counter function selection count value 0 to 16777215 is stored in 24 bit binary 3 In up count the counter function selection count value returns to 0 when it exceeds 1677715 In down count the counter function selection count value returns t...

Page 71: ... 1 ms pulse input speed PPS multiplication number count Minimum count delay 0 1 ms pulse input speed PPS multiplication number count 2 When a counter function selection is made by the sequence program the number of pulses counted during one sequence scan plus three link scans is added to the counting delay in above 1 3 The internal clock error is calculated as follows Set time pulse input speed PP...

Page 72: ...esent value storing remote registers Count operation stop Count operation stop 1 Count operation starts when the count enable command RY n 1 4 RY n 1 B switches on 2 Count operation stops when the counter function selection start command RY n 1 6 RY n 1 D F START terminal switches on Also the counter function detection RX n 1 1 RX n 1 3 switches on when the counter function selection start command...

Page 73: ...rt command RY n 1 6 RY n 1 D F START terminal 6 If the count enable command RY n 1 4 RY n 1 B is switched on count operation remains stopped since the counter function selection start command RY n 1 6 RY n 1 D F START terminal is on 7 Count operation resumes when the counter function selection start command RY n 1 6 RY n 1 D F START terminal switches off Downloaded from ManualsNet com search engin...

Page 74: ...resses RWrn 2 to 3 RWrn A to B 150 100 50 0 Current value storage area Addresses RWrn 0 to 1 RWrn 8 to 9 On the leading edges 1 to 4 of the counter function selection start command RY n 1 6 RY n 1 D F START terminal the counter s present value is stored into the latch count value storage area addresses RWrn2 to 3 RWrnA to B The latch counter function is executed regardless of the ON OFF status of ...

Page 75: ...s 1 On the leading edge of the counter function selection start command RY n 1 6 RY n 1 D F START terminal pulses input are counted from 0 Also the counter detection function signal RX n 1 1 RX n 1 3 switches on when the counter function selection start command RY n 1 6 RY n 1 D switches on and the counter detection signal RX n 1 1 RX n 1 3 switches off when the counter function selection start co...

Page 76: ...address RWrn 6 K1 K2 K3 4 If the sampling counter function ends the value in the sampling count value storage area is held 5 When the counter value reaches 0 when values are counted down the high speed counter module continues to count down from the maximum positive value since negative values cannot be counted The counter value at the end of a sampling cycle is stored For details refer to Section...

Page 77: ... 2 0 1 6 200 100 0 T T T T T 0 0 200 20 100 50 100 20 200 0 1 2 2 3 3 4 4 5 5 7 300 200 100 0 Count enable command RY n 1 4 RY n 1 B OFF ON Counter function selection start command RY n 1 6 RY n 1 D OFF ON Counter function deteciton RX n 1 1 RX n 1 3 Sampling interval time setting area Address RWwm 5 RWwm D Periodic pulse count present value storage area Addresses RWrn 4 to 5 RWrn C to D Periodic ...

Page 78: ...ed into the previous value storage area 4 The counter s present value 100 is stored into the present value storage area The count value 20 stored until then is stored into the previous value storage area 5 The counter s present value 50 is stored into the present value remote register The count value 100 stored until then is stored into the previous value storage area 6 The periodic pulse counter ...

Page 79: ... 6 for the remote register and the AnSHCPU AnACPU AnUCPU programming manual Dedicated command for details of dedicated command 10 1 Programming Procedures Create the high speed counter module program with the procedures below Start Pulse input mode model selection register external output hold clear settings Count start of pulse Turn ON CH count enable Current value reading Various function settin...

Page 80: ...le POINT A device used in program examples in this chapter may not be used depending on your CPU module Refer to your CPU module user s manual for the range of device setting For example devices of X100 and Y100 or later cannot be used for A1SCPU Use devices of B or M Downloaded from ManualsNet com search engine ...

Page 81: ... control signal Set item Set description CH 1 pulse input mode function selection register external output hold clear settings RWw2 2 phase 2 multiplex CH 1 preset value set area RWw0 RWw1 100 d Program example of ring counter function Set item Set description CH 1 pulse input mode function selection register external output hold clear settings RWw2 2 phase 2 multiplex CH 1 sampling frequency time...

Page 82: ...multiplex sampling counter function CH 1 sampling frequency time set area RWw5 20000ms h Program example of frequency pulse counter function Set item Set description CH 1 pulse input mode function selection register external output hold clear settings RWw2 2 phase 2 multiplex frequency pulse counter function CH 1 sampling frequency time set area RWw5 5000ms Downloaded from ManualsNet com search en...

Page 83: ...ion cannot be used When the remote device station initialization step registration instruction SB000D is turned OFF after initialization processing the remote register value set in the initialization step registration is cleared Set the pulse input mode function selection register external output hold clear in the sequence program For program examples in this chapter the pulse input mode function ...

Page 84: ...MELSEC A 10 PROGRAMMING 10 6 10 3 1 Program example of coincidence output function Downloaded from ManualsNet com search engine ...

Page 85: ...MELSEC A 10 PROGRAMMING 10 7 10 3 2 Program example of preset with sequence program Downloaded from ManualsNet com search engine ...

Page 86: ...MELSEC A 10 PROGRAMMING 10 8 10 3 3 Program example of preset with external control signal Downloaded from ManualsNet com search engine ...

Page 87: ...MELSEC A 10 PROGRAMMING 10 9 10 3 4 Program example of ring counter function Downloaded from ManualsNet com search engine ...

Page 88: ...MELSEC A 10 PROGRAMMING 10 10 10 3 5 Program example of count disable function Downloaded from ManualsNet com search engine ...

Page 89: ...MELSEC A 10 PROGRAMMING 10 11 10 3 6 Program example of latch counter function Current value reading Downloaded from ManualsNet com search engine ...

Page 90: ...MELSEC A 10 PROGRAMMING 10 12 10 3 7 Program example of sampling counter function Downloaded from ManualsNet com search engine ...

Page 91: ...MELSEC A 10 PROGRAMMING 10 13 10 3 8 Program example of frequency pulse counter function Downloaded from ManualsNet com search engine ...

Page 92: ...xample when QnACPU is Used The network parameter and the automatic refresh parameter are set by the GX Developer 1 Parameter settings a Network parameter settings b Automatic refresh parameter settings Downloaded from ManualsNet com search engine ...

Page 93: ...MELSEC A 10 PROGRAMMING 10 15 10 4 1 When preset is made by sequence program Downloaded from ManualsNet com search engine ...

Page 94: ...MELSEC A 10 PROGRAMMING 10 16 10 4 2 Program example of preset with sequence program Downloaded from ManualsNet com search engine ...

Page 95: ...MELSEC A 10 PROGRAMMING 10 17 10 4 3 Program example of preset with external control signal Downloaded from ManualsNet com search engine ...

Page 96: ...MELSEC A 10 PROGRAMMING 10 18 10 4 4 Program example of ring counter function Downloaded from ManualsNet com search engine ...

Page 97: ...MELSEC A 10 PROGRAMMING 10 19 10 4 5 Program example of count disable function Downloaded from ManualsNet com search engine ...

Page 98: ...MELSEC A 10 PROGRAMMING 10 20 10 4 6 Program example of latch counter function Downloaded from ManualsNet com search engine ...

Page 99: ...MELSEC A 10 PROGRAMMING 10 21 10 4 7 Program example of sampling counter function Downloaded from ManualsNet com search engine ...

Page 100: ...MELSEC A 10 PROGRAMMING 10 22 10 4 8 Program example of frequency pulse counter function Downloaded from ManualsNet com search engine ...

Page 101: ...Synchronous mode is invalid No of modules connected 1 Station information of high speed counter module remote device station 4 stations occupied station number 1 Dedicated command RLPA Head I O number of master module Parameter storage head device Device that turns on 1 scan at completion Parameter status reading at abnormal completion RX head number is set X is set X400 is set 128 points is set R...

Page 102: ...MELSEC A 10 PROGRAMMING 10 24 Downloaded from ManualsNet com search engine ...

Page 103: ...coincidence signal reset command RY10 is ON CH 1 point No 1 coincidence signal reset command RY10 is OFF CH 1 coincidence output enable RY12 is OFF CH 1 count enable RY14 is OFF Coincidence signal reset Coincidence output reset Stop of counting Downloaded from ManualsNet com search engine ...

Page 104: ... device station 4 stations occupied station number 1 Dedicated command RLPA Head I O number of master module Parameter storage head device Device that turns on 1 scan at completion Parameter status reading at abnormal completion RX head number is set X is set X400 is set 128 points is set RY head number is set Y is set Y400 is set 128 points is set RW head number is set D is set D200 is set 263 po...

Page 105: ...MELSEC A 10 PROGRAMMING 10 27 Downloaded from ManualsNet com search engine ...

Page 106: ...mote device station 4 stations occupied station number 1 Dedicated command RLPA Head I O number of master module Parameter storage head device Device that turns on 1 scan at completion Parameter status reading at abnormal completion RX head number is set X is set X400 is set 128 points is set RY head number is set Y is set Y400 is set 128 points is set RW head number is set D is set D200 is set 26...

Page 107: ...MELSEC A 10 PROGRAMMING 10 29 Downloaded from ManualsNet com search engine ...

Page 108: ...tations occupied station number 1 Dedicated command RLPA Head I O number of master module Parameter storage head device Device that turns on 1 scan at completion Parameter status reading at abnormal completion RX head number is set X is set X400 is set 128 points is set RY head number is set Y is set Y400 is set 128 points is set RW head number is set D is set D200 is set 263 points is set SB head...

Page 109: ...MELSEC A 10 PROGRAMMING 10 31 Downloaded from ManualsNet com search engine ...

Page 110: ...vice station 4 stations occupied station number 1 Dedicated command RLPA Head I O number of master module Parameter storage head device Device that turns on 1 scan at completion Parameter status reading at abnormal completion RX head number is set X is set X400 is set 128 points is set RY head number is set Y is set Y400 is set 128 points is set RW head number is set D is set D200 is set 263 point...

Page 111: ...ta link is abnormal CH 1 pulse input mode function selection register hold clear settings RWw2 Initial data processing completion flag RY78 is ON Initial data processing completion flag RY78 is OFF CH 1 count enable RY14 is ON CH 1 counter function selection start command RY16 is ON CH 1 current value RWr0 RWr1 is read CH 1 counter function selection start command RY16 is OFF CH 1 count enable RY1...

Page 112: ...vice station 4 stations occupied station number 1 Dedicated command RLPA Head I O number of master module Parameter storage head device Device that turns on 1 scan at completion Parameter status reading at abnormal completion RX head number is set X is set X400 is set 128 points is set RY head number is set Y is set Y400 is set 128 points is set RW head number is set D is set D200 is set 263 point...

Page 113: ...MELSEC A 10 PROGRAMMING 10 35 Downloaded from ManualsNet com search engine ...

Page 114: ...device station 4 stations occupied station number 1 Dedicated command RLPA Head I O number of master module Parameter storage head device Device that turns on 1 scan at completion Parameter status reading at abnormal completion RX head number is set X is set X400 is set 128 points is set RY head number is set Y is set Y400 is set 128 points is set RW head number is set D is set D200 is set 263 poi...

Page 115: ...MELSEC A 10 PROGRAMMING 10 37 Downloaded from ManualsNet com search engine ...

Page 116: ...te device station 4 stations occupied station number 1 Dedicated command RLPA Head I O number of master module Parameter storage head device Device that turns on 1 scan at completion Parameter status reading at abnormal completion RX head number is set X is set X400 is set 128 points is set RY head number is set Y is set Y400 is set 128 points is set RW head number is set D is set D200 is set 263 ...

Page 117: ...MELSEC A 10 PROGRAMMING 10 39 Downloaded from ManualsNet com search engine ...

Page 118: ...G 10 40 10 6 Program Example when ACPU QCPU A Mode is Used From To Command Network parameters are set by the sequence program 10 6 1 Program example of coincidence output function Downloaded from ManualsNet com search engine ...

Page 119: ...t stop Stop of counting Remote output signal write CH 1 count enable RY14 is ON CH 1 current value RWr0 RWr1 is read CH 1 coincidence output point No 1 is set RWw3 RWw4 100 Write to master station CH 1 coincidence output enable RY12 is ON CH 1 point No 1 coincidence signal reset command RY10 is ON CH 1 point No 1 coincidence signal reset command RY10 is OFF CH 1 coincidence output enable RY12 is O...

Page 120: ...MELSEC A 10 PROGRAMMING 10 42 10 6 2 Program example of preset with sequence program Downloaded from ManualsNet com search engine ...

Page 121: ...ion CH 1 preset command RY11 is ON RY00 to RY7F is written to Y400 to Y47F CH 1 preset command RY11 is OFF CH 1 count enable RY14 is OFF Preset command Preset value set Preset execution Pulse count stop Stop of counting Remote output signal write Downloaded from ManualsNet com search engine ...

Page 122: ...MELSEC A 10 PROGRAMMING 10 44 10 6 3 Program example of preset with external control signal Downloaded from ManualsNet com search engine ...

Page 123: ... preset detection reset command RY20 is ON RY00 to RY7F is written to Y400 to Y47F CH 1 count enable RY14 is OFF CH 1 external preset detection reset command RY20 is OFF Preset command Preset value set Pulse count stop Stop of counting Remote output signal write Downloaded from ManualsNet com search engine ...

Page 124: ...MELSEC A 10 PROGRAMMING 10 46 10 6 4 Program example of ring counter function Downloaded from ManualsNet com search engine ...

Page 125: ...idence output point No 1 set RWw3 RWw4 2000 CH 1 count enable RY14 is OFF CH 1 preset command RY11 is OFF Write to master station CH 1 point No 1 coincidence signal reset command RY10 is ON CH 1 point No 1 coincidence signal reset command RY10 is OFF RY00 to RY7F is written to Y400 to Y47F Downloaded from ManualsNet com search engine ...

Page 126: ...MELSEC A 10 PROGRAMMING 10 48 10 6 5 Program example of count disable function Downloaded from ManualsNet com search engine ...

Page 127: ... Stop of count disable Pulse count stop Stop of counting Remote output signal write CH 1 current value RWr0 RWr1 is read CH 1 counter function selection start command RY16 is ON CH 1 counter function selection start command RY16 is OFF CH 1 count enable RY14 is OFF RY00 to RY7F is written to Y400 to Y47F Downloaded from ManualsNet com search engine ...

Page 128: ...MELSEC A 10 PROGRAMMING 10 50 10 6 6 Program example of latch counter function Downloaded from ManualsNet com search engine ...

Page 129: ...nter Pulse count stop Stop of counting Remote output signal write CH 1 current value RWr0 RWr1 is read CH 1 latch count value RWr2 RWr3 is read CH 1 counter function selection start command RY16 is ON CH 1 counter function selection start command RY16 is OFF CH 1 count enable RY14 is OFF RY00 to RY7F is written to Y400 to Y47F Downloaded from ManualsNet com search engine ...

Page 130: ...MELSEC A 10 PROGRAMMING 10 52 10 6 7 Program example of sampling counter function Downloaded from ManualsNet com search engine ...

Page 131: ... count stop Stop of counting Remote output signal write CH 1 sampling time set RWw5 20000 ms Write to master station CH 1 sampling count value RWr2 RWr3 is read CH 1 counter function selection start command RY16 is ON CH 1 counter function selection start command RY16 is OFF CH 1 count enable RY14 is OFF RY00 to RY7F is written to Y400 to Y47F Downloaded from ManualsNet com search engine ...

Page 132: ...MELSEC A 10 PROGRAMMING 10 54 10 6 8 Program example of frequency pulse counter function Downloaded from ManualsNet com search engine ...

Page 133: ...mote output signal write CH 1 frequency time set RWw5 5000 ms Write to master station CH 1 frequency pulse count previous value RWr2 RWr3 is read CH 1 frequency pulse count current value RWr4 RWr5 is read CH 1 counter function selection start command RY16 is ON CH 1 count enable RY14 is OFF RY00 to RY7F is written to Y400 to Y47F Downloaded from ManualsNet com search engine ...

Page 134: ...ount value was entered If the count values are different the hardware is faulty Please consult your local Mitsubishi representative Does the input pulse waveform match the performance specifications Monitor and confirm the pulse waveform using a synchroscope If the waveform does not match the specifications enter pulses of a correct waveform 11 2 Count Operation Is Not Performed The following tabl...

Page 135: ...mission cables and repair it Master station stopped link Check for an error at master station 24V power is not supplied to the high speed counter module or voltage is insufficient Check the 24V power voltage Station number was repeated Switch power on again 1 after correcting the station number setting of the module of which station number was repeated Switch setting is outside the permissible ran...

Page 136: ...switch 11 4 When SW0088 to SW008B fuse blown status of master station is turned ON If the fuse of the high speed counter module is blown it can be confirmed by monitoring the link special registers for other station fuse blown status in the master station Cause Corrective Action External power supply is not wired Wire an external power supply to the high speed counter module When using the externa...

Page 137: ...on number switch setting correct Correct station number switch setting Switch power on again or turn on reset switch Corresponding module faulty Check the module corresponding to the bit switched on Power on POWER LED lit RD LED lit Switch power on Is supply voltage within specified range Communication cable wired correctly 1 Corresponding module faulty Corresponding module faulty Set supply volta...

Page 138: ...wer on again or turn on reset switch From preceding page From preceding page From preceding page Corresponding module faulty Station number switches Correct station number setting Y N Corresponding module faulty Station number switches Station number switch setting correct not repeated Switch power on again or turn on reset switch Switch power on again or turn on reset switch Complete 1 Check for ...

Page 139: ...T error status 0 normal 1 WDT error occurrence 2 For the remote device station you can select whether the external output coincidence status is held or cleared when a communication error programmable controller CPU stop or master station reset is detected using the external output hold clear setting area of the remote register most significant bit of address RWwn 2 As the external output hold clea...

Page 140: ...d counter module When using the external output EQU1 to EQU2 terminals wire an 10 2VDC to 30VDC external power supply as it is needed Even when not using external output terminals EQU1 to EQU2 wire the 12 24V terminal pin number 26 and the COM terminal pin number 27 to an external power supply Refer to Section 4 6 5 Fuse is blown The coincidence output function signal is not output Fuse for extern...

Page 141: ... 2 56 RESET 2 4 5 holes NP 63 2 48 B RATE STATION NO 10 1 5 0 6 9 2 7 8 1 3 4 5 0 6 2 1 3 4 0 2 1 3 4 RING CH 1 2 PLS CH 1 2 LOW HIGH A DEC PRE F ST EQU1 EQU2 DEC PRE F ST EQU1 EQU2 CH 1 CH 2 ON PW RUN L RUN SD RD L ERR MITSUBISHI MELSEC AJ65BT D62 5 V φB φA PRE φB φA PRE F ST F ST CH 1 CH 2 24V 12V 5V 24V 12V 5V 24V 12V 5V 24V 12V 5V 0 37 B A B Unit mm inch Downloaded from ManualsNet com search e...

Page 142: ...Appendix 4 MELSEC A APPENDICES MEMO Downloaded from ManualsNet com search engine ...

Page 143: ...tions 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 volta...

Page 144: ... in the United States Japan and other countries Intel Pentium and Celeron are trademarks of Intel Corporation in the United States and other countries Ethernet is a registered trademark of Xerox Corp All other company names and product names used in this manual are either trademarks or registered trademarks of their respective companies IB NA 66823 H Downloaded from ManualsNet com search engine ...

Page 145: ...Downloaded from ManualsNet com search engine ...

Page 146: ...rted from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN Downloaded from ManualsNet com search engine ...

Reviews: