Rockwell Automation Publication 2080-UM002L-EN-E - November 2021
235
Appendix C Quickstarts
MyAppData.PlsEnable
allows the user to either enable o disable the PLS
settings. It should be set to FALSE (disabled) if the MyAppData variable is to be
used.
MyAppData.HscID
allows the user to specify which embedded inputs will be
used depending on the mode and the type of application. See the table
Inputs and Wiring Mapping on page 123
to know the different IDs that can be
used as well as the embedded inputs and its characteristics.
If ID 0 is used, ID 1 cannot be used on the same controller since the inputs are
being used by the Reset and Hold.
MyAppData.HscMode
allows the user to specify the type of operation in which
the HSC will use to count. See
HSC Mode (HSCAPP.HSCMode) on page 127
for
more information about HSC modes. See
for the list available modes.
Modes 1, 3, 5, 7, and 9 will only work when an ID of 0, 2, or 4 is set due to the fact
that these modes use reset and hold. Modes 0, 2, 4, 6, and 8 will work on any ID.
Modes 6…9 will only work when an encoder is connected to the controller. Use
the HSC ID chart as a reference to wire the encoder to the controller.
MyAppData.HPSetting
,
MyAppData.LPSetting
,
MyAppData.OFSetting
, and
MyAppData.UFSetting
are all user-defined variables that represent the
gives an example of a range
of values that can be set for these variables.
IMPORTANT
MyAppData variable has subvariables that determine the settings of the
counter. It is
crucial
to know each one in order to determine how the
counter will perform. A quick summary is provided below but you can also
see
HSC APP Data Structure on page 125
for detailed information.
Table 49 - HSC Operating Modes
Mode
Number
Type
0
Up Counter – The accumulator is immediately cleared (0) when it reaches the high preset. A low preset
cannot be defined in this mode.
1
Up Counter with external reset and hold – The accumulator is immediately cleared (0) when it reaches
the high preset. A low preset cannot be defined in this mode.
2
Counter with external direction
3
Counter with external direction, reset, and hold
4
Two input counter (up and down)
5
Two input counter (up and down) with external reset and hold
6
Quadrature counter (phased inputs A and B)
7
Quadrature counter (phased inputs A and B) with external reset and hold
8
Quadrature X4 counter (phased inputs A and B)
9
Quadrature X4 counter (phased inputs A and B) with external reset and hold