Home
Help
Search
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 22, 2012, 04:34:23 pm
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Host Engineering Forum
>
General Category
>
DirectSOFT
>
SubRoutines
Pages: [
1
]
« previous
next »
Print
Author
Topic: SubRoutines (Read 450 times)
jneill
Newbie
Posts: 7
SubRoutines
«
on:
March 06, 2011, 09:12:56 am »
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
Re: SubRoutines
«
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
Re: SubRoutines
«
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.
Logged
I retract my earlier statement that half of all politicians are crooks. Half of all politicians are NOT crooks. There.
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> MX Technology Preview
=> General Discussion
=> CTRIO
=> DirectSOFT
=> DNLoader
=> DSData
=> EBCs and EBC100s
=> ECOMs and ECOM100s
=> EDRV
=> ERM
=> Ethernet SDK
=> MB-GATEWAY
=> NetEdit
=> Profibus
=> WinPLC
Loading...