Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 04:34:23 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: SubRoutines  (Read 450 times)
jneill
Newbie
*
Posts: 7


« on: March 06, 2011, 09:12:56 am »

 Tongue  Can a subroutine be nested within a subroutine?

Example:
           Main Program .....

           .............(GTS/K1)
           .............(end)
         
           Sbr(K1
           .............(GTS/K1)
           .............(RT)
           .............(GTS/K2)
           .............(RT

           .............(RT)

I know and appologize for the cruedness, but I am sure you all get the picture

Thanks!
     
Logged
b_carlton
Internal Dev
****
Posts: 388



WWW
« Reply #1 on: March 06, 2011, 10:37:12 am »

Yes but with this warning as noted in the GTS instruction

Quote
The GTS instructions can be nested up to 8 levels

So you can't do large recursive things
Logged

An output is a PLC's way of getting its inputs to change.
Controls Guy
Internal Dev
****
Posts: 1134


Darth Ladder


« Reply #2 on: March 29, 2011, 03:55:15 pm »

I'm pretty sure it's a bad idea to call K1 from WITHIN K1. Grin
Logged

I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM