Cycle start external button (working)
Moderator: cnckeith
-
- Posts: 353
- Joined: Wed Jan 23, 2019 4:19 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 80F5B5B92C3A-0213236854
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Cycle start external button (working)
On the video Amir did he used the probe input. I have both the probe and tool touch off inputs used, but I do have some open inputs. I would like to use input 4 but I can not call it probe or tool touchoff. I have watched the video a few times and located the source file. I'm wondering what to call the input so it will not create an issue.
Last edited by Ken Rychlik on Thu May 30, 2019 4:44 pm, edited 1 time in total.
Ken
-
- Posts: 667
- Joined: Fri Nov 30, 2018 1:04 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Thorp WI
Re: Cycle start external button question
Hey Ken,
I have an external button working well. Set input #4 to unused and NC if your button is NO (yes, NC). For some strange reason it has to be inverted otherwise the Cycle Start buttons on the MPG and on screen won't work.
Check out my last two posts (and others) on the second page here. viewtopic.php?f=60&t=2957&start=10
I have an external button working well. Set input #4 to unused and NC if your button is NO (yes, NC). For some strange reason it has to be inverted otherwise the Cycle Start buttons on the MPG and on screen won't work.
Check out my last two posts (and others) on the second page here. viewtopic.php?f=60&t=2957&start=10
Scott
-
- Posts: 6
- Joined: Tue Apr 16, 2019 4:23 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Cycle start external button question
Ken: What are you using your input button for? You said you are hooking a button to an unused input but I feel unclear to the purpose. You can name your new variable whatever you want as long as it isn't the same as any other one defined (the compiler should tell you when that happens). If your button is going to start a process that already exists, then 4:10 of Amir's video will be the most useful to you. If it's for something new, then you will need to add the code to use the input yourself.
-
- Posts: 353
- Joined: Wed Jan 23, 2019 4:19 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 80F5B5B92C3A-0213236854
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Cycle start external button question
I have two of the sections done. I name changed input 4 from lube ok to cyclestartPB I also added the cyclestartPB to the " if then do line"
I will go back and change it to unused and the opposite logic on the switch (thanks)
The final part he did was unbracket the input on line 376 in my pic, but I didn't know if I should unbracket or use one of the other input names below.
I will go back and change it to unused and the opposite logic on the switch (thanks)
The final part he did was unbracket the input on line 376 in my pic, but I didn't know if I should unbracket or use one of the other input names below.
Ken
-
- Posts: 6
- Joined: Tue Apr 16, 2019 4:23 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Cycle start external button question
He uncommented the "ProbeTripped" on INP769 because he needed to have a "ProbeTripped" (3:27) variable after removing the input. If you didn't move your "LubeOk" to another input, you will need to make sure the MEM version is uncommented, and that in the "Configurable IO Section" you uncomment the "IF True THEN SET LubeOk" to make sure you don't have a continuous lube fault.
-
- Posts: 667
- Joined: Fri Nov 30, 2018 1:04 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Thorp WI
Re: Cycle start external button question
That's not needed when using "Unused" and just editing the Cycle Start logic.
My reason for an external Cycle Start button (located on the end of the gantry where I'm usually standing) is that I do a lot of multiple parts/blanks, where I'll park the machine off to the side and wait while swapping blanks and then hit the button to loop back (GOTO NXXX) to continue. Wash rinse repeat multiple times until finished and Cycle Cancel.
My reason for an external Cycle Start button (located on the end of the gantry where I'm usually standing) is that I do a lot of multiple parts/blanks, where I'll park the machine off to the side and wait while swapping blanks and then hit the button to loop back (GOTO NXXX) to continue. Wash rinse repeat multiple times until finished and Cycle Cancel.
Scott
-
- Posts: 353
- Joined: Wed Jan 23, 2019 4:19 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 80F5B5B92C3A-0213236854
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Cycle start external button question
I have the same desire, as far as a LOT of going back to the keyboard for cycle start and not wanting to carry a wireless device.
So I went back and set input 4 to unsued, NC even though my sw is N/O
Then in the src file I changed input 4 from unsed to cyclestartPB. The Same cyclestartPB is in the "if then do" area
Input 4 is red on the screen, and goes green when the button is pushed.
I tried to un-comment out the probe tripped line as shown in the pic.
Still no joy yet.
So I went back and set input 4 to unsued, NC even though my sw is N/O
Then in the src file I changed input 4 from unsed to cyclestartPB. The Same cyclestartPB is in the "if then do" area
Input 4 is red on the screen, and goes green when the button is pushed.
I tried to un-comment out the probe tripped line as shown in the pic.
Still no joy yet.
Ken
-
- Posts: 667
- Joined: Fri Nov 30, 2018 1:04 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Thorp WI
Re: Cycle start external button question
Have you done the "Compile" part after making changes to the PLC? Also, a restart of both CNC12 and Acorn.
Scott
-
- Posts: 353
- Joined: Wed Jan 23, 2019 4:19 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 80F5B5B92C3A-0213236854
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Cycle start external button question
Not after making the last changes. Let me do that.
So should I leave the ; before the probe tripped?
So should I leave the ; before the probe tripped?
Ken
-
- Posts: 667
- Joined: Fri Nov 30, 2018 1:04 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Thorp WI