Hello Guest it is May 15, 2021, 06:38:53 PM

Author Topic: Get PMC to read #Vars or set #Vars to custom RegFile var to see Line # in PMC?  (Read 1045 times)

0 Members and 1 Guest are viewing this topic.


I've been working in the PMC Editor to utilize some of the software's PLC functionality to do a number of things, and I'd like to be able to access the current Cycle Line Number in the registry in order to trigger actions based on what line number I am on.

I'd be using the {READ REG} item in PMC to access the #Variable, but {READ REG} can only access core/global, core/inst, gRegs, iRegs, etc, everything but the #Variables. If I could set a custom global registry variable to a #Variable that could work.

Anybody have any insight for this? Thanks
While I'm at it, if anyone knows how to perhaps control current Line # via the PMC that'd help greatly. I'm doing a little manipulation via Block Delete functions but to be able to perform things like the buttons in File Ops that'd be awesome.