You are on page 1of 4

(/app/answers/detail/a_id/19445/page/4#)

Use STI to calculate High Speed Counter input Rate Value on MicroLogix controllers
19445 | Date Created: 02/23/2001 | Last Updated: 11/24/2014
Support
Access Center (/app/home)
Level: TechConnect
Emailthispage SubscribetoUpdates
Menu

Question
IsthereaQuickStartforcalculatingRateValuefromtheembeddedHighSpeedCounterinput?

Environment
MicroLogix1200
MicroLogix1500
MicroLogix1100
MicroLogix1400

Answer
TheMicroLogixprocessorsdonothaveabuiltinfunctiontocountaratevalueonthehighspeedcounterinputs.ThisexampleshowshowtocalculatearatevalueusinganSTI.

Forthiscalculation,theSTImustbeunusedforanyotherfunction.ForhighspeedDCpulseinputs,basesthatsupportDCinputsmaybeused,suchasanyofthe:

1762
1764

ExampleUsingSTItoCalculateRateValuesonHighSpeedCounterInputs
1.TheSTIsettingsneedtobeentered,includingbothofthefollowing:
STIladderfilenumber
Setpoint.
Thesetpointwillalsodoubleastherateperiodforthecalculation.

Forthisexample,itisdesiredtohavethefinalratevaluebeinhertz,sothesetpointhastobe:
Minimumof1second.
Onlyinincrementsof1second.
Sothesetpointwillbe1000msec.

2.Valuesotherthanwholesecondvaluesarepossible,however,theunitvalueoftheratewillneedtobeconsideredwhenthecalculationisfinished.
Forexample,iftherateperiodistobe0.5Sec(500ms),donotdividethesetpointby1000asshowinladderfile4.Instead,justdividetheaccumulatedvaluebythesetpoint,
withthefinalanswerresultinginkilohertz.

3.Next,theHighSpeedCounterwillneedtobeconfigured.
ThisexampleusesMode6forusewithaquadratureencoder.
4.Thisisanexampleofthelogicusedtocalculatearatevalueusinga1secondrateperiod.
NotethattheSTIsetpointisdividedby1000togiveafullsecondvalueinsteadofmilliseconds.ThiswillmakethefinalanswerresultinHertz.
5.InputfiltersfortheHSCinputsmayneedtobeadjustedtoallowforhighspeedcountstoberead.

Forindepthdefinitionsofcommunicationsandexamples,pleaserefertotheMicroLogix1200/1500InstructionSetReferenceManual
(http://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1762rm001_enp.pdf),Publication1762RM001FENPOctober2009.

DISCLAIMER
Thisknowledgebasewebsiteisintendedtoprovidegeneraltechnicalinformationonaparticularsubjectorsubjectsandisnotanexhaustivetreatmentofsuchsubjects.
Accordingly,theinformationinthiswebsiteisnotintendedtoconstituteapplication,design,softwareorotherprofessionalengineeringadviceorservices.Beforemakingany
decisionortakinganyaction,whichmightaffectyourequipment,youshouldconsultaqualifiedprofessionaladvisor.

ROCKWELLAUTOMATIONDOESNOTWARRANTTHECOMPLETENESS,TIMELINESSORACCURACYOFANYOFTHEDATACONTAINEDINTHISWEBSITEANDMAY
MAKECHANGESTHERETOATANYTIMEINITSSOLEDISCRETIONWITHOUTNOTICE.FURTHER,ALLINFORMATIONCONVEYEDHEREBYISPROVIDEDTOUSERS"AS
IS."INNOEVENTSHALLROCKWELLBELIABLEFORANYDAMAGESOFANYKINDINCLUDINGDIRECT,INDIRECT,INCIDENTAL,CONSEQUENTIAL,LOSSPROFITOR

You might also like