Page 1 of 1
Aux1 for 4thAxis clamp plc
Posted: Wed Jan 17, 2024 1:10 pm
by Houseman303

- plc
M10 and M11 work via mdi. Now I want to activate M10 via Aux1 of the jog panel. I tried with parameter 188 and value 1011, without success. Now I'm thinking about programming it in the PLC. I think something is still missing.

- mfunc10
Re: Aux1 for 4thAxis clamp plc
Posted: Wed Jan 17, 2024 3:40 pm
by cnckeith
post a fresh report.zip so we can see your setup and plc program
are you using a VCP or hard panel?
macro programming manual is here, how to interact with an output is on page 13
and vcp programming manual is here, how to run a macro directly from a button is on page 39
Re: Aux1 for 4thAxis clamp plc
Posted: Thu Jan 18, 2024 12:50 pm
by Houseman303
I have programmed aux1 in the plc, when pressing aux1 the LED changes state but the output is not activated. I can switch the output with m10 via mdi. I also swapped the worklight with the clamp as a test, and the output for the worklight was then activated with aux1.
Re: Aux1 for 4thAxis clamp plc
Posted: Sat Jan 20, 2024 2:48 am
by Houseman303
solved
Re: Aux1 for 4thAxis clamp plc
Posted: Mon Feb 05, 2024 10:01 pm
by LinkCNC
How was the issue solved?
Re: Aux1 for 4thAxis clamp plc
Posted: Tue Feb 06, 2024 1:09 am
by Houseman303
M10 is only allowed in mdi and in the run program. In standby, Aux1 now switches an additional relay and bridges the actual clamping relay. If you now start mdi or a program, this bridging relay will be deactivated again.
Re: Aux1 for 4thAxis clamp plc
Posted: Tue Feb 06, 2024 5:25 am
by LinkCNC
OK, thanks.
I was able to find a way to allow an M-code and a VCP button control the same output....
Code: Select all
IF M38_SV || Aux1LED_O THEN (OUT4)
IF SkinAux1_M_SV THEN (Aux1PD_PD)
IF (Aux1PD_PD ^ Aux1LED_O) THEN (Aux1LED_O)
Unfortunately this results in the M-code and VCP button working independently of each other.
That is, an output can only be turn OFF by the method that turned it ON.
Ideally the ON or OFF would happen regardless which method was used, and the button LED would always reflect the output state.
If any expert PLC programmers know how to achieve this, please share

Re: Aux1 for 4thAxis clamp plc
Posted: Tue Feb 06, 2024 8:06 pm
by cncsnw
Using your PLC definitions, not mine:
Code: Select all
IF SkinAux1_M_SV THEN (Aux1PD_PD)
IF M38_SV ^ Aux1PD_PD THEN (M38_SV), (Aux1LED_O), (OUT4)
Re: Aux1 for 4thAxis clamp plc
Posted: Wed Feb 07, 2024 12:58 am
by LinkCNC
Excellent!
Worked a treat.
Thanks for taking the time to share.