Author Topic: Arguments to custom functions  (Read 11543 times)

dk_akj

  • Newbie
  • Posts: 7
    • View Profile
    • LK-tech
Arguments to custom functions
« on: April 28, 2004, 11:50:49 AM »
Hi.

Is it possible to use arguments and returnvalues from custom functions ??

Regards
Anders

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Arguments to custom functions
« Reply #1 on: April 28, 2004, 05:17:40 PM »
No, parameters and return values are passed via global variables. Although it is nice to be able to pass parameters and return values to and from custom function it is difficult to view the parameters and return values during online monitoring.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

dk_akj

  • Newbie
  • Posts: 7
    • View Profile
    • LK-tech
Re:Arguments to custom functions
« Reply #2 on: April 28, 2004, 10:31:56 PM »
Thanks

Another question... Is it possible to monitor a custom function ??

Anders

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Arguments to custom functions
« Reply #3 on: April 30, 2004, 08:17:19 AM »
To a certain exent, you can monitor whether a custom function has been executed by checking on the color of the {CusF} symbol and the last executed function number shown on the online monitoring screen. The most sure footed check of whether a custom function has been executed is to put a "PAUSE" statement where you want the program to halt so that you can examine the values of the internal variable at that instant. The online monitoring continue to work even though the PLC program is halted. You can resume execution by releasing it from the Pause state.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

PLCstar

  • Newbie
  • Posts: 24
  • I'm a ladder logic fool!
    • View Profile
    • Morningstar Home Page
Re:Arguments to custom functions
« Reply #4 on: May 04, 2004, 11:23:13 AM »
It would be nice to have the old TRACE feature.

Remember those old BASIC days....lol