SWI Trak 1745P - Allin1DC Retrofit

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

Allin1Chris
PLC Expert
Posts: 238
Joined: Wed Jul 31, 2019 12:53 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes

Re: SWI Trak 1745P - Allin1DC Retrofit

Post by Allin1Chris »

KreiderMachine wrote: Thu Jul 10, 2025 5:04 pm Custom PLC issues:

I'm trying to edit my plc, and received a bunch of errors when compiling which I was able to resolve by commenting things out that didn't apply. Finally, it compiled, but when I try booting cnc12, now, it gives a plc checksum error, and exits cnc12.

Attached are the original mpu.plc (mpu-o) as well as the one I modified from the included .src file.

Help?
It looks like you renamed your .src file to mpu.plc if had to guess, and this will not work. You will need to keep your .src file and use mpucomp.exe to compile the .src file into a valid mpu.plc file. Can do this by entering

Code: Select all

mpucomp.exe ProgramName.src mpu.plc
into command prompt, or can use NppExec in Notepad++ to run the command for you to compile the plc.

Reference TB294 Page 9 Steps 4 to 11 to setup Notepad++ to run mpucomp to compile the PLC for you.
KreiderMachine wrote: Thu Jul 10, 2025 9:24 pm Thanks! We used about a half hour of our tech support today, and have the hand wheels working, along with PID tuning for both axes. Because there is a "door closed" switch in the PLC, but I am using the input for something else, I haven't turned on the spindle yet.
Can you send an updated report that includes your most recent PLC additions. What do you have connected to the Door Closed Input?
When requesting support READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043

Please ALWAYS post a FRESH report. To make a report: https://www.youtube.com/watch?v=Ecvg0VJp1oQ.

(We pride ourselves on providing timely solid technical support but, without good information we may not be able to help and/or reply until such information is posted.)

Centroid PLC Tutorial Videos


KreiderMachine
Posts: 95
Joined: Fri Jan 24, 2025 10:59 am
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: Yes
Hickory CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: A901521, A901583
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: SWI Trak 1745P - Allin1DC Retrofit

Post by KreiderMachine »

Thanks, Chris. See Attached.

Your guess was correct. I was able to re-compile following your direction, and so I am back into CNC12.

"Ax1Plus_I" is now the input that used to be 'Door Closed'.

Stop/Go switch works to trigger feed hold, but I'll need to add something in order for it to resume upon the second trigger. (what do I need?)

Jog stick works for 'z' but not 'x' (same for the vcp jog keys) and now the handwheels do not work. By inverting jog stick inputs for x, I can free up the VCP to jog 'x' axis. I can verify appropriate voltage at the inputs on the board when the jog lever is triggered for 'x'. I assume I have done something wrong in the plc.

Spindle will turn on only when manually told to do so from the VFD. The Allin1DC doesn't seem to be able to control it, but I verified the analog 0-10v output using the bench test procedure. There is no spindle fault.

I modified the plc for my 4 gear range sensors, but am not sure I have everything right there.

Thanks,

H



Allin1Chris wrote: Fri Jul 11, 2025 7:47 am
KreiderMachine wrote: Thu Jul 10, 2025 5:04 pm Custom PLC issues:

I'm trying to edit my plc, and received a bunch of errors when compiling which I was able to resolve by commenting things out that didn't apply. Finally, it compiled, but when I try booting cnc12, now, it gives a plc checksum error, and exits cnc12.

Attached are the original mpu.plc (mpu-o) as well as the one I modified from the included .src file.

Help?
It looks like you renamed your .src file to mpu.plc if had to guess, and this will not work. You will need to keep your .src file and use mpucomp.exe to compile the .src file into a valid mpu.plc file. Can do this by entering

Code: Select all

mpucomp.exe ProgramName.src mpu.plc
into command prompt, or can use NppExec in Notepad++ to run the command for you to compile the plc.

Reference TB294 Page 9 Steps 4 to 11 to setup Notepad++ to run mpucomp to compile the PLC for you.
KreiderMachine wrote: Thu Jul 10, 2025 9:24 pm Thanks! We used about a half hour of our tech support today, and have the hand wheels working, along with PID tuning for both axes. Because there is a "door closed" switch in the PLC, but I am using the input for something else, I haven't turned on the spindle yet.
Can you send an updated report that includes your most recent PLC additions. What do you have connected to the Door Closed Input?
Attachments
report_0008DC111213-0127253195_2025-07-11_08-36-52.zip
(950.17 KiB) Downloaded 27 times


Allin1Chris
PLC Expert
Posts: 238
Joined: Wed Jul 31, 2019 12:53 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes

Re: SWI Trak 1745P - Allin1DC Retrofit

Post by Allin1Chris »

KreiderMachine wrote: Fri Jul 11, 2025 9:07 am
Spindle will turn on only when manually told to do so from the VFD. The Allin1DC doesn't seem to be able to control it, but I verified the analog 0-10v output using the bench test procedure. There is no spindle fault.
If i had to guess, this might be because of the left over code under the SafetySwitchInterruptStage, Since nothing is setting SafetySwitch_M it always be false. So would likely go into this error.

Code: Select all

;==============================================================================
   SafetySwitchInterruptStage
;==============================================================================
;IF DoorClosed_I THEN (SafetySwitch_M)
;IF !SafetySwitch_M && (SpinStart_M || KbSpinStart_M || M3_SV || M4_SV)
;  THEN ErrorMsg_W = SAFETY_SWITCH_SPINDLE_MSG, SET ErrorFlag_M

IF !SV_JOB_IN_PROGRESS THEN SET SafetySwitchToolCheck_M
IF !SafetySwitch_M && !SafetySwitchToolCheck_M && SV_JOB_IN_PROGRESS
  && !(M3_SV || M4_SV)
  THEN ErrorMsg_W = SAFETY_SWITCH_OPEN_MSG, SET ErrorFlag_M, SET SafetySwitchToolCheck_M

IF SafetySwitch_M THEN RST SafetySwitchToolCheck_M
I would simply comment out the entire stage since you are no longer using or have a DoorClosed_I Input.
KreiderMachine wrote: Fri Jul 11, 2025 9:07 am
Stop/Go switch works to trigger feed hold, but I'll need to add something in order for it to resume upon the second trigger. (what do I need?)
Will need to add the StopGo_I to (DoCycleStart_SV) in some way, maybe something like this as a quick example.

Code: Select all

IF (CycleStartKey_I || KbCycleStart_M || MpgCycleStart_M || SkinCycleStart_M_SV || (StopGo_I && FeedHoldLED_O))
  THEN (DoCycleStart_SV)
This will only allow the input to start the program while in feedhold though (Using the LED for FeedHold State), if you need something more robust will have to create additional logic for it.
KreiderMachine wrote: Fri Jul 11, 2025 9:07 am
I modified the plc for my 4 gear range sensors, but am not sure I have everything right there.
I see you are setting SpindleRange_W to 1,2,3,or4 based on your inputs. This should be all you need to do for the Gears to work. Ensure you set Parameter 65, 66, and 67 to the correct ratios in CNC12 software though. Can read about the parameters more in Section 11.4.54 of the Lathe Operators Manual.
KreiderMachine wrote: Fri Jul 11, 2025 9:07 am
Jog stick works for 'z' but not 'x' (same for the vcp jog keys) and now the handwheels do not work. By inverting jog stick inputs for x, I can free up the VCP to jog 'x' axis. I can verify appropriate voltage at the inputs on the board when the jog lever is triggered for 'x'. I assume I have done something wrong in the plc.
I noticed you switched around SV_SKIN_EVENT_33 and SV_SKIN_EVENT_43 for the Ax2 Plus/Minus jogging. Just for your information, Parameter 1 allows for different orientations and allows to swap direction of the x direction by adding a 2 to parameter 1. That aside, i do not see anything that is jumping out at me for why the x-axis would not be working. Are you familiar with the PLC Detective? Can look at the jogging code via PLC detective and troubleshoot the issue.

Ensure that the MPG LED is on, when trying to use the MPG Handwheels as well.

Information on PLC Detective can be found here. https://centroidcnc.com/downloads/centr ... kstart.pdf

Hopefully all of that gets you on the right track.
When requesting support READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043

Please ALWAYS post a FRESH report. To make a report: https://www.youtube.com/watch?v=Ecvg0VJp1oQ.

(We pride ourselves on providing timely solid technical support but, without good information we may not be able to help and/or reply until such information is posted.)

Centroid PLC Tutorial Videos


KreiderMachine
Posts: 95
Joined: Fri Jan 24, 2025 10:59 am
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: Yes
Hickory CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: A901521, A901583
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: SWI Trak 1745P - Allin1DC Retrofit

Post by KreiderMachine »

Thanks so much for this. I have updated the .src.
-commented out SafetySwitchInterruptStage
-Added (StopGo_I && FeedHoldLED_O) to 'DoCycleStart_SV' conditions
-switched back SV_SKIN_EVENT_43 and 33.

Unfortunately, I won't be able to proceed furthur for now.
We had a power outage and, afterwards, the Allin1 won't boot.

When still mounted up, I probed the logic power plug to the allin1 (unplugged from controller) and could see it trying and failing to turn on (powers up and immediately shuts down again)

I removed the power supply and bench tested it, learning that it seems to be fine, and so, perhaps has a dead short in of the circuits it supplies.

Computer still boots fine.
Allin1 boots on the bench with nothing connected to it.

Will update.


KreiderMachine
Posts: 95
Joined: Fri Jan 24, 2025 10:59 am
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: Yes
Hickory CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: A901521, A901583
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: SWI Trak 1745P - Allin1DC Retrofit

Post by KreiderMachine »

Update: a limit switch shorted out. Will see about identifying the culprit and getting it replaced.

Life is too short to use cheap limit switches...


KreiderMachine
Posts: 95
Joined: Fri Jan 24, 2025 10:59 am
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: Yes
Hickory CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: A901521, A901583
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: SWI Trak 1745P - Allin1DC Retrofit

Post by KreiderMachine »

Ok, back up and running.

Updated PLC will not compile. Seems that the compiler takes issue with any of the "_I" additions to the definitions. I searched the forum and found someone else with this issue, who you advised to remove this additional tag. I have been through multiple attempts to compile, addressing each issue that the compiler flags, one at a time. After round 3, I'm wondering how this came to be, and if there isn't a more efficient way to clear these errors.

Advice?


KreiderMachine
Posts: 95
Joined: Fri Jan 24, 2025 10:59 am
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: Yes
Hickory CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: A901521, A901583
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: SWI Trak 1745P - Allin1DC Retrofit

Post by KreiderMachine »

'Find and Replace' and I was able to get it compiled. Disregard previous. (Though left here for reference of others.) Updates to follow.


CentroidFrog
Tech Support
Posts: 132
Joined: Wed Jan 29, 2025 9:39 am
Acorn CNC Controller: No
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

Re: SWI Trak 1745P - Allin1DC Retrofit

Post by CentroidFrog »

Fantastic!
Were you able to get the joystick and StopGo button working the way you had hoped?
Be sure to post a fresh report with your update for us.
Want to post your own question?
Check this out first: http://centroidcncforum.com/viewtopic.php?f=60&t=1043
Acorn CNC tech tips: viewforum.php?f=63


KreiderMachine
Posts: 95
Joined: Fri Jan 24, 2025 10:59 am
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: Yes
Hickory CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: A901521, A901583
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: SWI Trak 1745P - Allin1DC Retrofit

Post by KreiderMachine »

Update:

A - I discovered that the limit defeat switches were responsible for the disabled "X" axis jog stick inputs, due to the fact that I was using inputs 5 and 6 for that function. By reversing their state, I now have full use of the jog stick, but the controller onboard LED indicator flashes "4." now at all times. Is there a way to disable that?

B - Both handwheels are working, however, because I reversed the direction of the x-axis using parameter 1, the handwheel now sends the x axis opposite of how we would like. (CCW goes towards X neg, rather than X pos) I'm assuming there is an easy solution for this, but making the encoder counts negative doesn't work (won't allow it).

C - Spindle command still doesn't work. Not sure why. Will investigate tomorrow.

D - @CentroidFrog - I have not quite got the Stop/Go remote doing what I want. I can either have it trigger cycle start, OR Feed Hold, but have yet to make the 'resume' function work on the second trigger of it. I think maybe I need to specify a condition for "FeedHoldLED_O". When I add the " (StopGo && FeedHoldLED_O) condition to 'CycleStart' it just triggers that regardless of the state of the FeedHoldLED. As I'm typing this, I'm wondering if perhaps the 'FeedHoldLED' only applies to the physical operators panel, and not the one on the VCP. I don't have an Operator's Panel on this.
Attachments
report_0008DC111213-0127253195_2025-07-23_17-31-39.zip
(997.13 KiB) Downloaded 3 times


cncsnw
Community Expert
Posts: 4589
Joined: Wed Mar 24, 2010 5:48 pm

Re: SWI Trak 1745P - Allin1DC Retrofit

Post by cncsnw »

I discovered that the limit defeat switches were responsible for the disabled "X" axis jog stick inputs, due to the fact that I was using inputs 5 and 6 for that function. By reversing their state, I now have full use of the jog stick, but the controller onboard LED indicator flashes "4." now at all times. Is there a way to disable that?
No. The Allin1DC will flash '4' if any of INP1 - INP6 are open, without regard to whether all three drive outputs are actually in use.

When possible, I get around that by either not using INP5 and INP6, or using them for things that are closed most of the time (e.g. emergency stop button, spindle drive okay signal, lube okay signal, etc.).

If you don't have the luxury of doing either of those things, you can just ignore the flashing '4'. It does not do any harm.
Both handwheels are working, however, because I reversed the direction of the x-axis using parameter 1, the handwheel now sends the x axis opposite of how we would like. (CCW goes towards X neg, rather than X pos) I'm assuming there is an easy solution for this, but making the encoder counts negative doesn't work (won't allow it).
The simplest solution for that is to change the wiring for the X handwheel encoder, to swap the A and B channels.


Post Reply