Specifications | HI-SPEED MEASURING USING S7-200 Halva |
Business section |

Specifications | HI-SPEED MEASURING USING S7-200 Halva |
Business section |
Specifications | HI-SPEED MEASURING USING S7-200 Halva |
Suggested Link Details/Purchase | |
Content | HI-SPEED MEASURING USING S7-200 QUESTION: How can I measure fast speeds using high-speed counters? ANSWER: In the CPU cycle, it is not possible to measure speeds with sufficient accuracy in ranges that are usual in engineering. Here you select a method that uses high-speed counters and a time interrupt (e.g. HSC3). The requirement here is that when the CPU is switched to RUN with the first cycle, the counter is initialized, the interrupt defined and assigned to the counter. For this with the first cycle bit (S M0.1) you switch to a subroutine (e.g. subroutine 0), in which the time interrupt cycle is defined. Since the first cycle bit is only set in the first cycle after switching to the RUN mode, this interrupt setting is done only once. Select, for example, Interrupt 0. The cycle time for the interrupt event 10 is written in SMB34. In the example, Interrupt 0 is selected. You may only assign one specific interrupt to each process. You can of course increase the time interval of 10 milliseconds to any length you wish. When calculating the speed from the number of pulses you must take this interrupt time into account accordingly. The counter always stores the number of pulses per interrupt time interval in the variable double-word VD0. If your rotary pulse encoder delivers, for example, 50 pulses per revolution and your interrupt time interval is 10ms, then the rpm is calculated as follows: (VD0 = number of pulses every 10ms) *6000 / 50. For the pulses of your rotary pulse encoder to be transferred to the counter, you simply have to connect the signal output of your encoder to input E0.1 of the counter HC3. (If you want to use a different counter to the one in the example, it will of course have to be the input of the counter you choose). It is important to set your counter correctly via the S7 Micro menu: Tools > Instruction Wizard . Proceed as follows: |
Navigation | Previous Page / Next Page |
Following Datasheets | fm_micromaster_03_2005_cz (4 pages) Function_Description_SIMODRIVE_61_1004_en (926 pages) function_diagram_sinamics_g130_en (25 pages) g110_kurzbe_0705_en (8 pages) G110_OPI_cz_1003_cz (86 pages) G110_Parameter_List_en (102 pages) G110_PLi_cz_1003_cz (84 pages) G110_strucny_CZ_0405_cz (28 pages) G130_General_diagram_en (4 pages) G130_Operating_Manual_Braking_Module_en (34 pages) |
Check in e-portals![]() |
World-H-News Products Extensions Partners Automation Jet Parts |
Sitemap Folder | group1 group2 group3 group4 group5 group6 group7 group8 group9 group10 group11 group12 group13 group14 group15 group16 group17 group18 group19 group20 group21 group22 group23 group24 group25 group26 group27 group28 group29 group30 group31 group32 group33 group34 group35 group36 group37 group38 group39 group40 group41 group42 group43 group44 group45 group46 group47 group48 group49 group50 group51 group52 group53 group54 group55 group56 group57 group58 group59 group60 group61 group62 group63 group64 group65 group66 group67 group68 group69 group70 group71 group72 group73 group74 group75 group76 group77 group78 group79 group80 group81 group82 group83 group84 group85 group86 group87 group88 group89 group90 group91 group92 group93 group94 group95 group96 group97 group98 group99 group100 Prewious Folder Next Folder |