Internet PLC Forum

General => Technical support => Topic started by: dk_akj on April 28, 2004, 11:50:49 AM

Title: Arguments to custom functions
Post by: dk_akj on April 28, 2004, 11:50:49 AM
Hi.

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

Regards
Anders
Title: Re:Arguments to custom functions
Post by: support 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.
Title: Re:Arguments to custom functions
Post by: dk_akj on April 28, 2004, 10:31:56 PM
Thanks

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

Anders
Title: Re:Arguments to custom functions
Post by: support 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.
Title: Re:Arguments to custom functions
Post by: PLCstar on May 04, 2004, 11:23:13 AM
It would be nice to have the old TRACE feature.

Remember those old BASIC days....lol