Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: rellimmot on September 14, 2017, 05:20:21 PM

Title: Get PMC to read #Vars or set #Vars to custom RegFile var to see Line # in PMC?
Post by: rellimmot 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
Title: Re: Get PMC to read #Vars or set #Vars to custom RegFile var to see Line # in PMC?
Post by: rellimmot on September 14, 2017, 05:36:49 PM
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.