In SX Microcontrollers, SX/B Compiler and SX-Key Tool, transmon wrote: Trying to write in code that controls waste oil heater, I am using a DS2760 thermocouple and a SX28 that , what I would like to do Is set a output high and then turn it off and stop the program when the temp gets over 140 C degrees . The SX dose not have a Binary operator > greater than which is what I have used in the past with basic Stamp. If I use the code in the SXB editor it runs but wont work. Shutdown is a Sub that turns off the pin that drives a AC relay. Thanks David Basic code that works ======== IF tempF > 340 THEN LOW OT1 SXB code ================ IF tempC => 140 GOTO Shutdown ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=315199 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)