Hello Guest it is January 24, 2020, 05:22:23 AM

Author Topic: pmc / plc  (Read 211 times)

0 Members and 1 Guest are viewing this topic.

Offline Bill_O

*
  •  250 250
    • View Profile
pmc / plc
« 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
Re: pmc / plc
« Reply #1 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
My wife left with my best friend...
     and I miss him!
Re: pmc / plc
« Reply #2 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
We never have the time or money to do it right the first time, but we somehow manage to do it twice and then spend the money to get it right.

Offline Bill_O

*
  •  250 250
    • View Profile
Re: pmc / plc
« Reply #3 on: February 26, 2019, 08:06:43 AM »
Mike,

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

Bill
Re: pmc / plc
« Reply #4 on: February 26, 2019, 05:53:33 PM »
Hi Bill,
Please let us know how you make out.


Mike
We never have the time or money to do it right the first time, but we somehow manage to do it twice and then spend the money to get it right.

Offline Bill_O

*
  •  250 250
    • View Profile
Re: pmc / plc
« Reply #5 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