Quick Guide: Subroutine Program

Topic: CL112

Quick Guide for New Users of CLICK Subroutines

After naming a new Subroutine (see Add New Subroutine) but before the Subroutine Program opens, first time users of CLICK Subroutines will encounter the Quick Guide for Subroutines, which contains important information about Subroutines.

  1. A Subroutine Program must have at least one Return instruction to go back to the Main Program.
  2. If a Subroutine Program is not called during the execution of a Program, the Memory Addresses used in the Subroutine Program maintain their previous state.
  3. It is not allowed to nest one Subroutine inside another Subroutine. Subroutines must be called from the Main Program.
  4. The END instruction cannot appear in a Subroutine. An END instruction is required in the Main Program.

Note: You can have up to 986 Subroutine Programs in a CLICK project.

Access Quick Guide from Help Menu

If you do not want to see the Quick Guide each time you create a New Subroutine, click the checkbox on this dialog. The Quick Guide can still be accessed from the Help Menu.

Related Topics:

Add New Subroutine
Call Instruction
End Statement
Return