96
Rockwell Automation Publication 2080-UM004C-EN-E - March 2015
Appendix B
Quickstart
Build and Download
Build and download the program into the controller.
Execute the Function Block
Operation Sequence for RA_HSCPlugIn
•
A rising edge of FBEN will cause the input Start to initialize steps. When
initialization is done, Output Initialized will change to TRUE.
•
User can start the feedback process (Start counting) after Initialized
output becomes TRUE. A rising edge of Start will trigger the feedback
process. Note that if the user wants to know the positioning information
the user needs to do the following steps to make sure position information
is in sync:
–
Initialize the RA_HSCPlugIn function block
–
Start the counting process when neccessary
•
User can stop/pause the process by giving a rising edge of Stop. If you want
to disable the function block, set Stop to true first.
Initialized
OUTPUT
BOOL
TRUE: HSC plug-in initialization finished and ready
to execute.
FALSE: HSCplug-in initialization not yet finished.
Accumulator
OUTPUT
LINT
Accumulator value.
Rate
OUTPUT
Real
Current pulse rate. The rate calculation is based on
how many pulses have been counted every 10 ms.
Input and Output Parameters
Parameter
Type
Data Type
Description