Author Topic: Calculations and subroutines  (Read 7145 times)

John

  • Guest
Calculations and subroutines
« 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

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Calculations and subroutines
« Reply #1 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.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS