Author Topic: Changing HSCPV with pushbuttons  (Read 10899 times)

Bill

  • Newbie
  • Posts: 21
    • View Profile
Changing HSCPV with pushbuttons
« on: August 02, 2004, 06:50:50 AM »
Is it possible to change the preset HSCPV and view the up or down change from the lcd.

What I would like to do is store a  predetermined encoder count value in a datamemory or variable, and be able to increase or decrease this value using a momentary contact switch.  When the encoder value reaches the value in my datamemory or variable, my custom function would be executed.


Thanks for a very good product.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Changing HSCPV with pushbuttons
« Reply #1 on: August 09, 2004, 11:01:11 AM »
The HSC preset value where a custom function will trigger can be changed by HSCDEF. E.g.

  HSCDEF 1,19,A

Variable "A" can be changed by your TBASIC program when interacting with a keypad or push button. Once you execute the HSCDEF as shown above the preset value will be changed.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS