Bench testing new OAK with CNC12
Moderator: cnckeith
Re: Bench testing new OAK with CNC12
I was not referring to the PLC program source file, but rather to the PLC hardware-type selection on the Control Configuration screen.
F1/Setup
F3/Config
"137
F1/Control
Arrow down to "PLC Type"
Press Space until it toggles around to "Standard"
F10/Save
F1/Setup
F3/Config
"137
F1/Control
Arrow down to "PLC Type"
Press Space until it toggles around to "Standard"
F10/Save
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 24
- Joined: Sat Dec 30, 2017 8:56 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Bixby, OK
Re: Bench testing new OAK with CNC12
Thanks for the clarification. I have changed the PLC Source to "Standard"
I still can not read any voltage from the board. I have decided to move on to laying out the board and all the components of the control panel on the back plate. Spending the last week on trying to read spindle voltage has gotten me down.
Even though this question has not been resolved on my end, I will consider it closed for the time being. If anyone sees anything that I have done wrong, please comment on a solution. It will not be hard for me to come back to this place to complete the bench test.
I'm sure I will have many more questions during this installation. I'd like to thank all those who offered solutions for me to try. I hope to be able to give back to the community once I get more experience.
Thanks,
-jason
I still can not read any voltage from the board. I have decided to move on to laying out the board and all the components of the control panel on the back plate. Spending the last week on trying to read spindle voltage has gotten me down.

Even though this question has not been resolved on my end, I will consider it closed for the time being. If anyone sees anything that I have done wrong, please comment on a solution. It will not be hard for me to come back to this place to complete the bench test.
I'm sure I will have many more questions during this installation. I'd like to thank all those who offered solutions for me to try. I hope to be able to give back to the community once I get more experience.
Thanks,
-jason
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 109
- Joined: Mon Jan 15, 2018 1:11 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: Yes
- CNC Control System Serial Number: A900712
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Bench testing new OAK with CNC12
If you want to see if the board is actually trying to output voltage, then do the following:
(I'm assuming you are using a standard OAK plc program)
Go to the Input/output display screen in CNC12 (alt-I from the main screen). Scroll the out display over to the 240's (it should call them SpinAnalogOutBit0, etc)
See if any of the bits are set.
If so, it's trying to output voltage.
If not, it's not.
You can then use PLCDetective (run it from the cncm directory) to track down what is happening there.
You can search for and look at the code lines below, and use watches/etc to see what is happening to the PLC program as cncm runs.
The main code involved in outputting the spindle speed in your case is below, with some elided.
...
// If the spindle needs to be on, then the output speed is stored
IF SpinAutoModeLED THEN SpinSpeedCommand_FW = SV_PC_COMMANDED_SPINDLE_SPEED
...
// But if it isn't enabled, the speed should always be set to zero for safety.
IF !SpindleEnableOut THEN SpinSpeedCommand_FW = 0.0
...
//Convert RPM to 16 bit float value
IF True THEN SixteenBitSpeed_FW = SpinSpeedCommand_FW/RPMPerBit_FW
<Skipping code to convert from float to scaled int>
...
// Splat the integer into the actual output DAC
IF True THEN WTB SixteenBitSpeed_W SpinAnalogOutBit0 16
(I'm assuming you are using a standard OAK plc program)
Go to the Input/output display screen in CNC12 (alt-I from the main screen). Scroll the out display over to the 240's (it should call them SpinAnalogOutBit0, etc)
See if any of the bits are set.
If so, it's trying to output voltage.
If not, it's not.
You can then use PLCDetective (run it from the cncm directory) to track down what is happening there.
You can search for and look at the code lines below, and use watches/etc to see what is happening to the PLC program as cncm runs.
The main code involved in outputting the spindle speed in your case is below, with some elided.
...
// If the spindle needs to be on, then the output speed is stored
IF SpinAutoModeLED THEN SpinSpeedCommand_FW = SV_PC_COMMANDED_SPINDLE_SPEED
...
// But if it isn't enabled, the speed should always be set to zero for safety.
IF !SpindleEnableOut THEN SpinSpeedCommand_FW = 0.0
...
//Convert RPM to 16 bit float value
IF True THEN SixteenBitSpeed_FW = SpinSpeedCommand_FW/RPMPerBit_FW
<Skipping code to convert from float to scaled int>
...
// Splat the integer into the actual output DAC
IF True THEN WTB SixteenBitSpeed_W SpinAnalogOutBit0 16
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 24
- Joined: Sat Dec 30, 2017 8:56 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Bixby, OK
Re: Bench testing new OAK with CNC12
DannyB -
Thank you. It looks like none of the outputs are set to 'green'
these don't seem to be able to be toggled to green - so I assume that I need to do that elsewhere.
I'm going to have to read up on PLC detective and how to use it. I see the 'watch' tab, but I do not understand what the program does or how to use it, so further reading seems to be needed.
In your opinion, is this part of the bench test necessary? Others in this thread suggest that I just move past it since the board is successfully communicating with my computer - and that's the most important part of the bench test. I can't even get past the MDI input setting the spindle with M3. I get a fault so the block doesn't run. I just figured since the block isn't running, i'm not getting the voltage returned.
thanks for the help.
-jason
Thank you. It looks like none of the outputs are set to 'green'
these don't seem to be able to be toggled to green - so I assume that I need to do that elsewhere.
I'm going to have to read up on PLC detective and how to use it. I see the 'watch' tab, but I do not understand what the program does or how to use it, so further reading seems to be needed.
In your opinion, is this part of the bench test necessary? Others in this thread suggest that I just move past it since the board is successfully communicating with my computer - and that's the most important part of the bench test. I can't even get past the MDI input setting the spindle with M3. I get a fault so the block doesn't run. I just figured since the block isn't running, i'm not getting the voltage returned.
thanks for the help.
-jason
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 9955
- 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: Bench testing new OAK with CNC12
The bench test procedure runs fine. You likely misconfigured something.
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)
-
- Community Expert
- Posts: 3544
- Joined: Tue Mar 22, 2016 10:03 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192 - DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Boston, MA
- Contact:
Re: Bench testing new OAK with CNC12
Jason,
Can you post a photo of your actual bench test setup showing all of your components and the wiring between them? I have successfully run the bench test on V4.14 on both an Oak and AllIn1DC. The bench test setup is exactly the same for both and is the same as CNC11.
There is something configured wrong somewhere, we just need to track it down.
Can you post a photo of your actual bench test setup showing all of your components and the wiring between them? I have successfully run the bench test on V4.14 on both an Oak and AllIn1DC. The bench test setup is exactly the same for both and is the same as CNC11.
There is something configured wrong somewhere, we just need to track it down.
Cheers,
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 9955
- 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: Bench testing new OAK with CNC12
Did you do as Marc suggested? Marc does know what he's talking about. Very knowledgeable well respected Centroid Dealer.
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: 24
- Joined: Sat Dec 30, 2017 8:56 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Bixby, OK
Re: Bench testing new OAK with CNC12
Thanks. I really feel like either i'm really dumb and am missing something staring right out me, or there's something that i'm not seeing because of the instructions being for for CNC11.
Let me start from the beginning:
I'm following the instructions on page 19 of the OAK installation manual. The only things currently hooked up to the board are 1) power through the molex connector, 2) 24 vDC from the power supply, 3) shielded network patch cord and 4) the red & black leads to the multimeter. These are the only things that the instruction manual says to hook up for bench testing.
4.1 Bench Test.
1&2: I Entered the software unlock codes. ** I did not enter the the DEMO software unlock since it only lasts 45 days and i know i will not complete this within 45 days, and I do want to try the demo features.
3: set the units, max spindle speed to 3000, changed machine home to 'Jog'
4: changed Jog Panel Required to 'NO' 5: disabled the faults for testing: inputs 1-11and 17-20
6: labeled the axes: set all to 'N' :
8. Clear any existing faults to enter the MDI screen (this is where the first set of problems came in - I could not get to the MDI screen and this was solved in this thread by changing some of the parameters - this is different because CNC11 didn't have the VCP, so there are no instructions in the installation manual on enabling it. I also changed the other parameters suggested early in this thread )
9. Test the spindle: See the instructions below.
I can not successfully run any block of code - I always get error 327:
So. This is where I am. I am only trying to follow the instructions for the bench test. It seems like the only purpose of bench testing is to 1) make sure that the board is communicating successfully with the computer and 2) test the output voltage of the spindle.
I do not think that i'm even getting to the voltage test because it seems like the MDI block is not running because of the 327 fault.
Hope that helps clear up what the problem is, and I hope that someone can tell me what to do next.
thanks everyone. Report attached.
-jason
Let me start from the beginning:
I'm following the instructions on page 19 of the OAK installation manual. The only things currently hooked up to the board are 1) power through the molex connector, 2) 24 vDC from the power supply, 3) shielded network patch cord and 4) the red & black leads to the multimeter. These are the only things that the instruction manual says to hook up for bench testing.
4.1 Bench Test.
1&2: I Entered the software unlock codes. ** I did not enter the the DEMO software unlock since it only lasts 45 days and i know i will not complete this within 45 days, and I do want to try the demo features.
3: set the units, max spindle speed to 3000, changed machine home to 'Jog'
4: changed Jog Panel Required to 'NO' 5: disabled the faults for testing: inputs 1-11and 17-20
6: labeled the axes: set all to 'N' :
8. Clear any existing faults to enter the MDI screen (this is where the first set of problems came in - I could not get to the MDI screen and this was solved in this thread by changing some of the parameters - this is different because CNC11 didn't have the VCP, so there are no instructions in the installation manual on enabling it. I also changed the other parameters suggested early in this thread )
9. Test the spindle: See the instructions below.
I can not successfully run any block of code - I always get error 327:
So. This is where I am. I am only trying to follow the instructions for the bench test. It seems like the only purpose of bench testing is to 1) make sure that the board is communicating successfully with the computer and 2) test the output voltage of the spindle.
I do not think that i'm even getting to the voltage test because it seems like the MDI block is not running because of the 327 fault.
Hope that helps clear up what the problem is, and I hope that someone can tell me what to do next.
thanks everyone. Report attached.
-jason
- Attachments
-
- report_0221190754_2019-03-25_20-51-19.zip
- (202.32 KiB) Downloaded 114 times
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
Re: Bench testing new OAK with CNC12
The VCP "reset" function, and the associated PLC support which use OUT10 ("ResetSet") are new with CNC12 and the VCP.
It appears that your PLC program assumes it is in a "Reset" condition (OUT10 is Green). That in turn sets the fault flag SV_STOP (which is reflected in MEM47 "Stop_M") and prevents MDI from running. It would seem like you should be able to clear this condition by pressing the Reset button on the VCP.
However, if that doesn't work, another way to clear it would be to press and release the real emergency stop button wired to INP11. Except, of course, you don't have one. You could simulate pressing and releasing an emergency stop button by un-inverting, then re-inverting, INP11.
Try that and see if OUT10 and MEM47 change from green (on, fault) back to red (off, no fault).
It appears that your PLC program assumes it is in a "Reset" condition (OUT10 is Green). That in turn sets the fault flag SV_STOP (which is reflected in MEM47 "Stop_M") and prevents MDI from running. It would seem like you should be able to clear this condition by pressing the Reset button on the VCP.
However, if that doesn't work, another way to clear it would be to press and release the real emergency stop button wired to INP11. Except, of course, you don't have one. You could simulate pressing and releasing an emergency stop button by un-inverting, then re-inverting, INP11.
Try that and see if OUT10 and MEM47 change from green (on, fault) back to red (off, no fault).
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 9955
- 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: Bench testing new OAK with CNC12
I forgot I had an OAK, so I downloaded CNC12 V4.14 from here:
http://www.centroidcnc.com/centroid_diy ... v414-D.zip
And I went ahead and did a video showing the software install, setup, including turning off the Spindle Encoder and MPG so the test could proceed.
You will note I had no problems.
If you want to uninstall what you have and start from scratch and follow the video, you should get through.
http://www.centroidcnc.com/centroid_diy ... v414-D.zip
https://youtu.be/u5Di3Ij6xeQ
http://www.centroidcnc.com/centroid_diy ... v414-D.zip
And I went ahead and did a video showing the software install, setup, including turning off the Spindle Encoder and MPG so the test could proceed.
You will note I had no problems.
If you want to uninstall what you have and start from scratch and follow the video, you should get through.
http://www.centroidcnc.com/centroid_diy ... v414-D.zip
https://youtu.be/u5Di3Ij6xeQ
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)