12.07.2015 Views

Part 2

Part 2

Part 2

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example 3497A Configurations 593S1 ISOLATEDJ5@ + 5VOUTPUT1I-_ILIGHTBi(a) COUNT UP (TOTALIZING1INPUTIS1 ISOLATEDJ5@ + 5V1 - 1 I5V SIGNALOUTPUTAT 1KHz(b)COUNT DOWNFigure 1 96. Example 9 - Count UpIDown with Option 060 AssemblyIf, for example, we assume that the input pulses from the conveyer belt have a 1kHz frequency, after 5 seconds 5000 counts should have accumulated in thecounter. The printout shows the actual number, so the actual input pulse frequencycan be determined.( COUNT UP FROM ZERO I10 CLEAR 70920 OUTPUT i'Og;"CF4,1"30 WAIT40 OUTPUT 7Og;"CR4,1 "50 ENTER 709;A60 PRINT "NUMBER OF COUNTS = ";A70 ENDThe sample COUNT DOWN program shown presets a counter in slot 3 to 5000counts and then starts the countdown process. After a 2 second delay to allow 2000counts to be counted down (for a 1 kHz input from the oscillator), the counts remainingis printed out and can be used to determine the actual oscillator input frequen-cy. For example, if counts remaining = 3002, actual oscillator frequency =(5000-3002) = 1998 counts12 sec = 999 Hz.Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!