I have a Horner XL6. I am trying to have the touchscreen display from 0~100. with up/ and down arrow button for the user the select the value. This value will then scale down to 0~5V or 0~10 V and output through analog terminal.
How should I go about doing this?
I just need to know which topics to search under the "help" section of Cscape. Then I should be able to figure out from there.
Look into "
Scale" under help.
I've attached a screenshot in order to help.
Basically, you will use an %R (register, type INT) on your screen for your slider.
The register will feed the data to your Analog Output.
The screen shot shows a basic 0-32767 INT type register.
The TOP MIN/MAX can be altered to your needs.
Use MIN=0 and Max=100 (your desired range).
The
BOTTOM MIN/MAX has to be MIN=0, MAX=32767 which is the RAW value sent to your analog output card.
0 will be 0V and 32767 will be 5V (or 10V) out of your card.
The Analog output has to match the one used with your hardware (%AQ009 need to be changed to your actual %AQxxx to match your hardware).
Also, make sure your hardware configuration for the analog output is correct.
Hope this helps.