234
Rockwell Automation Publication 2080-UM002L-EN-E - November 2021
Appendix C Quickstarts
After adding the variables, your Local Variables table should look like
this:
Assign Values to the HSC Variables
Next, you need to assign values to the variables you have just created. Typically,
a routine is used to assign values to your variables. For illustration purposes,
this quickstart assigns values through the Initial Value column of the Local
Variables table.
1. On the Initial Value field for the MyCommand variable, type 1.
HSC Commands (HScCmd) on page 140
for more information on the
description for each value.
2. Assign values to the MyAppData variables. Expand the list of MyAppData
subvariables clicking the + sign. Set the values of the different
subvariables as shown in the following screenshot.
Table 48 - Variable Data Types
Variable Name
Data Type
MyCommand USINT
MyAppData
HSCAPP
MyInfo
HSCSTS
MyPLS
PLS
MyStatus
UINT
In a real program, you should write a routine to assign values to your
variable according to your application.