Gday Ralph
The problem Peter is trying to overcome is explained in the bottom para of his initial post, and is the same one i hit.
When doing the same function multiple times, it is more efficient to build a subroutine. However, if one of the "variables" in that subroutine is a port, yr stuffed.
By referencing the reqd port the way described, you can set a std integer variable before entering the subroutine, thus bypassing the problem.
However, it doesnt always work ( according to Melanie ). But it does work for simple on/off type stuff.
Andrew
Bookmarks