Internet PLC Forum

General => Technical support => Topic started by: Bill on August 02, 2004, 06:50:50 AM

Title: Changing HSCPV with pushbuttons
Post by: Bill 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.
Title: Re:Changing HSCPV with pushbuttons
Post by: support 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.