Internet PLC Forum

General => Technical support => Topic started by: John on September 21, 2004, 11:55:52 AM

Title: Calculations and subroutines
Post by: John on September 21, 2004, 11:55:52 AM
I am just beginning to look over the manual and programming software... so I have a couple of questions.

Am I correct in assuming that to do calculations (multiply, add, divide, or equations) you would need to write special functions and call them. This would also apply to comparisions and limit statements?

Can I divide my ladder logic program in to subroutines?

Thanks,
Johh
Title: Re:Calculations and subroutines
Post by: support on September 22, 2004, 11:51:27 AM
Yes, all computations and comparison statements are handled in custom functions written using TBASIC.

You can make a ladder section as subroutine. Ladder Logic is one contiguous program but Custom functions can be called as subroutine as often as you like from another custom functions.