Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Bill_O on February 25, 2019, 04:45:04 PM

Title: pmc / plc
Post by: Bill_O on February 25, 2019, 04:45:04 PM
I did a pmc program that I thought was very simple.
The attached lua program is what it made.
I made 2 dros in my screen.
One read the register for ESS/Encoder0
The other read register iRegs0/EncRep
Then I made the attached file.
I got nothing.
Does the PMC Editor actually make a PLC program?
I need this to run constantly so want to use a PLC.

Thanks,
Bill
Title: Re: pmc / plc
Post by: joeaverage on February 25, 2019, 05:12:09 PM
Hi,
the PMC editor produces Lua code that runs in the PLC script.

The PMC is for those people who can't or don't want to code in Lua directly but are happy with ladder logic.

Craig
Title: Re: pmc / plc
Post by: TOTALLYRC on February 25, 2019, 06:11:59 PM
Hi Bill,
from the PMC help file,
"Once a PMC module has been generated, it can then be used in the Mach4GUI. To do this, edit the screen and choose the very top screen element in the screen tree manager. Next, find the property called "PMC Objects". Clicking on the elipses button will display a list of defined PMC objects. You can choose one of more PMC objects. "

Let me know if you need any more help. I use the PMC all the time and love it.

Mike
Title: Re: pmc / plc
Post by: Bill_O on February 26, 2019, 08:06:43 AM
Mike,

Thanks for the help.
I will give it a shot in a while.

Bill
Title: Re: pmc / plc
Post by: TOTALLYRC on February 26, 2019, 05:53:33 PM
Hi Bill,
Please let us know how you make out.


Mike
Title: Re: pmc / plc
Post by: Bill_O on February 27, 2019, 08:05:46 AM
Mike,

Sorry I did not say so earlier.
It works great now.
Its amazing how things work when you do everything you are supposed to do.
LOL

Bill