In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdg8934 wrote: You will also get this error if you do not declare your subroutines and functions before your Start: and after the PROGRAM Start. See the SX/B Help file and SX/B Template. ' ======================================= PROGRAM Start ' ======================================= ' -------------------------------------------------------------------- ' Subroutine Declarations ' -------------------------------------------------------------------- Read_Speed SUB 0 ModeA SUB 0 ModeB SUB 0 ModeC SUB 0 ModeD SUB 0 ModeE SUB 0 Breaks SUB 0 ' ------------------------------------------------------------------- ' Program Code ' -------------------------------------------------------------------- Start: ' Initialization code here Main: 'Your main body code here Goto Main ' -------------------------------------------------------------------- ' Subroutine Code ' -------------------------------------------------------------------- ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=182530#m182554 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)