1
Mach4 General Discussion / Get PMC to read #Vars or set #Vars to custom RegFile var to see Line # in PMC?
« on: September 14, 2017, 05:20:21 PM »
Hello,
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
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