{"id":3415,"date":"2026-11-17T21:34:26","date_gmt":"2026-11-17T13:34:26","guid":{"rendered":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/fbs-hw-en-010\/"},"modified":"2026-11-17T21:34:26","modified_gmt":"2026-11-17T13:34:26","slug":"fbs-hw-en-010","status":"publish","type":"post","link":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/fbs-hw-en-010\/","title":{"rendered":"Chapter 10 FBs-PLC High-Speed Counter and Timer"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-001.png\" \/><\/p>\n<p>10.1FBs-PLC High-Speed Counter <\/p>\n<p>The counting frequency of an ordinary PLC\u2019s software counter can only reach tens of Hz (depending on the scan time). If the frequency of input signal is higher than that, it is necessary to utilize high-speed counter (HSC), otherwise loss count or even out of counting may occur. There are usually two types of HSC implemented for PLC. The hardware high-speed counter (HHSC) employed special hardware circuit and the software high-speed counter (SHSC) which when counting signal changes state will interrupt CPU to perform the increment\/decrement counting operation. FBs-PLC provides up to 4 HHSCs (in SoC chips) and 4 SHSCs. All of them are all 32-bit high speed counter. <\/p>\n<h4>10.1.1Counting Modes of FBs-PLC High-Speed Counter<\/h4>\n<p>\tAs shown in the table below, each of the four FBs-PLC HHSCs and SHSCs provides 8 and 3, respectively, kind of counting modes to choose from: <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Counting Mode <\/p>\n<\/td>\n<td>\n<p>HHSC <\/p>\n<\/td>\n<td>\n<p>SHSC <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>U<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Counting Waveform <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSC0\uff5eHSC3) <\/p>\n<\/td>\n<td>\n<p>(HSC4\uff5eHSC7)<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>Up Counting\uff08+1\uff09<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>Down Counting\uff08\u22121\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>Up-down pulse <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>MD 0 U\/D <\/p>\n<p>MD 1 U\/D\u00d72 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>U<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>Pulse-direction <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>MD 2 P\/R <\/p>\n<p>MD 3 P\/R\u00d72 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>D<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>P<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>P<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>R<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>MD 4 A\/B <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>A<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>B<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>AB phase <\/p>\n<\/td>\n<td>\n<p>MD 5 A\/B\u00d72 <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>A<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>MD 6 A\/B\u00d73 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>B<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>A<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>B<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>MD 7 A\/B\u00d74 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>A<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>B<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u2022 The up\/down arrow (\u2191,\u2193) on the positive\/negative edge in the waveform represents where counting (+1 or \u20131) occurs. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-002.png\" \/><\/p>\n<h3>10.2 System Architecture of FBs-PLC High-Speed Counter<\/h3>\n<p>The diagrams below are the system architecture for FBs-PLC HHSC and SHSC where each one of them has multi-purpose input and counting functions. Some of the functions are built-in (such as CV register number, PV register number, interrupt label and relay number for software MASK, CLEAR and direction selection) that user need not to assign for configuration. However, some functions, with a \u201c*\u201d marked in the diagrams below, must use the programming tool to configure the HSC (such as HSC application selection, counting mode, application of each function input, inverse polarity and appointment of corresponding input point number Xn) etc. For detailed structure and operation of the 8 kind of counting modes that assigned in configuration, please refer to section 10.2.1~10.2.3 for explanation. <\/p>\n<p>Note: CV (Current Value); PV (Preset Value). <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>z Use FUN92 to read out current counting value<\/p>\n<\/td>\n<td>\n<p>CV Register <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>(HSC0)<\/p>\n<\/td>\n<td>\n<p>PV Register<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>z Use FUN93 to write <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(CPU Intermal Memory)<\/p>\n<\/td>\n<td>\n<p>(CPU Internal Memory)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>DR4096<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>DR4098<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>from SoC chip hardware counter to put it into<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>DR4100<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>(HSC1)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>DR4102<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>PV register of <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\">\n<p>CPU internal CV register. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>DR4104<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>DR4106<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>hardware counter of <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>(HSC2)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>DR4108<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>DR4110<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>SoC chip. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSC3)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>z Use FUN93 to write CV register content to SoC<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>chip. Resets and updates the CV of hardware<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>FUN92<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>FUN93<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>FUN93<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>counter in SoC chip. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSCTR)<\/p>\n<\/td>\n<td>\n<p>(HSCTW)<\/p>\n<\/td>\n<td>\n<p>(HSCTW)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>(SoC Chip)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>Counting <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>(X0,X4,X8,X12)*<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>U,P,A<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>*<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>*<\/p>\n<\/td>\n<td>\n<p>x1<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>CV<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>x2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>(X1,X5,X9,X13)*<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>D,R,B<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>*<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>*<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>x3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>input<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>x4<\/p>\n<\/td>\n<td>\n<p>Register<\/p>\n<\/td>\n<td>\n<p>Register<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Software direction selection<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>(HSC0)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1942<\/p>\n<\/td>\n<td>\n<p>0:UP<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>*<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>M<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>C<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>1:DN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>(HSC1)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1948<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(MD2,3 ONLY)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>(HSC2)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1978<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>(HSC3)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1981<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Controlling<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>(X2,X6,X10,X14)*<\/p>\n<\/td>\n<td>\n<p>M<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Mask control<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>input<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>(X3,X7,X11,X15)*<\/p>\n<\/td>\n<td>\n<p>C<\/p>\n<\/td>\n<td>\n<p>*<\/p>\n<\/td>\n<td>\n<p>PV=CV<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Clear control<\/p>\n<p>EN(FUN145)\/ <br \/>DIS(FUN146)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>(HSC0)<\/p>\n<\/td>\n<td>\n<p>Software<\/p>\n<\/td>\n<td>\n<p>Software<\/p>\n<\/td>\n<td>\n<p>TO CPU<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Interrupt Mask<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Mask<\/p>\n<\/td>\n<td>\n<p>Clear<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Interruput<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>M1940<\/p>\n<\/td>\n<td>\n<p>M1941<\/p>\n<\/td>\n<td>\n<p>(HSC0)<\/p>\n<\/td>\n<td>\n<p>HSC0I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSC1)<\/p>\n<\/td>\n<td>\n<p>M1946<\/p>\n<\/td>\n<td>\n<p>M1947<\/p>\n<\/td>\n<td rowspan=\"4\"><\/td>\n<td>\n<p>(HSC1)<\/p>\n<\/td>\n<td>\n<p>HSC1I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSC2)<\/p>\n<\/td>\n<td>\n<p>M1976<\/p>\n<\/td>\n<td>\n<p>M1977<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>(HSC2)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC2I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>(HSC3)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1979<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1980<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSC3)<\/p>\n<\/td>\n<td>\n<p>HSC3I<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>System Architecture of HHSC\uff08HSC0\uff5eHSC3\uff09<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-003.png\" \/><\/p>\n<p>(CPUInternal Memory)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>Counting<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>(X0~X15)*<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>(U,P,A)*<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>*<\/p>\n<\/td>\n<td>\n<p>CV Register<\/p>\n<\/td>\n<td>\n<p>PV Register<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>(HSC4)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR4112(HSC4)<\/p>\n<\/td>\n<td>\n<p>DR4114(HSC4)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>or<\/p>\n<\/td>\n<td>\n<p>or<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\">\n<p>input<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>(X0~X15)*<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>(D,R,B)*<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>*<\/p>\n<\/td>\n<td>\n<p>DR4116(HSC5)<\/p>\n<\/td>\n<td>\n<p>DR4118(HSC5)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>or<\/p>\n<\/td>\n<td>\n<p>or<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-004.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR4120(HSC6)<\/p>\n<\/td>\n<td>\n<p>DR4122(HSC6)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>or<\/p>\n<\/td>\n<td>\n<p>or<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>(HSC7)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR4124(HSC7)<\/p>\n<\/td>\n<td>\n<p>DR4126(HSC7)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Software direction selection<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>(HSC4)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1983<\/p>\n<\/td>\n<td>\n<p>0:UP<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>*<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>M<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>C<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>PV=CV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>1:DN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>(HSC5)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1985<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>(MD2 ONLY)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSC6)<\/p>\n<\/td>\n<td>\n<p>M1987<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>(HSC7)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1989<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>M<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(X0~X15)*<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Controlling<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>(X0~X15)*<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Mask control<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>*<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>input<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>C<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Clear control<\/p>\n<p>EN(FUN145)\/ <br \/>DIS(FUN146)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>Software Mask<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>Interrupt<\/p>\n<\/td>\n<td>\n<p>Interrupt Mask<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSC4)<\/p>\n<\/td>\n<td>\n<p>M1982<\/p>\n<\/td>\n<td rowspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>(HSC4)<\/p>\n<\/td>\n<td>\n<p>HSC4I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSC5) (HSC6) (HSC7)<\/p>\n<\/td>\n<td>\n<p>HSC5I HSC6I HSC7I<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSC5)<\/p>\n<\/td>\n<td>\n<p>M1984<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSC6)<\/p>\n<\/td>\n<td>\n<p>M1986<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSC7)<\/p>\n<\/td>\n<td>\n<p>M1988<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> System Architecture of SHSC\uff08HSC4\uff5eHSC7\uff09<\/p>\n<p>z All control signals of HHSC and SHSC are default as Active High (i.e. Status =1 for active and 0 for non-active). In order to cooperate with the sensor\u2019s polarity, the HHSC counting inputs (U, D, P, R, A and B) and control inputs (M and C) can be selected for polarity inverse. <\/p>\n<p>z By default when the MASK control signal, M is 1, the HSC counting pulse will be masked without any counting being performed and all HSC internal status (such as CV and PV) will remain unchanged. The HSC will function normally only when M returns to \u201c0\u201d. Some sensors have Enable outputs which function is on the contrary to MASK. Counters will not count when Enable = 0 and can only start functioning when Enable = 1. Then, function of inverse polarity input of MASK can be selected to cooperate with the sensors having Enable output. <\/p>\n<p>z When the CLEAR control signal, C is 1, the HSC internal CV register will be cleared to 0 and no counting will be performed. The HSC will start counting from 0 when C returns to 0. Ladder program can also directly clear the CV register (DR4112, DR4116, DR4120, and DR4124), so as to clear the current counting value to 0. <\/p>\n<p>z The four sets of FBs-PLC HHSC are located in the SoC chips where the CV or the PV registers the user can\u2019t access directly. What the user can access are the CV registers (DR4096\uff5eDR4110) located in the CPU internal memory. Ideally, the contents of CV and PV registers in the chips should be updated simultaneously with the CV and PV registers in the CPU internal memory. However, to keep the correspondence between the two must be loaded or read by the CPU when they, in fact, belong to two different hardware circuits. It is necessary to use FUN93 to load the CV and the PV registers inside the CPU to the respective CV and PV registers (to allow HHSC to start counting from this initial value. Then, FUN92 can be used to read back the counting value of the HHSC CV register in the chips to the CV register in the CPU (i.e. the CV register in the CPU has the bi-direction function). Since read can only be carried out when FUN92 is executed (so-called \u201csampling\u201d reading), it might result in difference between the HHSC CV value in the chips and the CV value in the CPU, the deviation will getting greater especially when the counting frequency is high. <\/p>\n<p>z When the counting frequency is not high or the demand for positioning precision is not so much, using FUN92 in the main program to read the current counting value and then incorporate comparator instruction is adequate for a simple counting positioning control. <\/p>\n<p>z When the demand for positioning precision is higher, or in the multi-zone count setting control, it may use the FUN92 to read the current counting value while in the time base interrupt routine and incorporate compare instruction to perform more precise counting positioning control. <\/p>\n<p>z As the demand for positioning precision is extremely high, it must use the preset interrupt function of hardware counter. The preset value can load by FUN93 into the PV register of HHSC in the chipset. When CV value of HHSC reaches this preset value, the hardware comparator in the HHSC will send interrupt to CPU at the very moment CV=PV, and jump to interrupt subroutine to do real time control or procession. <\/p>\n<p>z SHSC, on the other hand, uses the interrupt method to request an interrupt signal to the CPU when the counting input is on the rising edge. Then, the CPU will determine whether it should decrease or increase the internal CV register (since the CV register itself in the CPU is a SHSC CV register, no FUN92 or FUN93 is required). Each time when CV is updated, if the CPU find that it is equal to the PV register value, the CPU will jump immediately to the corresponding SHSC interrupt service routine for processing. Whenever there has a change in SHSC counting or control input can cause the CPU to be interrupted. The higher the counting frequency, the more of CPU time will be occupied. The CPU responding time will be considerably increased or even Watchdog time-out will be caused to force the PLC to stop operating. Therefore, it is preferred to use HHSC first; if it needs to use SHSC, the sum of all FBs-PLC SHSC input frequencies should not exceed 5KHz. <\/p>\n<p>z None of the special relay controls, such as software MASK, CLEAR and direction control, is real time. This means that although MASK, CLEAR or direction change has been set during routine scanning, the signal will only be transmitted to HSC when I\/O updating is under way after the completion of routine scanning. Hence, it is not suitable for the real time control in HSC operation (which should be mainly used for initial setting before HSC operation). Should real time control be required, please use hardware to control input or apply the FUN145(EN), FUN146(DIS), FUN92(HSCTR), and FUN93(HSCTW) etc. instructions for control. <\/p>\n<p>z Every HSC is equipped with the functions, ENable(FUN145) and DISable(FUN146), when SHSC is disabled, it will stop counting and without the interrupt function ; when HHSC is disabled, the counting still works but the interrupt function being disabled. <\/p>\n<h4>10.2.1 The Up\/Down Pulse Input Mode of High-Speed Counter (MD0\uff0cMD1) <\/h4>\n<p>The up\/down pulse input of high-speed counter has up counting pulse input (U) and down counting pulse input (D) <\/p>\n<p>that are independent to each other without any phase relationship. Each of them will +1 (U) or \u20131 (D) on the CV value <\/p>\n<p>when the rising edge of the pulse input occurs (both positive and negative edge for MD1). This also applies when the <\/p>\n<p>rising (or falling) edge of the U and D pulse occur simultaneously (it will offset with each other). Both of the two modes <\/p>\n<p>have the built-in software MASK and CLEAR (CLEAR is not available for SHSC) control functions, when the control <\/p>\n<p>function are not in use should keep the status (such as M1940 and M1941) as \u201c0\u201d.  Apart from the built-in software <\/p>\n<p>MASK and CLEAR, the controls of hardware MASK and CLEAR can also be configured. The MASK control is first <\/p>\n<p>performed by the OR operation of the hardware and software control, then the result is send to the HSC MASK control M, <\/p>\n<p>and so does CLEAR. Taking HSC0 as an example, the function schematic diagrams for MD0 and MD1 configured <\/p>\n<p>separately are shown as below. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-005.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-006.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-007.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"4\">\n<p>HSC0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC0I <\/p>\n<\/td>\n<td colspan=\"6\">\n<p>HSC0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Up pulse X0<\/p>\n<\/td>\n<td>\n<p>U<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td>\n<p>PV<\/p>\n<\/td>\n<td>\n<p>Up pulse X0<\/p>\n<\/td>\n<td>\n<p>U<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CV<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<td>\n<p>HSC0I <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Down pulse X1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>x1<\/p>\n<\/td>\n<td>\n<p>Interrupt<\/p>\n<\/td>\n<td>\n<p>Down pulse X1<\/p>\n<\/td>\n<td>\n<p>D<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>x2<\/p>\n<\/td>\n<td>\n<p>Interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN(FUN145)\/<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"3\">\n<p>M<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN\/DIS<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN(FUN145)\/<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>EN\/DIS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>M<\/p>\n<\/td>\n<td>\n<p>C<\/p>\n<\/td>\n<td>\n<p>DIS(FUN146)<\/p>\n<\/td>\n<td>\n<p>C<\/p>\n<\/td>\n<td>\n<p>DIS(FUN146)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Hardware mask X2<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Software clear<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Hardware mask X2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Hardware clear X3<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Hardware clear X3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Software mask<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1940M1941<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Software mask<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1940M1941<\/p>\n<\/td>\n<td>\n<p>Software clear<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p> MD0\uff08U\/D\uff09<\/p>\n<\/td>\n<td colspan=\"6\">\n<p> MD1\uff08U\/D\u00d72\uff09(HHSC Only) <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>The Waveforms of the HSC, which is configured as up\/down pulse input mode, and PV value is preset to 6: <\/p>\n<p>X0(U)<\/p>\n<p>X1(D) <br \/>M1940 or X2 (M) <br \/>M1941 or X3 (C)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>MD0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-008.png\" \/><\/p>\n<\/td>\n<td>\n<p>PV=6<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>2<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>3<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>4<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>3<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>2<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>3<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>4<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>5<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>6<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CV (x1)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC0I<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>HSC0 sends interrupt to CPUCPU receives and handles this interrupt<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<td>\n<p>9<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<td>\n<p>11<\/p>\n<\/td>\n<td>\n<p>12<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\t\tCV (x2) <br \/>MD1 <br \/>\tHSC0I <br \/>\t\tHSC0 sends interrupt to CPU<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-009.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-010.png\" \/><\/p>\n<h4>10.2.2  Pulse\/Direction Input Mode of High-Speed Counter (MD2, MD3) <\/h4>\n<p>The pulse-direction input mode high-speed counter only has one counting pulse input P (pulse).  It requires another direction input R (Direction) to decide whether the CV value should +1 (R=0) or \u20131 (R=1) when the rising edge (both rising and falling edges for MD3) of counting pulse arrives.  The same applies to counting of MD2 and MD3 except that MD2 only counts on the rising edge (+1 or \u20131) and MD3 counts on both rising and falling edges of PS pulse (twice the counts of MD2).  These two modes have built-in software MASK, software CLEAR (SHSC does not have clear).  When control function is not in use, it must keep the status (such as M1946 and M1947 in this example) to be 0. Apart from the built-in software MASK and CLEAR, the controls of hardware MASK and CLEAR can also be configured. The MASK control is first performed by the OR operation of the hardware and software control, then the result is send to the HSC MASK control M, and so does CLEAR. The function schematic diagrams of HSC1 configured individually for MD2 and MD3 are shown as below. <\/p>\n<p>HSC1 \tHSC1<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Pulse input X4<\/p>\n<\/td>\n<td>\n<p>P<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HSC1I <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Pulse input X4<\/p>\n<\/td>\n<td>\n<p>P<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HSC1I <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Direction selecrion X5<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>x1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Interrupt<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Direction selection X5<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>x2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"3\">\n<p>Software direction <br \/>\tselectionM1948<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>M<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>EN\/DIS<\/p>\n<\/td>\n<td>\n<p>EN(FUN145)\/<\/p>\n<\/td>\n<td>\n<p>Software direction <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>M1948<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>M<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>EN\/DIS<\/p>\n<\/td>\n<td>\n<p>EN(FUN145)\/<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>DIS(FUN146)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>selection<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>C<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>DIS(FUN146)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>C<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\">\n<p>Hardware mask X6 <br \/>Hardware clear X7<\/p>\n<\/td>\n<td colspan=\"7\">\n<p>Hardware mask X6 <br \/>Hardware clear X7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Software mask<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1946M1947<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Software clear<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Software mask<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1946M1947<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Software clear<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\">\n<p> MD2\uff08P\/R\uff09 <\/p>\n<\/td>\n<td colspan=\"7\">\n<p> MD3\uff08P\/R\u00d72\uff09\uff08HHSC Only\uff09 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Direction selection of MD2 and MD3 HHSC, for HSC or SHSC, can be come from the external inputs (such as X5 in <\/p>\n<p>this example) or the special relay in CPU (such as M1948 in this example) to reduce the usage of external input points. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-011.png\" \/><\/p>\n<p>\tThe diagram below is the waveform diagram for the relationship between counting and control of the two HSC. In this example the PV value is to 6. <\/p>\n<p>X4(P)<\/p>\n<p>X5(R)<\/p>\n<p>X6(M)<\/p>\n<p>X7(C)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"6\">\n<p>MD2<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-012.png\" \/><\/p>\n<\/td>\n<td>\n<p>PV=6<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>2<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>3<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>2<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>4<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>6<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>8<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>3<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>4<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>5<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CV (x1)<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>5<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>7<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>9<\/p>\n<\/td>\n<td colspan=\"9\" rowspan=\"3\">\n<p>HSC1 sends interrupt to CPU<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>CPU receives and handles this interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>HSC1I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>10<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>11<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>12<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>8<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>7<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>6<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>5<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>4<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>5<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>6<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>7<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>8<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>9<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>CV (x2)<\/p>\n<p>MD3 <br \/>HSC1I<\/p>\n<p>HSC1 sends interrupt to CPU<\/p>\n<h4>10.2.3AB Phase Input Mode of High-Speed Counter (MD4,MD5,MD6,MD7) <\/h4>\n<p>The AB phase high-speed counter is equipped with phase A and phase B pulse input with counting value +1 or \u20131, depending on the phase relationship between the two, i.e. the related counting of the two phases. If phase A is ahead of phase B, the CV value should be +1, else, the CV value should be \u20131. The counting of the four modes, MD4 (A\/B), MD5 (A\/B\u00d72), MD6 (A\/B\u00d73) and MD7 (A\/B\u00d74), of AB phase HSC are similar. Their differences are: <\/p>\n<p>cMD4 (A\/B) \t: The rising edge of A is +1 when A is ahead of B and the falling edge of A is \u20131 when A is behind B. <\/p>\n<p>dMD5 (A\/B\u00d72) : The rising and falling edges of A are +1 when A is ahead of B, and \u20131 when A is behind B (twice the \tcounts of MD4). <\/p>\n<p>eMD6 (A\/B\u00d73) : The rising and falling edges of A and rising edge of B are +1 when A is ahead of B. The rising and falling edges of A and the falling edge of B are \u20131 when A is behind B (three times the counts of MD4). <\/p>\n<p>f MD7 (A\/B\u00d74) : The rising and falling edges of A and B are +1 when A is ahead of B and the rising and falling edges \tof A and B are \u20131 when A is behind B (four times the counts of MD4). <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-013.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-014.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-015.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-016.png\" \/><\/p>\n<p>Other MD4\uff5eMD7 HSC modes also have built-in software MASK, software CLEAR (SHSC does not have clear). When control function is not in use, it must keep the status (such as M1946 and M1947 in this example) to be 0. Apart from the built-in software MASK and CLEAR, the controls of hardware MASK and CLEAR can also be configured. The MASK control is first performed by the OR operation of the hardware and software control, then the result is send to the HSC MASK control M, and so does CLEAR.  The function schematic diagrams of HSC2 for the four MD4~MD7 HSC modes are shown as below. <\/p>\n<p>HSC2 \tHSC2<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>A phase pulse X8<\/p>\n<\/td>\n<td>\n<p>A<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HSC2I <\/p>\n<\/td>\n<td>\n<p>A phase pulse X8<\/p>\n<\/td>\n<td>\n<p>A<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HSC2I <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>B phase pulse X9<\/p>\n<\/td>\n<td>\n<p>B<\/p>\n<\/td>\n<td>\n<p>x1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Interrupt<\/p>\n<\/td>\n<td>\n<p>B phase pulse X9<\/p>\n<\/td>\n<td>\n<p>B<\/p>\n<\/td>\n<td>\n<p>x2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>M<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>EN\/DIS<\/p>\n<\/td>\n<td>\n<p>EN(FUN145)\/<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>M<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>EN\/DIS<\/p>\n<\/td>\n<td>\n<p>EN(FUN145)\/<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>C<\/p>\n<\/td>\n<td>\n<p>DIS(FUN146)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>C<\/p>\n<\/td>\n<td>\n<p>DIS(FUN146)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\">\n<p>Hardware mask X0 <br \/>Hardeare clear X11<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Hardware mask X0 <br \/>Hardeare clear X11<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Software mask<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1976M1977<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Hardware clear<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Software mask<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1976M1977<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Hardware clear<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\">\n<p>MD4\uff08A\/B\uff09 <\/p>\n<p>HSC2<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>MD5\uff08A\/B\u00d72\uff09(HHSC Only)<\/p>\n<p>HSC2<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>A phase pulse X8<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>A<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>CV<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>PV<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>HSC2I <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>A phase pulse X8<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>A<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CV<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>x4<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"4\">\n<p>HSC2I <br \/>Interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>x3<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>B phase pulse X9<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>B<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>B phase pulse X9<\/p>\n<\/td>\n<td>\n<p>B<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"3\">\n<p>Hardware mask X10<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>EN\/DIS<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>EN(FUN145)\/<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>M<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>EN\/DIS<\/p>\n<\/td>\n<td>\n<p>EN(FUN145)\/<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>C<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>DIS(FUN146)<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>C<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>DIS(FUN146)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\">\n<p>Hardware mask X10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Hardeare clear X11<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Hardeare clear X11<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>M1976M1977<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Hardware clear<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Software mask<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1976M1977<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Hardware clear<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Software mask<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>MD6\uff08A\/B\u00d73\uff09(HHSC Only)<\/p>\n<p>MD7\uff08A\/B\u00d74\uff09(HHSC Only)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-017.png\" \/><\/p>\n<p>The diagram below is the waveform diagram for the relationship between counting and control of the four HSC modes in <\/p>\n<p>this example when the PV value is set as at -4. <\/p>\n<p>Retraced point <br \/>s t<\/p>\n<p>Rotary encoder<\/p>\n<p>Up counting \t\tDown counting (A phase ahead B phase) (B phase ahead A phase)<\/p>\n<p>X8(A)<\/p>\n<p>X9(B)<\/p>\n<p>X10(M)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"3\">\n<p>X11(C)<\/p>\n<\/td>\n<td rowspan=\"20\">\n<p>o<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"20\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"20\">\n<p>0<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>p<\/p>\n<\/td>\n<td rowspan=\"20\">\n<p>q<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>2<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>4<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>r<\/p>\n<\/td>\n<td rowspan=\"20\">\n<p>3<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>s<\/p>\n<\/td>\n<td rowspan=\"20\">\n<p>7<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>4<\/p>\n<\/td>\n<td rowspan=\"20\">\n<p>7<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>s<\/p>\n<\/td>\n<td rowspan=\"20\">\n<p>3<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>5<\/p>\n<\/td>\n<td rowspan=\"20\">\n<p>r<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>4<\/p>\n<\/td>\n<td rowspan=\"20\">\n<p>5<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>q<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>p<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>o<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\">\n<p>n<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>m<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>l<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>k<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\">\n<p>j<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>i<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>h<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>g<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"6\">\n<p>MD4<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-018.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>CV(x1)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>0<\/p>\n<\/td>\n<td colspan=\"11\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PV=-4<\/p>\n<\/td>\n<td rowspan=\"17\">\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"5\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>2<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>3<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>5<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>6<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>8<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>6<\/p>\n<\/td>\n<td colspan=\"10\" rowspan=\"2\">\n<p>-1<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>-2<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>-3<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>-4<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>-5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>HSC2I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"16\">\n<p>HSC2 sends interrupt to CPU<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>CPU receives and handles this interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>3<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"15\" rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>CV(x2)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>PV=-4<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"10\">\n<p>123<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>6<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>6<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>9<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>9<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>12<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>9<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>9<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>6<\/p>\n<\/td>\n<td colspan=\"9\" rowspan=\"3\">\n<p>-1<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"3\">\n<p>-2-3-4-5<\/p>\n<\/td>\n<td colspan=\"9\" rowspan=\"3\">\n<p>-6-7-8-9-10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>MD5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>HSC2I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"10\">\n<p>HSC2 sends interrupt to CPU<\/p>\n<\/td>\n<td colspan=\"11\">\n<p>CPU receives and handles this interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"6\">\n<p>MD6:CV(x3)<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"3\">\n<p>4<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>3<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>2<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"15\" rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"7\">\n<p>15<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"6\">\n<p>12<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>12<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"21\">\n<p>-1-2-3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"21\">\n<p>-6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>6<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>5<\/p>\n<\/td>\n<td colspan=\"6\" rowspan=\"2\">\n<p>3<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\">\n<p>-9<\/p>\n<\/td>\n<td colspan=\"7\" rowspan=\"2\">\n<p>-12<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>MD7:CV(x4)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>2<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td colspan=\"11\">\n<p>-15<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>-1<br \/>\t-3<br \/>\t\t-6<\/p>\n<p>-9<\/p>\n<p>-12<\/p>\n<p>-20<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-019.png\" \/><\/p>\n<p> 10.3Procedure for FBs-PLC High-Speed Counter Application <\/p>\n<p>Start <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"7\">\n<p>z Configure HSC counting mode and \t\t respective input   <br \/>\t(by FP-08 or WinProladder) <\/p>\n<p>z Complete hardware wiring <br \/>according to the previous input assignment <\/p>\n<p>z Set HSC initial CV value and interrupt PV value in the main program <\/p>\n<p>z Write necessary handling <br \/>procedures to be taken during interrupt and condition for next interrupt in sub program area<\/p>\n<p>z Start the operation <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1. Please refer to Section 10.2 for respective HSC counting modes and <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p> &#8212;&#8212;&#8212;&#8212;-<\/p>\n<\/td>\n<td>\n<p>principles. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>2. Please refer to Section 10.4 for setting examples. <\/p>\n<p> &#8212;&#8212;&#8212;&#8212;-1. Please refer to \u201cDigital Input Circuit\u201d in Chapter 6 \u201cHardware Manual\u201d <\/p>\n<p>for hardware wiring. <\/p>\n<p>1. If the HSC is HHSC, it is necessary to apply FUN93 to load it into the <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p> &#8212;&#8212;&#8212;&#8212;-<\/p>\n<\/td>\n<td>\n<p>HHSC CV and PV in the SoC chip. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>2. Please refer to Section 10.5 for program examples. <\/p>\n<p>1. Please refer to Section 9.1 for subroutine structure. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p> &#8212;&#8212;&#8212;&#8212;-<\/p>\n<\/td>\n<td>\n<p>2. Please refer to Section 10.5 \u201cActual Examples\u201d for program <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>examples. <\/p>\n<p> &#8212;&#8212;&#8212;&#8212;-. Please refer to Section 10.5 for program examples and description. <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>End <\/p>\n<p>10.4HSC\/HST Configuration <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>10.4.1  HSC\/HST Configuration (Using FP-08) <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\tThe screen of FP-08 will be taken as an example to describe HSC Configuration in this section. The HSC Configuration, in sequence, includes the following 5 items: <\/p>\n<p>c Select assignment for HSC\/HST (only HHSC provides this item selection function). Proceed to next item if selection is \tHSC. No other items are required if configured as HST. <\/p>\n<p>dAssign respective HSC counting modes (MD0\uff5eMD7). After keying in the mode number, FP-08 will automatically display the HSC counting and control input names of the mode and reserve space for users to key in the external input point number Xn. The blank mode field indicates the HSC is not in use. <\/p>\n<p>eDetermine whether the respective counting inputs (U, D, P, R, A and B) and control inputs (M and C) are to be applied or not (reserve the space if not in use and fill in the Xn value if it is to be applied. As respective Xn input values of HHSC are fixed, it requires only to key in alphabet \u201cX\u201d and FP-08 will automatically make up the preset number n). <\/p>\n<p>fSelect whether the polarity of each HHSC counting input (U, D, P, R, A and B) is inverse or not, so as to match the \tpolarity of the encoder (0: Not inverse, 1: Inverse. Preset as 0). <\/p>\n<p>gSelect whether the polarity of each HHSC control input (M and C) is inverse or not, so as to match the polarity of the \tencoder (0: Not inverse, 1: Inverse. Preset as 0). <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-020.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-021.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-022.png\" \/><\/p>\n<p> Examples applying FP-08 to perform the above mentioned c~g configurations <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u3010Key Operation\u3011<\/p>\n<\/td>\n<td>\n<p>\u3010LCD Display\u3011<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\t\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\t\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\t\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>C <\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\u2022<\/p>\n<p>y HSC0 is preset as HSC <\/p>\n<p>y HSC1 is preset as HSC <\/p>\n<p>y HSC1 is used as a high-speed counter <\/p>\n<p>HST1 <\/p>\n<p>y HSC2 is preset as HSC <\/p>\n<p>y HSC3 is preset as HSC <\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\ty MD field is blank indicating that HSC0 is not \tin use <\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\ty There is no need to configured HSC1 as it \thas been set to HST (No Display). <\/p>\n<p>\t\ty MD field of HSC2 is blank indicating MD is \u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\tnot in use <br \/>\t\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\t*y After 7 is keyed in, the respective MD7 \t\t\t\tinput names will be displayed and the <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>a<\/p>\n<\/td>\n<td>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<\/td>\n<td>\n<p>preset values for A and B (X8 and X9) will <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<\/td>\n<td>\n<p>be filled automatically <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p> b <\/p>\n<\/td>\n<td>\n<p>y If MASK is required, just key in X and it will <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>automatically fills number 10 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-023.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-024.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-025.png\" \/><\/p>\n<p>\u3010Key Operation\u3011 \t\u3010LCD Display\u3011 <\/p>\n<p>b<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\t\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\t\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>y Key in 2 and the preset number of P will \tbe filled automatically <\/p>\n<p>y Move the cursor to R and key in \u201cX\u201d, it will immediately change to X13 and change it to be hardware direction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<\/td>\n<td>\n<p>control <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>y HSC4 is not in use <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<\/td>\n<td>\n<p>y HSC5 is not in use <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<br \/>\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>y HSC6 is set as MD0 and respective input names of MD0 SHSC will be displayed automatically <\/p>\n<p>y Assign X10 as the up counting pulse <\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u201cU\u201d for HSC6 <\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022y Assign X2 as the down counting pulse <\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\t\u201cD\u201d for HSC6 <\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022y HSC7 is not in use <\/p>\n<p>*<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<\/td>\n<td>\n<p>y All counting inputs of every <br \/>HHSC(HSC0\uff5eHSC3)are preset as <\/p>\n<p>non-inverse <\/p>\n<p>y All MASK controls of HHSC are preset as non-inverse <\/p>\n<p>y Change all MASK inputs of HHSC to inverse (i.e. the MASK function <br \/>becomes ENable) <\/p>\n<p>y All CLEAR controls of HHSC are preset as non-inverse <\/p>\n<p>y Complete configuration and return to the initial screen display (HSC0\/HST0 Item Selection) <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>C<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>z Input value modification can be made by directly key in the new value to overwrite. Use <\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-026.png\" \/><\/p>\n<\/td>\n<td>\n<p>key to delete any input <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>value, if required. <\/p>\n<p>z A blank field (without any value input) indicates the application of the HSC or the input is not required. z \u201cpulse\u201d in the previous example represents the \u201cCounting Input\u201d, i.e. U and D, P and R or A and B, of HHSC. z \u201cPOLAR\u201d represents \u201cPOLARITY\u201d, i.e. selection of inverse or non-inverse. <\/p>\n<p>z The input point for respective HHSC counting and control inputs are fixed. Therefore, in the \u201cConfiguration Examples\u201d of the previous example, it needs only to key in \u201cX\u201d for each HHSC input to indicate that the input is to be applied and FP-08 or WinProladder will automatically make up the preset number for X, to which no change will be allowed. The user may assign respective SHSC counting or control inputs between X0~X15 freely. Hence, it is necessary to key in both the \u201cX\u201d and the number n for SHSC input point number to make it complete. <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>10.4.2  HSC\/HST Configuration (Using WinProladder) <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Click the item \u201cI\/O Configuration\u201d which in Project Windows <strong>: <\/strong><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"3\">\n<p> Project name <\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\"><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p> S<\/p>\n<\/td>\n<td>\n<p>stem Co<\/p>\n<\/td>\n<td>\n<p>nfigurat<\/p>\n<\/td>\n<td>\n<p>on <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> I\/O Configuration  \u00c6 Select  \u201cTimer\/Counter\u201d <\/p>\n<p>When \u201cTimer\/Counter\u201d window appear then you can choose the Timer or Counter which you want. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-027.png\" \/><\/p>\n<p>&#8212;\u300aTimer\/Counter Configuration\u300b&#8212; <\/p>\n<p>\u3010Counter Type \u3011<strong>:<\/strong> It can select Hardware Counter or Hardware Timer.<\/p>\n<p>\u3010Counting Mode \u3011<strong>: <\/strong>It can select the Counting Mode( Example: U\/D\u3001P\/R\u3001A\/B\u2026\u2026) <\/p>\n<p>\u3010A-Phase \u3011<strong>:<\/strong> Select the up pulse input signal. If the Mode is P\/R Counting Mode ,and this item will be \u201cPLS\u201d; If the \tMode is U\/D Counting Mode ,and this item will be \u201cUP\u201d. <\/p>\n<p>\u3010B-Phase \u3011<strong>:<\/strong> Select the down pulse input signal. If the Mode is P\/R Counting Mode ,and this item will be \u201cDIR\u201d; If the \tMode is U\/D Counting Mode ,and this item will be \u201cDN\u201d. <br \/>\u3010Mask[MSK] \u3011<strong>:<\/strong> It can select Mask input.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-028.png\" \/><\/p>\n<p>\u3010Clear[CLR] \u3011<strong>:<\/strong> It can select Clear input.<\/p>\n<p>&#8212;\u300aHSC Polarity\u300barea &#8212; <br \/>\u3010Mask signal \u3011<strong>: <\/strong>Determining Mask signal is positive or negative. <\/p>\n<p>\u3010Clear signal \u3011<strong>: <\/strong>Determining Clear signal is positive or negative.<\/p>\n<p>\u3010Counter signal \u3011<strong>: <\/strong>Determining Counter signal is positive or negative.<\/p>\n<p>&#8212;\u300aHSC\u2019s Data Length\u300barea &#8212; <br \/>\t It can choose 32-bit Hardware Counter mode or 16-bit Timer + 16-bit Counter mode. 32-bit Hardware Counter mode means using two register to record the Counting value. The 16-bit Timer + 16-bit Counter mode means using one register to record Counting value and the other register will be cyclic Timer. <\/p>\n<p>\t All preset or selectable input point numbers, software MASK, software CLEAR, direction selection and other related numbers of HHSC and SHSC are summarized in the table below:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p> Type <\/p>\n<\/td>\n<td>\n<p>HHSC <\/p>\n<\/td>\n<td>\n<p>MA\/MC\/MN <\/p>\n<\/td>\n<td>\n<p>SHSC <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> Signal <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p> Allowed <\/p>\n<\/td>\n<td>\n<p>HSC0 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HSC1<\/p>\n<\/td>\n<td>\n<p>HSC2 <\/p>\n<\/td>\n<td>\n<p>HSC3<\/p>\n<\/td>\n<td>\n<p>HSC4 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HSC5 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HSC6 <\/p>\n<\/td>\n<td>\n<p>HSC7 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>DR4096 DR4100<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>DR4104<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>DR4108<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>DR4112<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>DR4116<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>DR4120 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>DR4124<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>CV Register <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>PV Register <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>DR4098 DR4102<\/p>\n<\/td>\n<td>\n<p>DR4106<\/p>\n<\/td>\n<td>\n<p>DR4110<\/p>\n<\/td>\n<td>\n<p>DR4114<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>DR4118<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>DR4122 <\/p>\n<\/td>\n<td>\n<p>DR4126<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Counting <\/p>\n<\/td>\n<td>\n<p>U,P or A <\/p>\n<\/td>\n<td>\n<p>X0 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X1\/X4<\/p>\n<\/td>\n<td>\n<p>X4\/X5\/X8<\/p>\n<\/td>\n<td>\n<p>X5\/X12<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X0\uff5eX15<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X0\uff5eX15<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X0\uff5eX15 X0\uff5eX15<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Input <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D,R or B<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X1 <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>X5 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X9 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X13 <\/p>\n<\/td>\n<td colspan=\"6\">\n<p>X0\uff5eX15*X0\uff5eX15*X0\uff5eX15* X0\uff5eX15*<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>X0\uff5eX15<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>X0\uff5eX15<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>X0\uff5eX15 X0\uff5eX15<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Control <\/p>\n<\/td>\n<td>\n<p>Mask <\/p>\n<\/td>\n<td>\n<p>X2 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X6 <\/p>\n<\/td>\n<td>\n<p>X10 <\/p>\n<\/td>\n<td>\n<p>X14 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Input <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Clear <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>X3 <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>X7 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>X11 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>X15 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X0\uff5eX15<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X0\uff5eX15<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X0\uff5eX15 X0\uff5eX15<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>M1982<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"4\">\n<p>M1984<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"4\">\n<p>M1986 <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>M1988<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Software MASK <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>M1940 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1946<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1976<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1979<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Relay <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Software CLEAR <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>M1941 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1947<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1977<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1980<\/p>\n<\/td>\n<td colspan=\"6\" rowspan=\"2\">\n<p>Clear the Current Value Register directly<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Relay <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Software Direction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Selection(MD2,3 <\/p>\n<\/td>\n<td>\n<p>M1942 <\/p>\n<\/td>\n<td>\n<p>M1948<\/p>\n<\/td>\n<td>\n<p>M1978<\/p>\n<\/td>\n<td>\n<p>M1981<\/p>\n<\/td>\n<td>\n<p>M1983<\/p>\n<\/td>\n<td>\n<p>M1985<\/p>\n<\/td>\n<td>\n<p>M1987 <\/p>\n<\/td>\n<td>\n<p>M1989 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Only) <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Interrupt Subroutine <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC0I <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC1I<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC2I<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC3I<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC4I<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC5I<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC6I <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC7I <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Label <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>* When SHSC works in MD2(P\/R), direction chose by special relay M1983\u3001M1985\u3001M1987 and M1989. <\/p>\n<p>z \tWhen working in A-B Mode(HHSC as MD4\uff5eMD7\u3001SHSC as MD4), whose A\/B input must be used in pair, as X8 \t\tand X9.(even number is A-Phase and odd number is B-Phase) <br \/>z \tThe input point of X0~X15 in the table above can only be assigned once (i.e. used as one function), which can\u2019t \t\trepeat to be used.<\/p>\n<p>z \tFBs-MN\u2019s frequency can reach up to 460 KHz.( single phase and AB phase) <\/p>\n<p>z \tFBs-MC\u2019s frequency can reach up to 100 KHz. ( single phase and AB phase) <\/p>\n<p>z \tFBs-MA\u2019s frequency can reach up to 20KHz (single phase), and 10KHz (double phase). <\/p>\n<p>z \tThe total input frequencies of SHSC can\u2019t be exceed 8 KHz; the higher the frequency, the more it occupy the system <\/p>\n<p>(CPU) time, and the scanning duration will be extended abruptly. <\/p>\n<p>z \tMA only support SHSC. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-029.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-030.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-031.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-032.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-033.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-034.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-035.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-036.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-037.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-038.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-039.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-040.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-041.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-042.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-043.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-044.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-045.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-046.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-047.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-048.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-049.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-050.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-051.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-052.png\" \/><\/p>\n<p>10.5Examples for Application of High-Speed Counter<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> Example 1   This example uses high-speed counter for equal-length cutting control. <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> Mechanism <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-053.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-054.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-055.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> HSC configuration   (Just set HSC0 to MD7 and complete the configuration) <\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-056.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-057.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-058.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-059.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p> Control program <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Main Program\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>X4<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>93DP.HSCTW<\/p>\n<\/td>\n<td rowspan=\"13\">\n<p>Y0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2022 Use FUN 93 to write the contents of the current value <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>register into the CV register of HSC0 in the SoC chip <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"9\">\n<p>X4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td>\n<p>HSC0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CN =0 indicates HSC0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>=0 indicates CV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>92<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2022 Use FUN 92 to read the counting value of the HSC0 CV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSCTR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>register in the SoC chip (store into DR4096) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>93DP.HSCTW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>\u2022 Store the counting of cutting length DR0 into DR4098 and <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>use FUN93 to store the value into the PV register of HSC0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td>\n<p>HSC0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>in the SoC chip <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>X4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>PV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CN =0 indicates HSC0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>X2<\/p>\n<\/td>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>=1 indicates PV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Y0<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>.01S<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>TUP<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2022 Start the motor <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Y1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>T0<\/p>\n<\/td>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2022 Turn the cutter Y1 ON for 0.1 second <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>RST<\/p>\n<\/td>\n<td>\n<p>Y1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Subroutine\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>65<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"3\">\n<p>H SC 0I<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Y1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 When HSC0 CV=PV in the SoC chip, the hardware will <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>LBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>automatically execute the interrupt subroutine labeled HSC0I <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>74.IM D I0<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>D =0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u2022 When counting is up, turn Y1 ON (to cut materials) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Y1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>N  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2022 Output Y1 immediately to reduce the error caused by scan <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>11D .(+)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>time <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Sa :<\/p>\n<\/td>\n<td>\n<p>R 4098<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>U \/S<\/p>\n<\/td>\n<td>\n<p>Sb : <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>: R 0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>C Y<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Calculate new cutting position and load HSC0 PV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R 4098<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>BR<\/p>\n<p>93D .H SC TW<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>R 4098<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>C N :<\/p>\n<\/td>\n<td>\n<p>H SC 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>69<\/p>\n<p>R TI<\/p>\n<p>\u3010Description\u3011<\/p>\n<p>1. The main program will initialize the HSC0 CV (CV=0) in advance and move the cropping length (DR0) to the HSC0 PV <\/p>\n<p>before starts Y0 to turn on the motor for material conveying. <\/p>\n<p>2. When CV reaches PV, the length of R0 is added to the PV before being reloaded into HSC0 PV. <\/p>\n<p>3. When all materials are rolled out, the material shortage detector X2 will be ON and stop the motor. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-060.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-061.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> Example 2    Example of high speed counting up action processed by Interrupt <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Main Program\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"6\">\n<p>M100<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>93DP.HSCTW<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2022Employ FUN93 to write the content of current value register into the <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CV of HSC0 in SoC chip (reset) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>CN =0, represents HSC0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>=0, represents CV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>M100<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>92<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2022Employ FUN92 to read out the current counting value of HSC0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>HSCTR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>in SoC chip, and store it into the CV register (DR4096) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"9\">\n<p>M101<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>P<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CN=0, represents HSC0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SET<\/p>\n<\/td>\n<td>\n<p>Y0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2022As M101 change from 0\u21921, start Y0 ON (begin to operate) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"7\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>93DP.HSCTW<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2022Employ FUN93 to write the content of preset register into HSC0 PV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>in SoC chip, which serves as setting value of counting up interrupt <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>CN=0, represents HSC0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>D =1, represents PV <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Subroutine\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>65<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC0I<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>Y0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Hardware high speed counter #0 interrupt label <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>RST<\/p>\n<\/td>\n<td>\n<p>\u2022 When time up, it sets Y0 OFF (stop) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>\u2022 Let Y0 out immediately, so as to stop promptly <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>74.IMDI0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Y0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>(otherwise Y0 will have a scan time output delay)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N  :<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>69<\/p>\n<p>RTI<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-062.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> Example 3    Example of Immediate response of multi-zone high speed counting up by Interrupt Processing <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Main program\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>X3<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>92<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2022 Employ FUN92 to read out the current value of HSC1 in SoC <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>chip, and store it into current value register DR4100 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>HSCTR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>CN =1, represents HSC1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"10\">\n<p>M101<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>P<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2022 As M101 change from 0\u21921, clears the pointer register to 0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>RST<\/p>\n<\/td>\n<td>\n<p>R100<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>P<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2022 Clears the flag of the last zone to be OFF <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>RST<\/p>\n<\/td>\n<td>\n<p>M110<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"6\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>93DP.HSCTW<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2022 Employ FUN93 to write preset register content into HSC1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R200<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>PV in SoC chip, which serve as counting up setting value. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>CN =1, represents HSC1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>PV<\/p>\n<\/td>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>=1, represents PV <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>114P.Z-WR<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>Y8<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>ERR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Clear Y8\uff5eY15 to be OFF <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1\/0<\/p>\n<\/td>\n<td>\n<p>N  :<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>P<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SET<\/p>\n<\/td>\n<td>\n<p>Y8<\/p>\n<\/td>\n<td>\n<p>\u2022 Set Y8 ON, it represents that it is at the zone 0 currently <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>74P.IMDI0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u2022 Set Y8\uff5eY15 output t immediately<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Y8<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>8<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-063.png\" \/><\/p>\n<p>\u3010Subroutine\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>65<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>X3+I<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Label name for the X3 rising edge interrupt service <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>LBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>subroutine of X3+1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"4\">\n<p>93D.HSCTW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>(it must assign X3 to be the rising edge interrupt input) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"7\">\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2022 When X3 changes from 0\u21921,employ FUN93 to write the <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC1<\/p>\n<\/td>\n<td>\n<p>current register content to the HSC1 CV in SoC chip (reset).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p> CN = 1, represents HSC1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>CV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p> D = 1, represents CV <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>69 <br \/>RTI<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>M110<\/p>\n<\/td>\n<td>\n<p>65<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>HSC1I<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>Y15<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Labeled as HSC1I hardware high speed counter interrupt <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>LBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>service subroutine. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>M110<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>RST<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u2022 Turn Y15 OFF when the last zone finished. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>66<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>JMP<\/p>\n<\/td>\n<td>\n<p>110<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>41.BITWR<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>WY8<\/p>\n<\/td>\n<td>\n<p>ERR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Make the previous zone output OFF <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>INB<\/p>\n<\/td>\n<td>\n<p>N  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R100<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>OVF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>15<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u2022 Set the pointer point to the next zone <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R100<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(+1)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>41.BITWR<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>WY8<\/p>\n<\/td>\n<td>\n<p>ERR<\/p>\n<\/td>\n<td rowspan=\"19\">\n<p>M110<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2022 Set the output of next zone to be ON <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>INB<\/p>\n<\/td>\n<td>\n<p>N  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R100<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>END<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>101D.T     R<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>\u2022 Move the counting value of next zone (beginning from <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Ts :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R200<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"3\">\n<p>DR200 pointer pointed register) to the preset register <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>L   :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>8<\/p>\n<\/td>\n<td rowspan=\"13\">\n<p>ERR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>INC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>DR4102 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Pr :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R100<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CLR<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2022 When it\u2019s the last zone, the M110 is ON <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Rd :<\/p>\n<\/td>\n<td>\n<p>R4102<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"7\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>93D.HSCTW<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2022 Employ the FUN93 to write the preset value into the HSC1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R4102<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>PV in the SoC chip, which serves as counting up interrupt <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>setting point. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>HSC1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>CN =1, represents HSC1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>=1, represents PV <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>65<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>LBL<\/p>\n<\/td>\n<td>\n<p>110<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Y8<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>\u2022 Y8\uff5eY15 output transmitting immediately<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>74.IMDI0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N  :<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>69 <br \/>\tRTI<\/p>\n<p>10.6FBs-PLC High-Speed Timer <\/p>\n<p>The minimum timing unit (time base) of an ordinary PLC can only reach 1mS, on which the deviation in scan time should also be added. Therefore, it is necessary to apply high-speed timer (HST) if a more precise timing (e.g. using timer to cooperate with HSC for frequency measurement) is required. <\/p>\n<p>FBs-PLC is built in a high-speed timer (HSTA) with a time base of 16-bits\/0.1mS and, as described previously, four 32-bit high-speed counters (HSC0~HSC3) of HHSC that can work as the high speed timer (HST0~HST3) with a time base of 32-bit\/0.1mS for using. Thus, FBs-PLC can have up to five high-speed timers. As HSC and INT, all HST can be enabled or disabled (default as enable) by the instructions EN (FUN145) and DIS (FUN146). HSTA and HST0~HST3 are respectively described as below. <\/p>\n<p>The finest time base for most of the ordinary PLC is 10mS.  Though some PLC may have HST with a time base of 1mS. When deviations in the PLC scan time is taken into consideration (e.g. if the scan time is 10mS when the time base is 1mS, the total deviation still exceeds 10mS), the figure of 1mS becomes meaningless. Therefore, these PLCs can\u2019t be applied in high precision timing.  FBs-PLC, having a time base of 0.1mS, has no deviation in scan time for its time up is sent out by interrupt to provide a precision 100 times better than ordinary PLCs\u2019 timer application and can be used for many applications demanding precision timing. <\/p>\n<h4>10.6.1HSTA High-Speed Timer <\/h4>\n<p>HSTA is a 16-bit hardware timer built in the SoC chip. As HHSC, it must use the instruction FUN93 (HSCTW) to load the PV to the HSTA PV in the chip, and with the instruction FUN92 (HSCTR) to read for CV.  HSTA can be used as a timer having two different functions.  FBs-PLC will use it as a general 16-bit delay timer when PV \u22652 and as a 32-bit cyclic timer when PV=0. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-064.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-065.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> A. HSTA 16-bit high-speed delay timer   (Timely interrupt timer)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>After HSTA starts timing, the delay timer will delay for a time of PVx0.1mS before sending an interrupt out. When PV&gt;0, HSTA served as a delay timer which is 16-bit and its PV value can be set as 0002H~FFFFH. i.e. the delay time can be set as 0.2mS~6.5535 seconds.  Except that having a more precise time base and being able to send an interrupt out immediately at time-up to provide a much higher timing precision, the applications of HSTA are the same as an ordinary delay timer. The diagram below is the structure diagram for HSTA being used as a delay timer. Please refer to Section 10.6.3 \u201cProgram Examples\u201d for detailed function and application. <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>CV Register<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>(HSTA)<\/p>\n<\/td>\n<td>\n<p>PV Register<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>z Apply FUN93 to write the <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>R4152<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R4154<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"6\">\n<p>(SoC Chip)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>PV into preset register of <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>FUN92<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>FUN93<\/p>\n<\/td>\n<td>\n<p>HSTA high speed timer in <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>(HSCTR)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>SoC chip, which serves as <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>(HSCTW)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>timely interrupt timer (for <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>every set point of timer it <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>16 bit<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>16 bit<\/p>\n<\/td>\n<td>\n<p>perform once the timely <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>interrupt subroutine with <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>label name of \u201cHSTAI\u201d).<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>UP<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td>\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>0.1mS time base<\/p>\n<p>EN\/DIS <br \/>EN\/DIS<\/p>\n<p>EN(FUN145)\/<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>DIS(FUN146)<\/p>\n<\/td>\n<td>\n<p>PV=CV<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Interrupt label <br \/>HSTAI<\/p>\n<p>EN(FUN145)<\/p>\n<p>DIS(FUN146)<\/p>\n<p>Timing\/Non-timing<\/p>\n<p>PV\u22672 PV<\/p>\n<p>CV <br \/>(R4152)<\/p>\n<p>HSTAI<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Td=0.1mS x PV<\/p>\n<\/td>\n<td>\n<p>Td1<\/p>\n<\/td>\n<td>\n<p>Non-timing<\/p>\n<\/td>\n<td>\n<p>Td2<\/p>\n<\/td>\n<td>\n<p>Td=Td1 + Td2<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-066.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-067.png\" \/><\/p>\n<p>B. HSTA 32-bit high-speed cyclic timer <\/p>\n<p>The so-called \u201cCyclic Timer\u201d is a timer that add 1 to its current value for every fixed interval and will persistently carry out up counting cyclic timing. Its CV value will cycle around as 0, 1, 2, \u2026 2147483647, 2147483648, 2147483649, \u2026\u2026 4294967295, 0, 1, 2, \u2026 (as the time base is 0.1mS, CV value x 0.1mS will be its accumulative time). In fact, the cyclic timer is an up counting cyclic timing clock having a time base of 0.1mS that can operate endlessly and be used to read any two events at the time when they occurred and to calculate the time interval between the occurrence of the said two events. The Diagram B as shown below is the structure diagram for HSTA being used as a 32-bit cyclic timer. As shown in diagram, when cyclic timer PV=0, it will not send out the interrupt.  To obtain the timing value, it is necessary to use FUN92 to access the CV value from the SoC chip and save it to the 32-bit CV register (DR4152) in the PLC. The typical application of the cyclic timer is for more precision of turning speed (RPM) detection under the circumstances when the change in turning speed (RPM) is huge or when it is extremely low.  Please refer to Example of Section 10.6.3 for description. <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>z Employ FUN92 to read out the CV<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"5\">\n<p>DR4152<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>(HSTA)<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>R4154<\/p>\n<\/td>\n<td rowspan=\"9\">\n<p>FUN93<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>z Employ FUN93 to write the PV=0 to <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>of HSTA high speed counter in SoC <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>HSTA high speed timer set point <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>chip and store it into CV register<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>register to make it serve as 32-bit <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>(DR4152) so as to let the user know<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>FUN92<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>(SoC Chip)<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>16 bit<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"6\">\n<p>cyclic timer.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\">\n<p>the value for time lapsed.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>(HSCTR)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>(HSCTW)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>16 bit<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>UP<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td>\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>0.1mS Time base<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>4294967295<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN\/DIS<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>2147483647<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>2147483648<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>2147483649<\/p>\n<\/td>\n<td>\n<p>EN(FUN145)\/<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DIS(FUN146)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>4294967295<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>0.1mS<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-068.png\" \/><\/p>\n<h4>10.6.2HST0\uff5eHST3 High-Speed Delay Timer <\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> A. HST0~HST3 high-speed delay timer   (Timely interrupt timer)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>HHSC (HSC0~HSC3) can be configured as four 32-bit high-speed delay timers, HST0~HST3.  They have the same functions and time base as a 16-bit HSTA delay timer except that HST0~HST3 are 32-bit to plan HHSC as HST only needs to select \u201c1\u201d in the HSC\/HST Item Selection under Item 8 \u201cHSC\/HST\/INT\u201d of FP-08 or WinProladder \u201cConfiguration\u201d. Please refer to the example (to configure HSC1 as HST1) in Section 10.4 \u201cHSC\/HST Configuration\u201d. The diagram below is the function structure diagram for HHSC being planned as a HST. Its applications are the same as that of a 16-bit HSTA. Please refer to Section 10.6.4 \u201cProgram Examples\u201d. <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>z Employ FUN92 to read out the current <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>CV Register<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>z Apply FUN93 to write<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>timing value in SoC chip and store it into<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>PV Register <br \/>(CPU Internal Memory)<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>the PV into the SoC chip which is served as set point for timing up<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>the CV register of CPU.  So as to let<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>user know the current timing value. <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>(CPU Internal Memory)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>z It may also employ FUN93 to write the <\/p>\n<\/td>\n<td>\n<p>DR4096<\/p>\n<\/td>\n<td>\n<p>(HST0)<\/p>\n<\/td>\n<td>\n<p>DR4098<\/p>\n<\/td>\n<td>\n<p>interrupt.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CV into the SoC chip so as to reset the<\/p>\n<\/td>\n<td>\n<p>DR4100<\/p>\n<\/td>\n<td>\n<p>(HST1)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>DR4102<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>timing value.<\/p>\n<\/td>\n<td>\n<p>DR4104<\/p>\n<\/td>\n<td>\n<p>(HST2)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>DR4106<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR4108<\/p>\n<\/td>\n<td>\n<p>(HST3)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>DR4110<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN92<\/p>\n<\/td>\n<td>\n<p>FUN93<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN93<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HSCTR)<\/p>\n<\/td>\n<td>\n<p>(HSCTW)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>(HSCTW)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>(SoC Chip)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>0.1mS time base<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>UP<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>CV<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<td>\n<p>(HST0)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HST3)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\tEN\/DIS <br \/>EN\/DIS<\/p>\n<p>EN(FUN145)\/ <br \/>DIS(FUN146)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"5\">\n<p>TO CPU <br \/>Interrupt<\/p>\n<\/td>\n<td colspan=\"2\">\n<p> Interrupt label Interrupt label<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HST0)<\/p>\n<\/td>\n<td>\n<p>HST0I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HST1)<\/p>\n<\/td>\n<td>\n<p>HST1I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HST2)<\/p>\n<\/td>\n<td>\n<p>HST2I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(HST3)<\/p>\n<\/td>\n<td>\n<p>HST3I<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> B. HST0~HST3 32-bit cyclic timer <\/p>\n<p>According to demand, configured the HHSC(HSC0~HSC3) to be the 32-bit timers of HST0~HST3. For interval of every 0.1mS, the current timing value register in SoC chip will be increased by 1. User may use FUN92 instruction to read out the current timing value and store it into the CV registers (DR4096, DR4100, DR4104, and DR4108) of CPU. Therefore the content of CV register of CPU become 0, 1, 2, \u2026\u2026, 7FFFFFFFH, 80000000H, \u2026\u2026., FFFFFFFFH, 0, 1, \u2026\u2026 etc. variation of values for 32-bit.  With the timing calculation technique to count the interval between two events, it can obtain infinite number of 0.1mS 32-bit timers. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-069.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-070.png\" \/><\/p>\n<h4>10.6.3Examples for Application of High-Speed Timer HSTA<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p> Example 1   HSTA serve as 32-bit cyclic timer <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"5\">\n<p>M1<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>93DP.HSCTW<\/p>\n<\/td>\n<td>\n<p>\u2022 Employ FUN93 to write the preset value into the HSTA PV in the SoC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td>\n<p>chip <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CN =4, represents HSTA <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HSTA<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D =1, represents PV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u2022 Employ FUN 92 to read out the current timing value of HSTA in SoC <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>M1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>92<\/p>\n<\/td>\n<td>\n<p>chip and store it to DR4152 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>HSCTRHSTA<\/p>\n<\/td>\n<td>\n<p>(DR4152 value change from 0,1,2, \u2026\u2026,FFFFFFFF,0,1,2,\u2026\u2026cyclic <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>variation, the unit is 0.1mS) <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u2022 CN =4, represents HSTA<\/p>\n<p> Example 2  Application example for cyclic timer <\/p>\n<p>This example uses HSTA as a cyclic timer, cooperating with HSC0, to read the time interval for accumulation of 10 pulses and sending an interrupt out each time as 10 pulses are accumulated and, reciprocally, find out the required RPM (the number of pulses is fixed when the time varies). <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Mechanism <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Motor<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>U<\/p>\n<\/td>\n<td>\n<p>PLC<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>INT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>FUN92<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>(Y0 motor driving)<\/p>\n<\/td>\n<td>\n<p>Light chopper<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSTA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(X1 starting switch)<\/p>\n<\/td>\n<td>\n<p>(1 pulse\/revolution)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p> HSC and HST configuration <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>c As HSTA is built in, no configuration is required. Simply make PV =0 to make it as a 32-bit cyclic timer. <\/p>\n<p>d To cooperate with the photo interrupter, set the HSC0 as an up counting counter having single input <\/p>\n<p>(MD0, but use only U input). <\/p>\n<p>\u203b All other settings (polarity of counting and control inputs) are preset (non-inverse) and should not be changed. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-071.png\" \/><\/p>\n<p>\u3010Main Program\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>M1924<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>93D.HSCTW<\/p>\n<\/td>\n<td rowspan=\"28\">\n<p>Y0<\/p>\n<\/td>\n<td colspan=\"20\">\n<p>\u2022Employ FUN93 to write current value 0 into the CV of HSC0 in <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"20\" rowspan=\"2\">\n<p>SoC chip (reset) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"23\">\n<p>M1924<\/p>\n<\/td>\n<td colspan=\"20\" rowspan=\"2\">\n<p>CN =0, represents HSC0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>HSC0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>D <\/p>\n<\/td>\n<td colspan=\"19\" rowspan=\"3\">\n<p>=0, represents CV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>CV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"7\">\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>93D.HSCTW<\/p>\n<\/td>\n<td colspan=\"20\" rowspan=\"2\">\n<p>\u2022 Write 10 into the preset register in SoC chip, which acts as <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"20\" rowspan=\"2\">\n<p>interrupt value for counting up; <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>HSC0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"20\" rowspan=\"3\">\n<p>FUN93 CN=0 indicates HSC0 and D=1 indicates PV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"7\">\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>93D.HSCTW<\/p>\n<\/td>\n<td colspan=\"20\" rowspan=\"2\">\n<p>\u2022 Write 0 into the preset register, and HSTA is configured as a <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"20\" rowspan=\"2\">\n<p>32-bit high-speed cyclic timer <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>HSTA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"20\" rowspan=\"3\">\n<p>FUN93 CN=4 indicates HSTA and D=1 indicates PV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>92<\/p>\n<\/td>\n<td colspan=\"20\" rowspan=\"3\">\n<p>\u2022 Read the current timing value <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>HSCTR<\/p>\n<\/td>\n<td>\n<p>HSTA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>08D.MOV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R4152<\/p>\n<\/td>\n<td colspan=\"20\" rowspan=\"3\">\n<p>\u2022 The initial value of HSTA CV register is stored to DR2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>X1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"7\">\n<p>M1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>66<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>D=0<\/p>\n<\/td>\n<td colspan=\"20\" rowspan=\"5\">\n<p>\u2022 Find interval for each HSC0 interrupt <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>JMP<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>12D.(-)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Sa :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>\u2022<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"4\">\n<p>Rotating<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"4\">\n<p>speed<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"4\">\n<p>=<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>N<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"4\">\n<p>\u00d7<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"4\">\n<p>60<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"4\">\n<p>RPM<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Sb :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\"><\/td>\n<td rowspan=\"3\">\n<p>U\/S<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>CY<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2206<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>T<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>N=10, <\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>\u2206T<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>=<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2206CV<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u00d7<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>. 1 m<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>S<\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"2\">\n<p>\uff08currentCV-previousCV\uff09<\/p>\n<p>=<\/p>\n<p>10000 S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\"><\/td>\n<td rowspan=\"2\"><\/td>\n<td colspan=\"3\" rowspan=\"3\">\n<p>14D.(  )<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>BR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Therefore<\/p>\n<\/td>\n<td colspan=\"6\" rowspan=\"2\">\n<p>rotating<\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"2\">\n<p>speed<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>=<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>6000000<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>RPM<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"8\"><\/td>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D=0<\/p>\n<\/td>\n<td>\n<p>\u2206<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sa :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>6000000<\/p>\n<\/td>\n<td colspan=\"20\">\n<p>\u2022 R100=RPM <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Sb :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R6<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>ERR<\/p>\n<\/td>\n<td colspan=\"20\" rowspan=\"6\">\n<p>\u2022 Clear the calculation flag of RPM <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>U\/S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R100<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>M1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>65<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LBL<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-072.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-073.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-074.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-075.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-076.png\" \/><\/p>\n<p>\u3010Subroutine\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>65<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>HSC0I<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>HSTA<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Each time when HSC0 accumulates 10 pulses, the <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>LBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>hardware will automatically run this interrupt subroutine <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>92<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Read the HSTA CV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSCTR<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>08D.MOV<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>08D.MOV<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>R4152<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>93D.HSCTW<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>M1<\/p>\n<\/td>\n<td>\n<p>\u2022 Reset the current value to 0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CN:<\/p>\n<\/td>\n<td>\n<p>HSC0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 M1=ON, RPM calculating flag <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>69 <br \/>RTI<\/p>\n<p>X0<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-077.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>HSC0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>8<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>9<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>10<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>10<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>9<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>10<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"9\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-078.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CV value<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC0I<\/p>\n<\/td>\n<td colspan=\"10\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-079.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PV value<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>10<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>10<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>10<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>10<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p> CV value of HSTA V value of HSTA<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>10000<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>15000<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>200000<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>800000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p> (0.1mS time base) 1ms time basc)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>(1s)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>(1.5s)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>(20s)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>(80s)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"3\">\n<p>\u2206T =<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>DT = 0.5s<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>RPM=<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-080.png\" \/>RPM=      x60<\/p>\n<p>\u2206T<br \/> N <br \/>DT = 60s<\/p>\n<p>=10RPM<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>RPM=<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>\t\t N <br \/>RPM=      x60\u2206T<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>=1200RPM<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-081.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-082.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p> Example 3  HSTA serve as timely interrupt timer program <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Main Program\u3011<\/p>\n<p>\u2022 Set up the period of timely interrupt time. S=5 represents <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>M0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>93DP.HSCTW<\/p>\n<\/td>\n<td>\n<p>that it performs the interrupt service subroutine with the <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>5<\/p>\n<\/td>\n<td>\n<p>label name of HSTAI every 0.5mS. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td>\n<p>HSTA<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022Employ FUN93 to write the preset value into HSTA PV in <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>SoC chip, which serve as time up for interrupt preset value. <br \/>CN =4, represents HSTA <br \/>D =1, represents PV <\/p>\n<p>\u3010Subroutine\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>65<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>HSTAI<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>a=b<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Interrupt service subroutine with the label name of HSTA. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>92<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Read the current value of hardware high speed counter HSC0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>HSCTR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HSC0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>once every 0.5mS. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>17D.CMP<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 To tell whether the current counting value is greater than or <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Sa :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R4096<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>equal to R0. if yes, then Y0 will be ON. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Sb :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>a&gt;b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>U\/S<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Y0 <br \/>a&lt;b<\/p>\n<p>74.IMDI0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y0<\/p>\n<\/td>\n<td>\n<p>\u2022 Update output Y0 immediately, so as to reach the high speed <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>output reaction <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>N  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(otherwise there will be introduced a delay in scan time) <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>69 <br \/>RTI<\/p>\n<h4>10.6.4Examples for Application of High-Speed Timer HST0~HST3 <\/h4>\n<p> HSC and HST configuration(Using WinProladder) <\/p>\n<p>Click the item \u201cI\/O Configuration\u201d which in Project Windows <strong>: <\/strong><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"3\">\n<p> Project name <\/p>\n<\/td>\n<td rowspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\"><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> System Configuration  <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> I\/O Configuration  \u00c6 Select  \u201cTimer\/Counter\u201d <\/p>\n<p>\u25cfWhen \u201cTimer\/Counter\u201d windows appear, then you can choose the \u201cHardware Timer\u201d in Counter Type item, then HHSC \t(Hardware High Speed Counter) can configure to be HHT.(Hardware High speed Timer) <\/p>\n<p>\u25cfUser don\u2019t have to configure the HSTA, because the HSTA is default. Only you want HHSC(Hardware High Speed \tCounter) to be HHT.(Hardware High speed Timer) and you have to configure it. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-083.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p> HSC and HST configuration(Using FP-08) <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\t\u2022\u2022\u2022\u2022\u2022\u2022<\/p>\n<p>\u2022 HSC0 is set as HST0 <\/p>\n<p>\u2022 HSC1 is preset as HSC <\/p>\n<p>\u2022 HSC1 is set as MD0, an up counting counter with single <\/p>\n<p>input.  Other inputs will not be used.<\/p>\n<p>\u2022All other settings (polarity of counting and control inputs) are default (Non-inverse) and should not be changed. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-084.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-085.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p> Example1 Application example for delay timer <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>This example configures HSC0 as a HST0 delay timer. At the same time, by connecting the high-speed counter HSC1 with a rotary motor of an automatic wood drilling machine and sending out an interrupt at a fixed period. Each time interrupt occur will read the counting value of the counter. Then, by comparing the change in speed between the number of the motor\u2019s rotation when no loading is applied (operating without drilling) and that when the drill head is pressing down (drilling), the change of the motor\u2019s RPM can be calculated. It is understood that resistance will be less and motor\u2019s RPM will be faster when the drill head is normal (sharp) than when the drill head is blunt. When the drill head is broken, it works like operating without drilling that no resistance exists and RPM is the fastest. Usually the difference in rotating speed among the three conditions is not significant and which cannot be sampled and detected by an ordinary timer having a more than tens of ms of deviation.  However, applied with an HST having a time base of 0.1mS that incorporating interrupt, the drill head\u2019s status (normal, blunt or broken) can be detected and, thus, warning can be given or operation can be stopped in due time for drill head replacement.\u3010The time is fixed and the number of pulses varies\u3011<\/p>\n<p> Mechanism <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Motor<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X4<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>U<\/p>\n<\/td>\n<td>\n<p>PLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>FUN92<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>(Y0 motor driving)<\/p>\n<\/td>\n<td>\n<p>Light chopper<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HST0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>INT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(X1 starting switch)<\/p>\n<\/td>\n<td>\n<p>(8 pulses\/revolution)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Main Program\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"5\">\n<p>M 1 9 2 4<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>E N<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>9 3 D .H S C T W<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Employ FUN93 to reset current value register in SoC chip. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>FUN93 CN=1 indicates HSC1 and D=0 indicates CV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>C N : <\/p>\n<\/td>\n<td>\n<p>: \tH S C 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>C V<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>9 3 D .H S C T W<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>E N<\/p>\n<\/td>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>5 0<\/p>\n<\/td>\n<td>\n<p>\u2022 HST0 PV value is set as 50, i.e. one interrupt every 5mS <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>C N :<\/p>\n<\/td>\n<td>\n<p>H S T 0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>(50\u00d70.1mS) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>P V<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>9 3 D .H S C T W<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>X 1<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>E N<\/p>\n<\/td>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Y 0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u2022 The initial value of HST0 CV register is 0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>C N : <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>: \tH S T 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>C V<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2022 Use FUN112 to compare the drill head\u2019s RPM speed after <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"8\">\n<p>T 0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>E N<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>.0 1 S<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>T U P<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>starting the motor for 5 seconds <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>T 0<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>5 0 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"6\">\n<p>R0: The number of HSC1 pulses obtained in every 5mS <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>1 1 2 .B K C M P<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>E N<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R s :<\/p>\n<\/td>\n<td>\n<p>R 0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>E R R<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>T s :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R 1 0 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>L   :<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Y 8<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-086.png\" \/><\/p>\n<p>\u3010Subroutine\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>6 5<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>H S T 0 I<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>H S C 1<\/p>\n<\/td>\n<td rowspan=\"9\">\n<p>D = 0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 The hardware will execute this subroutine once every 5mS <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>L B L<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>E N<\/p>\n<\/td>\n<td>\n<p>9 2<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Read the current counting value of HSC1 and put it into <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>H S C T R<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>DR4100 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>1 2 D .(-)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>E N<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R 4 1 0 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S a :<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2022 Find out the increment of HSC1 CV value in this 5mS <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S b :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R 2<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>C Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>U \/S<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>interval and store the value into DR0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>R 0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>B R<\/p>\n<p>0 8 D .M O V<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>E N<\/p>\n<\/td>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>R 4 1 0 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>R 2<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>1 1 D .(+ )<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>E N<\/p>\n<\/td>\n<td>\n<p>S a :<\/p>\n<\/td>\n<td>\n<p>R 4 0 9 8<\/p>\n<\/td>\n<td>\n<p>D = 0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u2022 Calculate the new HSC0 PV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>U \/S<\/p>\n<\/td>\n<td>\n<p>S b :<\/p>\n<\/td>\n<td>\n<p>5 0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>C Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>R 4 0 9 8<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>B R<\/p>\n<p>9 3 D .H S C T W<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>E N<\/p>\n<\/td>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>R 4 0 9 8<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>C N :<\/p>\n<\/td>\n<td>\n<p>H S T 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>P V<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>6 9 <br \/>R T I<\/p>\n<p>\u3010Description\u3011<\/p>\n<p>Supposed that the drill head\u2019s normal RPM is 18000rpm and the photo interrupter will generate 8 pulses in one revolution, then the frequency of the pin U of HSC1 is 18000\/60\u00d78=2400Hz, i.e. 12 pulses will be generated for <\/p>\n<p>every 5mS.  Therefore, HST0 can be used to send an interrupt and read the HSC1 CV value every 5mS to get <\/p>\n<p>the RPM value. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-087.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-088.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-089.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-090.png\" \/><\/p>\n<p>X4<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-091.png\" \/><\/p>\n<p>HSC1<\/p>\n<p>CV value 11 \t12 \t13 \t23 \t24 \t25 \t35 36 \t37 46 \t47 \t48<\/p>\n<p>HSC0<\/p>\n<p>CV value \t50 \t100 \t150 200<\/p>\n<p>HST0<\/p>\n<p>PV value 50 \t100 \t150 \t200<\/p>\n<p>HST0I<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-092.png\" \/><\/p>\n<p>\u2206T DT = 5mS \tDT = 5mS \tDT = 5mS<\/p>\n<p>(0.1mS time base) \t(50 x 0.1mS) \t(50 x 0.1mS) \t(50 x 0.1mS)<\/p>\n<p>HSC1\t\u2206CV=12\t\u2206CV=12\t\u2206CV=12<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-093.png\" \/>increased value \t(24 &#8211; 12) \t(36 &#8211; 24) \t(47 &#8211; 36)<\/p>\n<p>Upper Limit Lower Limit<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>R101 <\/p>\n<\/td>\n<td>\n<p>R100 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R103 <\/p>\n<\/td>\n<td>\n<p>R102 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R105 <\/p>\n<\/td>\n<td>\n<p>R104 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<td>\n<p>\u2190\u2500\u2500\u2500\u2500\u2500\u2192<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R0 <br \/>(\u25b3CV) <\/p>\n<\/td>\n<td>\n<p>\u2500\u2500\u2500\u2192Y8 <\/p>\n<\/td>\n<td>\n<p>\u203b Setting different upper and lower <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2190\u2500\u2500\u2500\u2500\u2500\u2192<\/p>\n<\/td>\n<td>\n<p>\u2500\u2500\u2500\u2192Y9 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>limits to category the RPM condition<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2190\u2500\u2500\u2500\u2500\u2500\u2192<\/p>\n<\/td>\n<td>\n<p>\u2500\u2500\u2500\u2192Y10 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p> Example2  Hardware high speed timer HST3 serve as 32-bit cyclic timer <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"6\">\n<p>M300<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>93DP.HSCTW<\/p>\n<\/td>\n<td>\n<p>\u2022As M300 change from 0\u21921, <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>clear the current value register to 0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2022Employ FUN 93 to write current value 0 into the HST3 CV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CN:<\/p>\n<\/td>\n<td>\n<p>HST3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td>\n<p>(reset) in SoC chip <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>CN =3, represents HST3 <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>M300<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>92<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>HST3<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>=0, represents CV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>HSCTR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>\u2022Employ FUN92 to read out the current timing value of HST3 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>in SoC chip and store it into the current value register <\/p>\n<p>DR4108 <\/p>\n<p>(DR4108 value cyclically changes from 0, 1, 2,  \u2026\u2026, <\/p>\n<p>FFFFFFFF, 0, 1, 2, \u2026\u2026 the unit is 0.1mS) <\/p>\n<p>CN =3, represents HST3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-094.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-hw-en-010\/fbs-hw-en-010-095.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p> Example3   Hardware high speed timer HST3 serve as periodic interrupt timer <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Main Program\u3011<\/p>\n<p>\u2022 Turn on or M301 is ON, it prohibits the HST3 from sending <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>M1924<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>146P<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HST3I<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>periodic interrupt <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DIS<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>M301<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"17\">\n<p>M300<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>93DP.HSCTW<\/p>\n<\/td>\n<td>\n<p>\u2022 As M300 change from 0\u21921, clear the current register to 0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td>\n<p>\u2022 Employ FUN93 to write current value 0 into the HST3 CV (reset) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>HST3<\/p>\n<\/td>\n<td>\n<p>in SoC chip. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN =3, represents HST3; D=0, represents CV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>CV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"9\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Set up periodic interrupt interval; PV=5 represent every 0.5mS <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>93DP.HSCTW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>perform once the interrupt service subroutine with label name of <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>HST3I. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>HST3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2022 Employ FUN93 to write the preset value into the HST3 PV in SoC <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>PV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>chip, which serve as time up interrupt preset value. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>145P<\/p>\n<\/td>\n<td>\n<p>CN=3 represents HST3; D=1 represents PV <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2022 Enable the HST3 interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>HST3I<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Subroutine\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>65<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>HST3I<\/p>\n<\/td>\n<td rowspan=\"15\">\n<p>ERR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Hardware high speed Interrupt service subroutine with the label <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>LBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>name of HST3I. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>92<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Read the current value of hardware high speed counter HSC0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSCTR<\/p>\n<\/td>\n<td>\n<p>HSC0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>112.BKCM P<\/p>\n<\/td>\n<td>\n<p>once every 0.5mS. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2022 To tell which zone of the electronic drum does the current <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Rs :<\/p>\n<\/td>\n<td>\n<p>R4096<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"7\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>Ts :<\/p>\n<\/td>\n<td>\n<p>R1000<\/p>\n<\/td>\n<td>\n<p>counting value fall, and set the corresponding output point to <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>L   :<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>be ON. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y8<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>\u2022 Update output Y8\uff5eY15 immediately <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>74.IM DI0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>Y8<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N  :<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>93D.HSCTW<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"5\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>\u2022 Employ FUN93 to reset current value register into the HST3 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>HST3<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>CV in SoC chip (reset). <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN:<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CN=3 represents HST3; D =0, represents CV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>69 <br \/>RTI<\/p>\n","protected":false},"excerpt":{"rendered":"<p>10.1FBs-PLC High-Speed Counter The counting frequency o [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-3415","post","type-post","status-publish","format-standard","hentry","category-en-fbs-hw"],"_links":{"self":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/comments?post=3415"}],"version-history":[{"count":0,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3415\/revisions"}],"wp:attachment":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/media?parent=3415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/categories?post=3415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/tags?post=3415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}