OK, you added a new "keyword", #defineLocal. How do you use it?
- The text "#defineLocal" is highlighted by the syntax highlighter.
- Clicking on #defineLocal" does not bring up any "keyword helps"
- #defineLocal" is not in the list of "keyword helps"
- The TL7ReferenceAddendum.pdf mentions the #defineLocal, but gives no hint or example of how to use it.
Ok. So I'm taking guesses. I wrote the following custom function (one of a series of tests):
#defineLocal ILocal %[1]%
For ILocal = 1 to 10
print #1 ILocal
next
[/color]
I wrote ladder logic that could invoke the custom function (I know about the compiler optimization for orphaned functions).
If I run the "Compile Only" option, the code compiles without complaint (no syntax error).
If I comment out the #defineLocal line, the code fails to compile (as it should). This suggests that my usage of the #defineLocal is pretty close to what the compiler expects.
If I click on the "Run (All I/O Reset) menu, the simulator does not run and no error messages are presented. The presence of #defineLocal breaks the simulator!
OK. So how was this #defineLocal supposed to be used?
Gary D.