Home
FX2N-1HC SPECIAL FUNCTION BLOCK USER'S GUIDE
Contents
1. eee Aaa 33k FX2N 1HC PhaseA out Shielding Wire Ale OR source A5 ONR X YH sink B244 zawa teat Phase B OUT a T B 17 to 2AN inputtable Phase Z 5 jenase OUT wes TORR YS a comp Oak 7 a oon at 4 yy 2 to 24V Fee inputtaabl y24v H com x574 DERAS COMD EA e 0o 1 A is an external load connected with the out put 2 Connect the grounded terminal at the PLC side as required 24V ov 2 Extension ov 24V cable I A Class 3 PLO External power source grounding z i Power supply for out put DC5V 12V 24V lt 1009 load drive DC5 to 24V If using on NPN output encoder please take care to match the polarity of the terminals of the encoder to those of the FX2N 1HC Differential Line Driver output encoders Line driver output encoders FXen 1HC When applying the Differential Line Driver encoder cA Shielding Wire rere AM26C31 or equivalent to FX2N 1HC connect the LAR MOQOOOY A encoder output with the 5V DC terminal as shown in i i the left figure a POCA oe Connect other terminals as shown in the PNP output ig encoder figure
2. Counting specification Comparison Type Each output is set when the present value of the counter matches with the compare value which is transferred from the PLC and is switched OFF by a reset command from the PLC YH Direct output processed by hardware YS Software processed output with worst delay time of 300us Therefore when the input frequency is 50 kHz there is a worst case delay of 15 input pulses Output signal Types of outputs YH transistor output for YH output i YH transistor output for YH output YS transistor output for YS output YS transistor output for YS output Output capacity 5V to 24V DC 0 5A I O occupation 8 points taken from the FX2N expansion bus can be either inputs or outputs Power from ba se 5V DC 90mA Internal power supply from main unit or powered extension unit 3 3 Buffer memories BFM BFM number Contents 0 Counter mode KO to K11 Default KO 1 DOWN UP command 1 phase 1 input mode Default KO 3 2 Ring length Upper Lower Default K65 536 Write 4 Command Default KO 11 10 Preset data Upper Lower Default KO 13 12 YH compare value Upper Lower Default K32 767 15 14 YS compare value Upper Lower Default K32 767 21 20 Counter current value Upper Lower Default KO Write Read 23 22 Maximum count value Upper Lower Default KO 25 24 Min
3. Phase A input Phase B input 2 BFM 3 2 Ring length Stores the data that specifies the length of the p aR 16 bit counter default K65 536 98 99 0 1 002 ae E to k k2 Koo KI DOWN A a8 a In the above example K100 is written into BFMs 3 and 2 of special block No 2 as a 32 bit binary value BFM 3 0 BFM 2 100 Permitted values K2 to K65 536 When ring length K100 is specified the value of the counter changes as shown above Note Write counter data with D TO Count data is always handled as a pair from two 16 bit values in this special function block 16 bit 2 s complement value stored in the registers of the PLC cannot be used When you are writing a positive value between K32 768 and K65 535 the data should be treated as a 32 bit value even when a 16 bit ring counter is used When transferring counter data to from this special function block always use the 32 bit forms of the FROM TO instructions D FROM D TO 3 BFM 4 Command 1 When bO is set to ON and the DISABLE input BFM 4 When 0 OFF When 1 ON terminal to OFF the counter is permitted to bO Count prohibit Count permit start counting input pulses a 2 Unless b1 is set to ON YH hardware b1 YH output prohibit YH output permit compared output does not turn ON b2 YS output pr
4. It will turn ON only when a match occurs by the counting of b9 b10 b9 b10 input pulses e The YS comparison operation takes about 300us and if a match occurs the output goes ON e Output occurs when the current value becomes equal to the compare value but only if b1 and b2 of BFM 4 are ON Once an output is set it remains ON until it is reset by b9 or b10 of BFM 4 If b3 of BFM 4 is ON however one of the outputs is reset when the other is set 6 Counter current value BFM 21 20 The current value of the counter can be read by the PLC It will not be the correct value during high speed operations because of the communication delay The current value of the counter can be forcibly changed by writing a 32 bit value into the appropriate BFMs from the PLC 7 Maximum count value BFM 23 22 These store the maximum and minimum value reached by the counter If the power is turned off the stored data is cleared 8 Comparison status BFM 26 Coincidence output Coincidence output 10 BFM 29 Error status Error status in the FX2n 1HC can be checked by reading the contents of bO to b7 of BFM 29 to auxiliary relays of the PLC BFM 29 Error status bO Set when any of b1 to b7 is ON b1 Set when the value of the ring length is written incorrectly other than K2 to K65 536 b2 Set when the preset value is written incorrectly b3 Set when the compare value is wr
5. 50 kHz there is a worst case delay of 15 input pulses YH transistor output for YH output fee ng YH YH transistor output for YH output i T Output Bp YS transistor output for YS output i L i A signal YS transistor output for YS output NPN C Lad Output capacity 5V to 24V DC 0 5A I O occupation 8 points taken from the FX2N expansion bus can be either inputs or outputs Power from base 5V DC 90mA Internal power supply from main unit or powered extension unit a 32 bit counter modes A 32 bit binary counter which executes UP DOWN counting will change 2 147 483 647 Upper limit value from the lower limit value to the upper limit value or the upper limit value to the lower limit value when overflow occurs Both the upper and lower limit 0 values are fixed values the upper limit value is 2 147 483 647 and the lower limit value is 2 147 483 648 b 16 bit counter modes A 16 bit binary counter handles only positive values from 0 to 65 535 Changes to zero from the upper limit value or to the upper limit value from zero when overflow occurs the upper limit value is determined by BFMs 3 and 2 Lower limit value 2 147 483 648 i 0 Ring length BFM 3 2 c 1 phase 1 input counter K8 to K11 e Hardware UP DOWN K8 K9 Software UP DOWN K10 K11 K1 Phase A OFF ON BFM 1 KO ON UP DOWN i
6. S e YH Matched B BFM 4 b9 Count pulse A R BFM 4 DOWN UP b3 for YS output DISABLE Gane TO Comparision data Count start 16 32 bit BFM 15 14 BFM 4 b2 BFEM 4 1 phase BFM 4 bO ara achod LK b12 s e gt YS a BFM 4b10 R Z PRESET HHAH D Initiali zation Current value BFM 4 b4 F N ae on Sampling cycle TO Preset data D i Soom BFM 11 10 TO O 7 Compare results Direct initialization Ae 26 el elles seat e next sampling poin Maximum value TMn after an input count BFM 23 22 BFM 27 Model code Minimum value BFM 30 BFM 25 24 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 Guidelines for the safety of the user and protection of the FX2N 1HC special function block This manual has been written to be used by trained and competent personnel This is defined by the European directives for machinery low voltage and EMC If in doubt at any stage during the installation of the FX2N 1HC always consult a professional electrical engineer who is qualified and trained to the local and national standards If in doubt about the operation or use of the FX2n 1HC please consult the nearest Mitsubishi Electric distributor Under no circ
7. Undefined There error flags can be reset by b8 of BFM 4 11 Model identification code number BFM 30 This BFM stores the identification number for FX2n 1HC The identification number for the FX2N 1HC unit is K4010 By reading this identification number the user may create built in checking routines to check whether the physical position of the FX2N 1HC matches to that of the software 4 EXAMPLE PROGRAM Please use the following program as a guide whenever you use the FX2N 1HC unit Other instructions to read the current value of the counter status etc can be added as required MBOOE iT 7 1 K11 is written into BFM 0 of special function block i TO K2 KO K1 K DEN g pecia tunelon DOG Initial b No 2 The counter input is 16 bit 1 phase Please use pulse a pulse command for this initialization z 5 2 K1234 BFM 3 2 special function block No 2 D 2 K2 K234 Ki The ring length can be specified when a 16 bit 7 counter is specified yaaa To KR K K ki 3 UP DOWN direction should be specified for 1 phase L 4 1 input software determined UP DOWN counter M8002 p 7 4 K1000 gt BFM 13 12 B TOP RRs N2 A100 K al Set the compare value for YH output i J 5 K900 gt BFM 15 14 B TOS es I 00 IE J Set the compare value for YS output not necessary if only YH output is used X010 Cmo gt Count allowed gt Note that counting only occurs if count prohibit is OFF Al
8. Various counter modes such as 1 phase or 2 phase 16 bit or 32 bit modes can be selected using commands from the PLC Allow the FX2N 1HC unit to run only after setting these mode parameters 1 1 External dimensions Mass weight Approx 0 3 kg 0 66 Ibs Dimensions mm inches Accessories Self adhesive labels special block number identification 55 2 17 55 2 17 4 0 16 SAS erza sv eva 90 3 54 rzaxpzay 99 FXan IHC 9 SA HA Sax Q Mounting hole 2 4 5 0 18 YH YS terminal M3 0 12 screws Extension cable and connector DISABLE terminal M3 0 12 screws UP LED DIS DISABLE LED DN Down LED 3 PRESET LED oALED YH LED BLED YS LED POWER LED DIN rail clip oA B terminal M3 0 12 screws Attachment groove for 35 1 38 wide DIN rail PRESET terminal M3 0 12 screws lt Using the solderless termination gt 6 2mm e Use crimp terminals of the dimensions specified in the left figure 0 24 ches E3 i i or less e Secure the terminals using a tightening torque of 0 5 to 0 8 Nem FOR M3 i 0 12 inches 5 to 8 kg cm 024 ones Woo e Wire only to the module terminals discussed in this manual or less Leave all others vacant 2 WIRING PNP output e ncoders PNP output encoders
9. above 3 SPECIFICATIONS 3 1 General specifications nals short circuited Perform the dielectric withstand voltage test between the GND terminal and all the other termi Item Specification General specifications excluding the following Same as those for the FX2N main unit Dielectric withstand voltage 500V AC 1min between all terminals and ground 3 2 Performance specifications Item 1 phase input 2 phase input 1 input 2 inputs 1 edge count 2 edge count 4 edge count Signal level Phase A Phase B A24 B24 24V DC 10 7mA or less A12 B12 12V DC 10 7mA or less A5 B5 3 0V to 5 5V DC 12 5mA or less PRESET DISABLE XP24 XD24 10 8V to 26 4V DC 15mA or less XP5 XD5 _ 5V DC 10 8mA or less Selected by terminal connection Input signal MAX frequency 50 kHz 25 kHz 12 5kHz Pulse shape t1 Rise fall time is 3us or less t2 ON OFF pulse 6us or more at 50kHz t3 Phase difference between A and B is 3 5us or more at 50kHz PRESET Z phase input 100us or more DISABLE count prohibit input 100us or more Format Automatic UP DOWN however when on 1 phase 1 input mode UP DOWN is determined by a PLC command or an input terminal Range When 32 bit is specified 2 147 483 648 to 2 147 483 647 When 16 bit is specified 0 to 65 535 upper limit can be user specified
10. in BFM 13 and 12 BFM 15 and 14 the hardware and Ki Gx software comparator in the FX2N 1HC outputs the comparison A result OCurrent value Current value e YH YS output will not turn ON if you use PRESET or the TO instruction to set the counter value equal to the comparison BFM 4 BFM 4 value It will turn ON only when a match occurs by the counting of b9 b10 b9 b10 input pulses 2 e The YS comparison operation takes about 300us and if a match OS een cence ouput occurs the output goes ON e Output occurs when the current value becomes equal to the compare value but only if b1 and b2 of BFM 4 are ON Once an output is set it remains ON until it is reset by b9 or b10 of BFM 4 If b3 of BFM 4 is ON however one of the outputs is reset when the other is set 6 Counter current value BFM 21 20 The current value of the counter can be read by the PLC It will not be the correct value during high speed operations because of the communication delay The current value of the counter can be forcibly changed by writing a 32 bit value into the appropriate BFMs from the PLC 7 Maximum count value BFM 23 22 These store the maximum and minimum value reached by the counter If the power is turned off the stored data is cleared 8 Comparison status BFM 26 BFM 26 When 0 OFF When ON BFM 26 When 0 OFF When 1 ON bo Set value lt current Set value gt current b3 Set value lt cur
11. the lower limit exceeded on a 32 bit counter b7 Set when the FROM TO command is used incorrectly b8 Set when the counter mode BFM 0 is written incorrectly When outside of KO to K11 b9 Set when the BFM number is written incorrectly When outside of KO to K31 b10 b15 Undefined There error flags can be reset by b8 of BFM 4 11 Model identification code number BFM 30 This BFM stores the identification number for FX2n 1HC The identification number for the FX2N 1HC unit is K4010 By reading this identification number the user may create built in checking routines to check whether the physical position of the FX2N 1HC matches to that of the software 4 EXAMPLE PROGRAM Please use the following program as a guide whenever you use the FX2N 1HC unit Other instructions to read the current value of the counter status etc can be added as required M8002 p S Pae i F I 1 K11 is written into BFM 0 of special function block 7 TO K2 KO Kii K1 p Initial amp ah No 2 The counter input is 16 bit 1 phase Please use pulse a pulse command for this initialization F 5 2 K1234 BFM 3 2 special function block No 2 B TO K2 K2 K1234 K1 The ring length can be specified when a 16 bit counter is specified UP DOWN direction should be specified for 1 phase 4 1 input software determined UP DOWN counter X014 gt 1H TO K2 K1 K1 K1 es M8002 i D K1000 gt BFM 13 12 Set the c
12. values K2 to K65 536 Note Write counter data with D TO e Count data is always handled as a pair from two 16 bit values in this special function block 16 bit 2 s complement value stored in the registers of the PLC cannot be used e When you are writing a positive value between K32 768 and K65 535 the data should be treated as a 32 bit value even when a 16 bit ring counter is used e When transferring counter data to from this special function block always use the 32 bit forms of the FROM TO instructions D FROM D TO 3 BFM 4 Command BFM 4 When 0 OFF When 17 ON bO Count prohibit Count permit b1 YH output prohibit YH output permit b2 YS output prohibit YS output permit b3 YH YS independent Mutual reset action action b4 Preset prohibit Preset permit b5 to b7 Undefined b8 No action Error flag reset b9 No action YH output reset b10 No action YS output reset b11 No action YH output set b12 No action YS output set 4 BFM 11 10 Preset data e Data to used as the initial value when the counter starts to count e Data becomes valid when b4 of BFM 4 is set to ON and PRESET input terminal changes from OFF to ON The default value of the counter is zero You can change it by writing a value into BFM 11 and 10 or by using the command below e The initial counter value can also be set by writing the data directly into BFM 21 and 20 curren
13. Changes for the Better a MITSUBISHI PROGRAMMABLE CONTROLLERS MELSEC F FX2n 1HC SPECIAL FUNCTION BLOCK USER S GUIDE JY992D65401D This manual contains text diagrams and explanations which will guide the reader in the correct installation and operation of the FX2N 1HC special function block and should be read and understood before attempting to install or use the unit Further information can be found in the FX PROGRAMMING MANUAL and FX2N SERIES HARDWARE MANUAL 1 INTRODUCTION The hardware high speed counter block is a 2 phase 50 kHz high speed counter It is a special function block for the FX2N FX2Nc FX3u series PLC e FROM TO instruction transfers the PLC data i e parameters comparing value and present value e The FX2n 1HC occupies 8 points of I O on the FXan FX2nc expansion bus The 8 points can be allo cated from either inputs or outputs e Differential Line Driver AM26C31 or equivalent and open collector output encoders are available for FX2n 1HC e The source of your input signal should be a 1 or 2 phase encoder A 5V 12V or 24V power source can be used An initial value setting command input PRESET and a count prohibit command input DIS ABLE are also available e The FX2n 1HC has two outputs When the counter value coincides with an output compare value the appropriate output is set ON The output transistors are individually isolated to allow either sink or source connection methods e
14. O Preset data s00ms BFM 11 10 TO O Compare results Direct initialization oa 26 1 Comparison is made at Model code BFM 30 Maximum value BFM 23 22 Minimum value BFM 25 24 the next sampling point after an input count Terminal status BFM 27 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 This manual has been written to be used by trained and competent personnel This is defined by the European directives for machinery low voltage and EMC If in doubt at any stage during the installation of the FX2N 1HC always consult a professional electrical engineer who is qualified and trained to the local and national standards If in doubt about the operation or use of the FX2n 1HC please consult the nearest Mitsubishi Electric distributor Under no circumstances will Mitsubishi Electric be liable or responsible for any consequential damage that may arise as a result of the installation or use of this equipment All examples and diagrams shown in this manual are intended only as an aid to understanding the text not to guarantee operation Mitsubishi Electric will accept no responsibility for actual use
15. Ring length Upper Lower Default K65 536 Write 4 Command Default KO 11 10 Preset data Upper Lower Default KO 13 12 YH compare value Upper Lower Default K32 767 15 14 YS compare value Upper Lower Default K32 767 21 20 Counter current value Upper Lower Default KO Write Read 23 22 Maximum count value Upper Lower Default KO 25 24 Minimum count value Upper Lower Default KO 26 Compare results Read 27 Terminal status 29 Error status 30 Model identification code K4010 5 9 16 19 28 31 are reserved 1 BFM 0 Counter mode KO to K11 BFM 1 DOWN UP command 2 phase input phase difference pulse 1 phase 2 input add subtract pulse 1 phase 1 input Count modes 32bits 16 bits The counter mode is selected form the 1 egga count Ko K PLC As shown below values between KO 2 edge count K2 K3 and K11 are written to buffer memory BFM 4 edge count K4 K5 0 form the PLC When a value is written to BFM 0 the contents of BFM 1 to BFM 31 K6 K7 are reset to default values When setting Hardware this value use a TOP pulsed instruction UP DOWN K8 K9 use M8002 initial pulse to drive the TO instruction Software Kio k1i1_ A continuous command is not allowed UP DOWN Item Specification General specifications exc
16. an IHC SA HA hno SA HA SdX Vo N gt Mounting hole 2 4 5 0 18 YH YS terminal M3 0 12 screws Extension cable and connector Q DISABLE terminal M3 0 12 screws UP LED DIS DISABLE LED DN Down LED E PRESET LED oA LED YH LED oB LED YS LED POWER LED DIN rail clip oA B terminal M3 0 12 screws Attachment groove for 35 1 38 wide DIN rail PRESET terminal M3 0 12 screws lt Using the solderless termination gt 6 2mm it e Use crimp terminals of the dimensions specified in the left figure 0 24 inches 3 or less e Secure the terminals using a tightening torque of 0 5 to 0 8 Nem FOR M3 i 0 12 inches 5 to 8 kg cm 024 ones we e Wire only to the module terminals discussed in this manual or less Leave all others vacant 2 WIRING PNP output encoders PNP output encoders Phase A OUT T Phase B OUT Phase Z OUT T 24V COM e 60O 24V oV 7 Class 3 External power source grounding DCS5V 12V 24V lt 1000 L 3 3k FX2N 1HC Shieldin
17. g Wire aoe 12 eure AS ORK sink 0K Y YH aoe B247 aonwts waa B12 7 B5 ea B A 1 to ad inputtable xer OSK YS a4 Omp ORAVE 5 nyt a n 12 to 24V e XD24 A inputtaable XD5 COMD ae 1 A is an external load connected with the out put 2 Connect the grounded terminal at the PLC side as required 0 Extension ov 24V cable SA 1 PLC i Power supply for out put Differential Line Driver output encoders Line driver output encoders Shielding Wire LA KANN NV ar VOQOOO9 pet it LB car OOOO badeend F FX2n 1HC A5 A B5 B load drive DC5 to 24V If using on NPN output encoder please take care to match the polarity of the terminals of the encoder to those of the FX2n 1HC When applying the Differential Line Driver encoder AM26C31 or equivalent to FX2N 1HC connect the encoder output with the 5V DC terminal as shown in the left figure Connect other terminals as shown in the PNP output encoder figure above 3 SPECIFICATIONS 3 1 General specifications nals short circuited Perform the dielectric withstand voltage test between the GND terminal and all the other termi 3 3 Buffer memories BFM BFM number Contents 0 Counter mode KO to K11 Default KO 1 DOWN UP command 1 phase 1 input mode Default KO 3 2
18. hanges to zero from the upper limit value or to the upper limit value from 0 zero when overflow occurs the upper limit value is determined by BFMs 3 Ring length and 2 BFM 3 2 2 147 483 647 Upper limit value c 1 phase 1 input counter K8 to K11 e Hardware UP DOWN K8 K9 e Software UP DOWN K10 K11 Phase A OFF ON BFM 1 KO K1 ON ON 7 UP DOWN is UP DOWN is PhaseB AAAA AAA determined by Phase B A 5 4 determined by OFF input phase A OF the contents of DOWN ON OFF BFM 1 KO K1 Current UP gt aN Current UP lt ROWN i l value oT TS vaue O AA d 1 phase 2 input counter K6 K7 Phase ON Phase A input 1 A input OFF uy at OFF ON If both phase A and phase B inputs are received Phase ON Fj j 1 j Y Phase B input 1 simultaneously the counter value does not change B input at OFF gt ON R OFF 12333210 e 2 phase counter KO to K5 e 1 edge count KO K1 e 2 edge count K2 K3 Phase A Phase A 1 1 1 1 1 1 Vy 4 Phase B Phase B Phase B input OFF Phase B input ON Phase B input OFF Phase B input ON gt ON while phase gt OFF while phase ON while phase OFF while phase A input ON Count A input ON Count A input ON Count A input ON Count up by 1 down by 1 up by 1 down by 1 e 4 edge count K4 K5 UP COUNT DOWN COUNT
19. imum count value Upper Lower Default KO 26 Compare results ea 27 Terminal status 29 Error status 30 Model identification code K4010 5 9 16 19 28 31 are reserved 1 BFM 0 Counter mode KO to K11 BFM 1 DOWN UP command Count modes 32bits 16 bits The counter mode is selected form the 1 ed t K K1 PJS Sun g PLC As shown below values between KO 2 edge count K2 K3 and K11 are written to buffer memory BFM K5 0 form the PLC When a value is written to BFM 0 the contents of BFM 1 to BFM 31 2 phase input phase difference pulse 4 edge count K4 1 phase 2 input add subtract pulse K6 K7 are reset to default values When setting Hardware this value use a TOP pulsed instruction UP DOWN K8 K9 use M8002 initial pulse to drive the TO 1 phase 1 input instruction Software A continuous command is not allowed uPpown KIO K1 a 32 bit counter modes A 32 bit binary counter which executes UP DOWN counting will change from the lower limit value to the upper limit value or the upper limit value to the lower limit value when overflow occurs Both the upper and lower limit 0 values are fixed values the upper limit value is 2 147 483 647 and the lower limit value is 2 147 483 648 Lower limit value b 16 bit counter modes 2 147 483 648 A 16 bit binary counter handles only positive values from 0 to 65 535 C
20. itten incorrectly HASH ae ring length i b4 Set when the current value is written in correctly b5 Set when the counter overflows the upper limit When the upper or lower limit is b6 Set when the counter overflows the lower limit exceeded on a 32 bit counter b7 Set when the FROM TO command is used incorrectly b8 Set when the counter mode BFM 0 is written incorrectly When outside of KO to K11 b9 Set when the BFM number is written incorrectly When outside of KO to K31 b10 b15 Undefined BFM 26 YH b1 When 0 OFF When T ON BFM 26 When 0 OFF When 1 ON bo Set value lt current Set value gt current b3 Set value lt current Set value gt current value value value value Set value current Set value current YS b4 Set value current Set value current value value value value b2 Set value gt current Set value lt current b5 Set value gt current Set value lt current value value value value BFM 26 is for reading only Write commands from the programmable controller are ignored 9 Terminal status BFM 27 BFM 26 When 0 OFF When 1 ON BFM 26 When 0 OFF When 1 ON bO PRESET input is OFF PRESET input is ON b2 YH output is OFF YH output is ON b1 DISABLE input is OFF DISABLE input is ON b3 YS output is OFF YS output is ON b4 b15
21. kHz high speed counter It is a special function block for the FX2N FX2Nc FX3u series PLC e FROM TO instruction transfers the PLC data i e parameters comparing value and present value e The FX2n 1HC occupies 8 points of I O on the FXan FX2nc expansion bus The 8 points can be allo cated from either inputs or outputs e Differential Line Driver AM26C31 or equivalent and open collector output encoders are available for FX2n 1HC e The source of your input signal should be a 1 or 2 phase encoder A 5V 12V or 24V power source can be used An initial value setting command input PRESET and a count prohibit command input DIS ABLE are also available e The FX2n 1HC has two outputs When the counter value coincides with an output compare value the appropriate output is set ON The output transistors are individually isolated to allow either sink or source connection methods e Various counter modes such as 1 phase or 2 phase 16 bit or 32 bit modes can be selected using commands from the PLC Allow the FX2N 1HC unit to run only after setting these mode parameters 1 1 External dimensions Mass weight Approx 0 3 kg 0 66 Ibs Dimensions mm inches Accessories Self adhesive labels special block number identification 55 2 17 55 2 17 4 0 16 SAS Z zia w fezi erza sv eva wog sax a 99 pzax vza 90 3 54 FX
22. luding the following Same as those for the FX2n main unit Dielectric withstand voltage 500V AC 1min between all terminals and ground 3 2 Performance specifications fon 1 phase input 2 phase input 1 input 2 inputs 1 edge count 2 edge count 4 edge count Phase A Phase B A24 B24 24V DC 10 7mA or less A12 B12 12V DC 10 7mA or less Signal level A5 B5 3 0V to 5 5V DC 12 5mA or less 9 PRESET DISABLE XP24 XD24 10 8V to 26 4V DC 15mA or less XP5 XD5 5V DC 10 8mA or less Selected by terminal connection Input signal MAX frequency 50 kHz 25 kHz 12 5kHz m m t1 Rise fall time is 3us or less t2 ON OFF pulse 6us or more at 50kHz 12 t2 t3 Phase difference between A and B is 3 5us or Pulse shape t3 more at 50kHz 3 PRESET Z phase input 100us or more DISABLE count prohibit input 100us or more Format Automatic UP DOWN however when on 1 phase 1 input mode UP DOWN is determined by a PLC command or an input terminal Range When 32 bit is specified 2 147 483 648 to 2 147 483 647 9 When 16 bit is specified 0 to 65 535 upper limit can be user specified Counting Each output is set when the present value of the counter matches with the specification compare value which is transferred from the PLC and is switched OFF by a Comparison reset command from the PLC aye YH Direct output processed by hardware YS Software processed output with worst delay time of 300us Therefore when the input frequency is
23. of the product based on these illustrative examples Owing to the very great variety in possible application of this equipment you must satisfy yourself as to its suitability for your specific application Guidelines for the safety of the user and protection of the FX2N 1HC special function block Manual number JY992D65401 Manual revision D Date AUGUST 2006 afa MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE HIMEJI WORKS 840 CHIYODA CHO HIMEJI JAPAN JY992D65401D TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN Effective AUG 2006 S pecifications are subject to change without notice
24. ohibit YS output permit 3 Unless b2 is set to ON YS software YHNS ind M i compared output does not turn ON pas EA S independent j Mutal reset 4 When b3 ON YS output is reset if YH output is set and YH output is reset if YS output is b4 Preset prohibit Preset permit set When b3 OFF YH and YS output act b5 to b7 Undefined independently and do not reset each other ee 5 When b4 OFF preset function by the b8 No action Error flag reset PRESET input terminal is disabled b9 No action YH output reset 6 When b8 is set to ON all error flags are reset N Y 7 When b9 is set to ON YH output is reset b19 action S Output reset 8 When b10 is set to ON YS output is reset b11 No action YH output set 9 When b11 is set to ON YH output is set ON b12 No action YS output set 10 When b12 is set to ON YS output is set ON 4 BFM 11 10 Preset data e Data to used as the initial value when the counter starts to count e Data becomes valid when b4 of BFM 4 is set to ON and PRESET input terminal changes from OFF to ON The default value of the counter is zero You can change it by writing a value into BFM 11 and 10 or by using the command below e The initial counter value can also be set by writing the data directly into BFM 21 and 20 current value of the counter 5 BFM 13 12 Comparison value for YH output BFM 15 14 Comparison value for YS output e After comparing the current value of the counter with the value o written
25. ompare value for YH output BJ To K2 K12 K1000 K1 7 5 K900 BFM 15 14 Set the compare value for YS output not necessary if only YH output is used To K2 K14 K900 K1 X010 a Como Count allowed M8000 r Cnt to Coa put allowed 6 Note that counting only occurs if count prohibit is Mutual reset OFF Also outputs will not be set from the counting x011 process at all if the relevant output prohibit are set in the command register Please reset the error flags Preset allowed Cm iaai gt and YH YS output before you start The mutual reset and preset initialization commands can be used as X012 gt BES Mig Error fla required 1H g reset X013 gt 1H PLS M19 and M20 YH YS output reset M8000 ft To K2 K4 K4M10 Ki 7 M25 to M10 gt BFM 4 b15 to b0 command RUN manor 8 BFM 21 20 gt Reads th t value to the dat k f Reads the current value to the data o FROM Keo R20 De K registers D3 and D2 5 DIAGNOSTICS 5 1 Preliminary checks 1 Check that the I O wiring and extension cable of the FX2n 1HC are properly connected 2 5V 90mA power is supplied from the main or extension units for the FX2N 1HC Check that there is no power overload from this and other extension blocks 3 The counter works correctly only when data such as the counter mode set with a pulse command the TO command the compare value etc are appropriately specified Remember to ini
26. rent Set value gt current value value value value Set value current Set value current Set value current Set value current YH b1 value value YS b4 value value b2 Set value gt current Set value lt current b5 Set value gt current Set value lt current value value value value BFM 26 is for reading only Write commands from the programmable controller are ignored 9 Terminal status BFM 27 BFM 26 When 0 OFF When T ON BFM 26 When 0 OFF When 1 ON bO PRESET input is OFF PRESET input is ON b2 YH output is OFF YH output is ON b1 DISABLE input is OFF DISABLE input is ON b3 YS output is OFF YS output is ON b4 b15 Undefined 10 BFM 29 Error status Error status in the FX2n 1HC can be checked by reading the contents of bO to b7 of BFM 29 to auxiliary relays of the PLC BFM 29 Error status bo Set when any of b1 to b7 is ON b1 Set when the value of the ring length is written incorrectly other than K2 to K65 536 b2 Set when the preset value is written incorrectly b3 Set when the compare value is written incorrectly Paen yaus ring length im b4 Set when the current value is written in correctly b5 Set when the counter overflows the upper limit When the upper or lower limit is b6 Set when the counter overflows
27. s ON Phase B 4 4 4 4 4 4 4 determined by Phase B 4 4 Ald A OFF input phase A OFF DOWN ON OFF Current value AT tH UP DOWN is determined by UP d 1 phase 2 input counter K6 K7 Phase ON A input OFF ESENS Phase ON B input Phase A input 1 at OFF ON Phase B input 1 at OFF gt gt ON OFF 12333210 e 2 phase counter KO to K5 e 1 edge count KO K1 Phase A DOWN Current Viz Pia vae oo A e 2 edge count K2 K3 the contents of BFM 1 KO K1 If both phase A and phase B inputs are received simultaneously the counter value does not change Phase B e 4edg 1 e Phase A 1 i Phase B D Phase B input OFF ON while phase A input ON Count up by 1 e count K4 K5 UP COUNT Phase Phase A input B input Phase B input ON gt OFF while phase A input ON Count down by 1 DOWN COUNT Phase B input OFF gt ON while phase A input ON Count up by 1 Phase B input ON gt OFF while phase A input ON Count down by 1 Phase A input F Phase B input 2 BFM 3 2 Ring length Stores the data that specifies the length of the 16 bit counter default K65 536 X 002 op To K2 K2 K100 Ki In the above example K100 is written into BFMs 3 and 2 of special block No 2 as a 32 bit binary value BFM 3 0 BFM 2 100 Permitted
28. so outputs will not be set from the counting process at all if the relevant output prohibit are set in M8000 io Output allowed 6 m Mutual reset X011 the command register Please reset the error flags Preset allowed Cua baal and YH YS output before you start The mutual reset and preset initialization commands can be used as X012 p AS wie Error fla required 1 g reset X013 gt 1H PLS M19 and M20 YH YS output reset M8000 _ ft To K2 K4 KAMIO Ki 7 M25 to M10 gt BFM 4 b15 to b0 command RUN iia 8 BFM 21 20 gt Reads th t value to the dat F i Reads the current value to the data o FROM K2 K20 De Ki registers D3 and D2 5 DIAGNOSTICS 5 1 Preliminary checks 1 Check that the I O wiring and extension cable of the FX2n 1HC are properly connected 2 5V 90mA power is supplied from the main or extension units for the FX2N 1HC Check that there is no power overload from this and other extension blocks 3 The counter works correctly only when data such as the counter mode set with a pulse command the TO command the compare value etc are appropriately specified Remember to initialize the count BFM 4 b0 preset BFM 4 b4 and output BFM 4 b2 b1 prohibits Reset the YH YS outputs before you start 5 2 Error checking The following LEDs on the main panel of the FX2N 1HC may help you to troubleshoot the unit e pA 6B Goes on off as oA B input turn ON OFF I
29. t value of the counter 5 BFM 13 12 Comparison value for YH output BFM 15 14 Comparison value for YS output e After comparing the current value of the counter with the value 1 a OC OND 0 uP 98 9 0 A 9 1 DOWN JE 1 0 99 98 When ring length K100 is specified the value of the counter changes as shown above When b0 is set to ON and the DISABLE input terminal to OFF the counter is permitted to start counting input pulses Unless b1 is set to ON YH hardware compared output does not turn ON Unless b2 is set to ON YS software compared output does not turn ON When b3 ON YS output is reset if YH output is set and YH output is reset if YS output is set When b3 OFF YH and YS output act independently and do not reset each other When b4 OFF preset function by the PRESET input terminal is disabled When b8 is set to ON all error flags are reset When b9 is set to ON YH output is reset When b10 is set to ON YS output is reset When b11 is set to ON YH output is set ON When b12 is set to ON YS output is set ON o Q written in BFM 13 and 12 BFM 15 and 14 the hardware and K Gx software comparator in the FX2N 1HC outputs the comparison amp Xo result O Current value e Current value e YH YS output will not turn ON if you use PRESET or the TO instruction to set the counter value equal to the comparison BFM 4 BFM 4 value
30. t can be checked by rotating the encoder slowly e UP DN Lights up to indicate whether the counter is going up UP or down DN e PRESET and DIS The appropriate LED lights up when the PRESET terminal or the DISABLE terminal is ON e YH YS The appropriate LED lights up when YH YS output is turned on You can check the error status by reading the content of BFM 29 to the PLC Error contents are shown in section 3 3 10 Note that inputting the pulse higher than the maximum frequency may cause mis counting to 1HC or a FROM TO error to the PLC main unit 6 SYSTEM BLOCK DIAGRAM To Counter mode BFM 0 16 bit Error status Reset O gt Ring upper limit value as ier BFM 29 BFM 4 b8 BFM 3 2 DOWN UP command for YH output BFM 1 TO Comparisor data T phase BFM 13 12 BFM 4 b1 1 input BFM 4 counter Matched b11 S e gt YH B Coun auk a BFM 4 b9 A ount pulse R BFM 4 DOWN UP b3 for YS output DISABLE TO isi Counter os Comparision data ount sta 16 32 bit BFM 15 14 BFM 4 b2 FM 4 1 phase BFM 4 bo ees Matched H N b12 s e Ys pe R X BFM 4 b10 Z PRESET AH L Initiali D zation Current value BFM 4 b4 A N hele oe Sampling cycle T
31. tialize the count BFM 4 b0 preset BFM 4 b4 and output BFM 4 b2 b1 prohibits Reset the YH YS outputs before you start 5 2 Error checking The following LEDs on the main panel of the FX2N 1HC may help you to troubleshoot the unit e pA 6B Goes on off as A oB input turn ON OFF It can be checked by rotating the encoder slowly e UP DN Lights up to indicate whether the counter is going up UP or down DN e PRESET and DIS The appropriate LED lights up when the PRESET terminal or the DISABLE terminal is ON e YH YS The appropriate LED lights up when YH YS output is turned on You can check the error status by reading the content of BFM 29 to the PLC Error contents are shown in section 3 3 10 Note that inputting the pulse higher than the maximum frequency may cause mis counting to 1HC or a FROM TO error to the PLC main unit 6 SYSTEM BLOCK DIAGRAM To Counter mode BFM 0 T6bi Error status Reset Os Ring upper limit value 6 bit BFM 29 BFM 4 b8 BFM 3 2 counter DOWN UP command for YH output BFM 1 TO Comparisor data T phase BFM 13 12 BFM 4 b1 1 input BFM 4 J sine Ly b11
32. umstances will Mitsubishi Electric be liable or responsible for any consequential damage that may arise as a result of the installation or use of this equipment All examples and diagrams shown in this manual are intended only as an aid to understanding the text not to guarantee operation Mitsubishi Electric will accept no responsibility for actual use of the product based on these illustrative examples Owing to the very great variety in possible application of this equipment you must satisfy yourself as to its suitability for your specific application Manual number JY992D65401 Manual revision D AUGUST 2006 Date sfa MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN HIMEJI WORKS 840 CHIYODA CHO HIMEuI JAPAN Effective AUG 2006 JY992D65401D Specifications are subject to change without notice Changes for the Better a MITSUBISHI PROGRAMMABLE CONTROLLERS MELSEC F FX2n 1HC SPECIAL FUNCTION BLOCK USER S GUIDE JY992D65401D This manual contains text diagrams and explanations which will guide the reader in the correct installation and operation of the FX2N 1HC special function block and should be read and understood before attempting to install or use the unit Further information can be found in the FX PROGRAMMING MANUAL and FX2N SERIES HARDWARE MANUAL 1 INTRODUCTION The hardware high speed counter block is a 2 phase 50
Download Pdf Manuals
Related Search
Related Contents
保管用 Leadingーhnavati。n))) 東芝電球形蛍光灯器具取扱説明書 An Example of using Keil uVision3 for creating Keil ARM`s CR-R885-SB : Manuel d`installation et d`utilisation V1.1 toaster tx-230ece User Manual Sartorius F-104 G Starfighter EZS 330/350 / XL 取扱説明書 Copyright © All rights reserved.
Failed to retrieve file