adccommunitymod (AutomationDirect) asked a question.

CLICK Subroutines

Created Date: January 21,2010

Created By: Camac

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

Hello All, I have a question regarding subroutines. I had created a call before I found that you are supposed to create the subroutine before. Now I am getting an error about not having a return statement in the subroutine that does not exist. I can't edit it and I can't create it because the program says the name is in use. What a pain. I'm thinking that if I can't edit this thing in order to create the subroutine, then I am going to have to copy my Main logic into a new project and start over. If there is another option, I would love to hear it.


  • adccommunitymod (AutomationDirect)

    Created Date: January 21,2010

    Created by: Tinker

    Hello All,

    I had created a call before I found that you are supposed to create the subroutine before.

    I'm curious how you did that, in version 1.10 and 1.11 of the software one must (as far as i can tell) select the target of the call from a dropdown list of subroutines that allready exist, or create the new subroutine from the call dialog before finishing the call instruction.

    One can, by copying and pasting get a call to a non existant subroutine into a project, which does cause the "no unconditional return " error you describe. However, in version 1.11 (the only one I have installed) one can then create the subroutine, I don't get the name in use error you describe.

    If you are using version 1.0 you might try upgrading. If you are using the latest version I don't know what else you can do since I can't recreate the problem :confused:.

    I suppose you have tried deleting the call (or change it to an OUT or something) then trying to create the subroutine?

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: January 21,2010

    Created by: Camac

    click subroutine issue

    I am using Ver 1.11 of the software. When I drag and drop a call to the output of a rung, the dropdown popup comes up, however when I did not have any souroutine written, there were no entries in the dropdown and I selected Add New Subroutine and entered a name. It did not open an editor window, it simply added the name to the call. Now the program tells me that I cannot use the name when I go to actually create the subroutine because it is in use. It is available in the call window but no where else. The program name is saved somewhere in the project, however it does not appear in the window dropdown in order for me to select it to delete, edit or create it and I don't know of any other way to access the name to create the actual program. Deleteing the call just deletes the call.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: January 21,2010

    Created by: Camac

    Too many hours at the screen

    I just had an epiphany. If I open the Navigation list I can easily pick the name from it and edit the routine. Too many hours in front of this project. Thanks for helping me to correct my thinking, Tinker.

  • adccommunitymod (AutomationDirect)

    Created Date: January 21,2010

    Created by: Camac

    Hello All,

    I have a question regarding subroutines. I had created a call before I found that you are supposed to create the subroutine before. Now I am getting an error about not having a return statement in the subroutine that does not exist. I can't edit it and I can't create it because the program says the name is in use. What a pain. I'm thinking that if I can't edit this thing in order to create the subroutine, then I am going to have to copy my Main logic into a new project and start over. If there is another option, I would love to hear it.

    Expand Post