Rockwell Automation Publication 2080-UM004C-EN-E - March 2015 95
Quickstart Appendix B
Configuration for UDFB 1: RA_HSCPlugIn
1. Launch Connected Components Workbench. Open the sample project
you have downloaded from the Sample Code Library.
2. Import the RA_HSCPlugIn UDFB you have downloaded into this
project. Note that the sample project will have the following input and
output parameters.
NOTE: The purpose of this UDFB is to get
high speed counter accumulator value and
current pulse frequency.
Input and Output Parameters
Parameter Type Data Type Description
FBEN INPUT BOOL Function block Enable input
SlotID INPUT UINT Plug-in slot number.
Slot ID = 1…5 (starting with the far left slot 1)
NoiseFilter INPUT USINT 00: No filter
01: 250 kHz
02: 200 kHz
03: 80 kHz
04: 40 kHz
05: 13.3 kHz
06: 10 kHz
07: 4 kHz
08: 2 kHz
09: 1 kHz
10: 500 Hz
11: 250 Hz
12: 125 Hz
13: 63.5 Hz
14: 31.25 Hz
HSCMode INPUT USINT 0, 2 , 4, 6, 8, 10, 12
Start INPUT BOOL Start counter.
Stop INPUT BOOL Stop the counter and clear “MaxDPos” and
“MaxDSpd” value.
FBENO OUTPUT BOOL Function block Enable output
IDCHeck OUTPUT BOOL TRUE: HSC plug-in is at selected slot.
FALSE: Wrong plug-in or no plug-in at selected slot.