Test the program and run the high-speed counter

After you download the HSC program to the controller, test it, and then run the high-speed counter.
To test the program and run the high-speed counter
  1. Connect to the
    Micro800
    controller.
  2. In
    Project Organizer
    , expand
    Programs
    .
  3. Expand your HSC program, and then double-click
    Local variables
    .
    You can see the values of the two HSC outputs: STS (MyStatus) and HSCSTS (MyInfo).
  4. Open the global variable grid by doing one of the following:
    • In
      Project Organizer
      , double-click
      Global Variables
      .
    • In
      Project Organizer
      , select
      Global Variables
      , and then select the
      Enter
      key.
  5. In the
    _IO_EM_DI_05
    row, select the
    Lock
    and
    Value
    checkboxes to force the input to the ON position.
  6. To view the results, open the local variable grid by doing one of the following:
    • In
      Project Organizer
      , expand the HSC program, and then double-click
      Local Variables
      .
    • In
      Project Organizer
      , expand the HSC program, select
      Local Variables
      , and then select the
      Enter
      key.
  7. Expand
    MyAppData
    and
    MyInfo
    .
  8. Turn on the encoder to see the counter count up/down. For example, if the encoder is attached to a motor shaft, then turn on the motor to trigger the HSC count.
  9. Verify that the
    Value
    of the MyStatus variable is 1, which indicates that the HSC is running.
  10. View the counter value in MyInfo.Accumulator.
In this example, once MyInfo.Accumulator reaches a High Preset value of 40, output 0 turns on and the HPReached flag turns on. If MyInfo.Accumulator reaches a Low Preset value of -40, output 1 turns on, and the LPReached flag turns on.
HSC program result
HSC program result
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal