SWI Trak 1745P - Allin1DC Retrofit

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

Moderator: cnckeith

Allin1Chris
PLC Expert
Posts: 237
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: 90
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 1 time


Allin1Chris
PLC Expert
Posts: 237
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


Post Reply