hom file with output on/off help
Moderator: cnckeith
-
- Posts: 36
- Joined: Sat Feb 03, 2018 12:12 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
hom file with output on/off help
Hey guys,
Im back working on my CNC.
On my hom file i am using 3 outputs to close/open relays (optocouplers really) for my switches.
If i toggle on/off manually via alt+i (i/o map screen) it works. The motors moves/disables how i planned it to be.
Now when i incorporate the Mcodes “M94/3/4/5 etc” and “M95”
to my hom file it doesn’t turn on or off the designated outputs.
HELP!
By the way, on the wizard i kept the needed outputs as “OUTPUT #” —- maybe this is where i went wrong? Should i change them to something?
Thanks!
Im back working on my CNC.
On my hom file i am using 3 outputs to close/open relays (optocouplers really) for my switches.
If i toggle on/off manually via alt+i (i/o map screen) it works. The motors moves/disables how i planned it to be.
Now when i incorporate the Mcodes “M94/3/4/5 etc” and “M95”
to my hom file it doesn’t turn on or off the designated outputs.
HELP!
By the way, on the wizard i kept the needed outputs as “OUTPUT #” —- maybe this is where i went wrong? Should i change them to something?
Thanks!
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Site Admin
- Posts: 8942
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: hom file with output on/off help
hello. we are good at tech support but we don't have a crystal ball!:-) please at least post a report.zip file
better yet follow the posting instructions here.. viewtopic.php?f=60&t=1043
better yet follow the posting instructions here.. viewtopic.php?f=60&t=1043
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 36
- Joined: Sat Feb 03, 2018 12:12 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: hom file with output on/off help
Hi Keith!
I will post my hom file tomorrow as it is in the shop. Also, will try and post a report when i figure out to to generate one.
Anyway, in a nutshell I placed M94/3 to make it active also output 4 and 5. Also within the hom file i used M95 when im not using it anymore. Checking the i/o map there none of the outputs went active or deactivated. One thing that was funny though, i have a solenoid connected on output 1 as NO and during the hom script output 1 turned on and off but im not sure which M94 and M95 did that. Taking out the M94 and 95 also did not active the solenoid on Out1.
I will post my hom file tomorrow as it is in the shop. Also, will try and post a report when i figure out to to generate one.
Anyway, in a nutshell I placed M94/3 to make it active also output 4 and 5. Also within the hom file i used M95 when im not using it anymore. Checking the i/o map there none of the outputs went active or deactivated. One thing that was funny though, i have a solenoid connected on output 1 as NO and during the hom script output 1 turned on and off but im not sure which M94 and M95 did that. Taking out the M94 and 95 also did not active the solenoid on Out1.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 36
- Joined: Sat Feb 03, 2018 12:12 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: hom file with output on/off help
I have a slave axis that im daisy chaining to keep a 4th rotary axis.
Now my problem is squaring the gantry and im trying to acheive it by using two prox switches. I connected opto couplers to the outputs to control which motor will move (either main or slave or both) so i can home them individually to square up the gantry.
Now my problem is squaring the gantry and im trying to acheive it by using two prox switches. I connected opto couplers to the outputs to control which motor will move (either main or slave or both) so i can home them individually to square up the gantry.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 9953
- Joined: Tue Mar 28, 2017 12:01 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Location: Mesa, AZ
Re: hom file with output on/off help
Post the report, not just the .hom file.mael wrote: ↑Fri May 11, 2018 11:35 am Hi Keith!
I will post my hom file tomorrow as it is in the shop. Also, will try and post a report when i figure out to to generate one.
Anyway, in a nutshell I placed M94/3 to make it active also output 4 and 5. Also within the hom file i used M95 when im not using it anymore. Checking the i/o map there none of the outputs went active or deactivated. One thing that was funny though, i have a solenoid connected on output 1 as NO and during the hom script output 1 turned on and off but im not sure which M94 and M95 did that. Taking out the M94 and 95 also did not active the solenoid on Out1.
The .hom file will be in the report.
Marty
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
We can't "SEE" what you see...
Mesa, AZ
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 36
- Joined: Sat Feb 03, 2018 12:12 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: hom file with output on/off help
Hey Keith and Marty
Attached is the report.
Many thanks! I hope to be up and running after the weekend. I will post photos of my build soon.
Attached is the report.
Many thanks! I hope to be up and running after the weekend. I will post photos of my build soon.
- Attachments
-
- report_38D2697CAB88-0126180600_2018-05-12_15-06-48.zip
- (163.87 KiB) Downloaded 105 times
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 9953
- Joined: Tue Mar 28, 2017 12:01 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Location: Mesa, AZ
Re: hom file with output on/off help
Can you please recap what you are trying to accomplish with the home file? Sequence of events?
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
We can't "SEE" what you see...
Mesa, AZ
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 36
- Joined: Sat Feb 03, 2018 12:12 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: hom file with output on/off help
Hey Marty
I will do my best to explain as straight as I can.
I have a slave Y axis that is connected in a dasiy chain (i am going to use a 4th axis rotary later on).
Take no regard of my Z and X home as it is fine and working.
Now i have 3 relays (optocouplers) connected to the 3 outputs; namely 3,4 and 5.
They are suppose to break the connection from the acorn to the drivers or close the connection as desired.
Now my Y homing sequence is as follows:
1) 2 out 3 of the switches close so both motors will find the home switch (regardless which side is off)
2) another set of switches will close while another will open thus breaking the connection to one of the motor making only the slave motor to move and find the home switch
3) same as #2 but this time only the main motor will move to find home switch
4) switches goes back to normal open and close positions for normal operation (both motors on) then offsets some distance from home switch then set machine coordinates to zero
If i manually toggle on/off the switches via i/o map I know that the switches work and I can move either the slave or main motor individually. The problem is that I cant seem to toggle them on or off with the M94 or 95. Other funny thing is that i have a solenoid connected on output 1 and with the existing HOM file and homing all, the solenoid (output1) seems to ON and OFF during homing sequence. Its like either (M94/3 or 4 or 5) is doing something to output 1.
I will do my best to explain as straight as I can.
I have a slave Y axis that is connected in a dasiy chain (i am going to use a 4th axis rotary later on).
Take no regard of my Z and X home as it is fine and working.
Now i have 3 relays (optocouplers) connected to the 3 outputs; namely 3,4 and 5.
They are suppose to break the connection from the acorn to the drivers or close the connection as desired.
Now my Y homing sequence is as follows:
1) 2 out 3 of the switches close so both motors will find the home switch (regardless which side is off)
2) another set of switches will close while another will open thus breaking the connection to one of the motor making only the slave motor to move and find the home switch
3) same as #2 but this time only the main motor will move to find home switch
4) switches goes back to normal open and close positions for normal operation (both motors on) then offsets some distance from home switch then set machine coordinates to zero
If i manually toggle on/off the switches via i/o map I know that the switches work and I can move either the slave or main motor individually. The problem is that I cant seem to toggle them on or off with the M94 or 95. Other funny thing is that i have a solenoid connected on output 1 and with the existing HOM file and homing all, the solenoid (output1) seems to ON and OFF during homing sequence. Its like either (M94/3 or 4 or 5) is doing something to output 1.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 36
- Joined: Sat Feb 03, 2018 12:12 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: hom file with output on/off help
Ok, i’ve recently upgraded to 4.12 in hopes this would solve this problem but still to no avail.
Again, my output 1 is connected to the solenoid. I tried the MDR typing in M94/1 and i checked the i/o map and to my surprise turned on these output pins on the attached photo.
Also, i check the macro for M7 (which should turn on the mist) and iv seen that it does not use M94/1?
Help!
Again, my output 1 is connected to the solenoid. I tried the MDR typing in M94/1 and i checked the i/o map and to my surprise turned on these output pins on the attached photo.
Also, i check the macro for M7 (which should turn on the mist) and iv seen that it does not use M94/1?
Help!
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
Re: hom file with output on/off help
Keep in mind that none of the M function bits (M94/1-M94/128) does not correlate to output 1 or even mfunc1.mac It is perfectly acceptable to write an mfunction such as M10 (mfunc10.mac) which contains M94 /22
The Acorn has default macros for turning on and off general purpose outputs as listed below.
M61-M68 turn on OUTPUT1-OUTPUT8 respectively M94/61-M94/68
M81-M88 turn off OUTPUT1-OUTPUT8 respectively M95/61- M95/68
You will need to use the Wizard to assign your outputs in the PLC
The Acorn has default macros for turning on and off general purpose outputs as listed below.
M61-M68 turn on OUTPUT1-OUTPUT8 respectively M94/61-M94/68
M81-M88 turn off OUTPUT1-OUTPUT8 respectively M95/61- M95/68
You will need to use the Wizard to assign your outputs in the PLC
(Note: Liking will "up vote" a post in the search results helping others find good information faster)