Publication 1766-RM001A-EN-P - October 2008
Using the High-Speed Counter and Programmable Limit Switch
103
HSC Function File
Sub-Elements
All examples illustrate HSC0.
Program File Number (PFN)
The PFN (Program File Number) variable defines which subroutine is
called (executed) when HSC0 counts to High Preset or Low Preset, or
through Overflow or Underflow. The integer value of this variable defines
which program file will run at that time. A valid subroutine file is any
program file (3…255).
Error Code (ER)
The ERs (Error Codes) detected by the HSC sub-system are displayed in
this word. Errors include:
Description
Address
Data Format HSC Modes
(1)
(1) For Mode descriptions, see HSC Mode (MOD) on page 116.
Type
User Program Access
PFN - Program
File Number
HSC:0.PFN word (INT)
0…9
control read only
Description
Address Data Format
HSC Modes
(1)
(1) For Mode descriptions, see HSC Mode (MOD) on page 116.
Type
User Program Access
ER - Error Code HSC:0.ER word (INT)
0…9
status read only
HSC Error Codes
Error Code
Name
Mode
(1)
(1) For Mode descriptions, see HSC Mode (MOD) on page 116.
Description
1
Invalid File
Number
n/a
Interrupt (program) file identified in HSC:0.PFN
is less than 3, greater than 255, or does not
exist
2
Invalid Mode
n/a
3
Invalid High
Preset
0,1
High preset is less than or equal to zero (0)
2…9
High preset is less than or equal to low preset
4
Invalid Overflow 0…9
High preset is greater than overflow
5
Invalid
Underflow
2…9
Low preset is less than underflow
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive