Posted 21 Dec 2018 I am pretty new to Automation Direct. This is my first project programming in Direct Soft 6. Is there a way to make subroutines? Share this post Link to post Share on other sites
Posted 22 Dec 2018 Yes, but it's been 5 years since anyone made me use DirectLogic PLCs. I found it in the user manual on the CD. If I remember correctly they did not call them subroutines but that's the way it worked. Share this post Link to post Share on other sites
Posted 22 Dec 2018 (edited) The subroutines are written after the main code - after the first END instruction. Each subroutine begins with a SBR box in the left rail. It is identified by a constant (eg K1) and that constant is used in the calling GTS in the main part of the program (no nicknames). The subroutine is ended with a no conditioned RT command in the output column. If you need a conditioned return (RTC) that is allowed before the RT rung but the RT rung must exist. No parameters are passed in the JSR or the RT. Edited 22 Dec 2018 by b_carlton 1 person likes this Share this post Link to post Share on other sites