Can you write to MyLoop.Direction or .ReverseActing or whatever the member is called? I interpreted the other posts to indicate that you could not.
There is no such structure member. That flag is a parameter in the instruction, not in the structure.
Similar with the Algorithm (Position vs. Velocity) Initialization Mode, Error Squared, etc. Those are flag parameters in the instruction - they are not flags in the structure.
Hmmmm. Not liking that very much at all.
Update: OK, looking at the instruction, the stuff that's set there is well chosen, i.e. it's stuff that in 99.99% of all PID applications will never change at runtime. Still, why not make EVERYTHING a struct member and just use the PID instruction as a faceplate to those members? Then if you want to write to them you can.
In DL-Classic and AB, all loop config settings are stored in known, documented locations and changeable at runtime (and I do).