Author Topic: Using Analog Input to control process  (Read 12696 times)

Khalid Baig

  • Guest
Using Analog Input to control process
« on: December 12, 2003, 09:18:47 AM »
How can I use the analog input to control a process? For example when the reading on channel 1 exceeds a given number,  an output is to be turned off.

Further can that given number be a parameter entered in memory?

« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: Using Analog Input to control process
« Reply #1 on: December 12, 2003, 09:29:45 AM »
The TBASIC language supports IF THEN ELSE statements so it is really easy to achieve. E.g.

IF ADC(1) > 2000
   CLRIO  HEAT1      ' HEAT1 is the label name of heat output.
ELSE
   SETIO  HEAT1
ENDIF
  
For more example programs, please visit:

http://www.tri-plc.com/examples.htm
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS