Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started 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
-
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
-
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
-
Mike,
Thanks for the help.
I will give it a shot in a while.
Bill
-
Hi Bill,
Please let us know how you make out.
Mike
-
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