User Manual
62 Rockwell Automation Publication CC-QS033A-EN-P - February 2014
Appendix A Kinetix 3 Drive Component-class User-defined Functional Block
Table 9 - RA_HSC_CfgAndSts Inputs
Table 10 - RA_HSC_CfgAndSts Outputs
Variable Data type Description Range
FBEN BOOL Set this bit TRUE to enable the function block. 0, 1
HscID UINT This value sets the ID in use. 0…5
HscMode USINT This value sets the HSC mode. 0…9
Enable BOOL Set this bit TRUE to enable the HSC. 0, 1
Disable BOOL Set this bit TRUE to disable the HSC. 0, 1
InitialPosition REAL This value sets the initial position after reset. -3.40282347E+38…3.40282347E+38
Reset BOOL Set this bit TRUE to reset HSC count value and HSC error. 0, 1
HPSetting DINT This value sets the High preset setting. -2147483648…2147483647
LPSetting DINT This value sets the Low preset setting. -2147483648…2147483647
Variable Data type Description Range
FBENO BOOL This variable reflects the state of FBEN. 0, 1
HscOK BOOL This bit is TRUE when HSC is counting. 0, 1
HscCount DINT This value return the count value. -2147483648… 2147483647
LP_Reached BOOL Low preset reached. 0, 1
HP_Reached BOOL High preset reached. 0, 1
Underflow BOOL Underflow detected. 0, 1
Overflow BOOL Overflow detected. 0, 1
Error BOOL This bit is TRUE when an error was detected. 0, 1
ErrorCode UINT This value returns the HSC error code:
00: No error.
01: Invalid HSC Counting mode. (Can require a re-download of program to
correct).
02: Invalid high preset. (Can require a re-download of the program to correct).
03: Invalid overflow. (Can require a re-download of the program to correct).
04: Invalid underflow. (Can require a re-download of the program to correct).
05: No PLS data. (Can require a re-download of the program to correct).
06: Invalid HscID.
07: Invalid HscMode.
0…255