Internet PLC Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
Internet PLC Forum
»
General
»
Technical support
»
Using Analog Input to control process
« previous
next »
Print
Pages: [
1
]
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
»
Logged
support
Global Moderator
Hero Member
Posts: 3174
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
»
Logged
Email: support@triplc.com
Tel: 1-877-TRI-PLCS
Print
Pages: [
1
]
« previous
next »
Internet PLC Forum
»
General
»
Technical support
»
Using Analog Input to control process