Lathe Spindle Encoder

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

Moderator: cnckeith

promisemachining
Posts: 79
Joined: Thu Nov 17, 2016 2:59 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: 0327060180, T39 A90089, M-39s 3535, M-39s 3770, M400ac/inv, M400ac/atc 10388
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: Yes

Re: Lathe Spindle Encoder

Post by promisemachining »

Success! (This is a friend of Tim's posting this.) The problem was that Windows, by default, was hiding file extensions (for known file types). So the renamed file looked like "compile.cmd" in the cnct folder, but once Show Extensions was enabled, it showed that the file was actually named "compile.cmd.txt". Once we removed the .txt extension, and completed the other updates to the .src file, it compiled fine and worked just as it should!
promisemachining
Posts: 79
Joined: Thu Nov 17, 2016 2:59 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: 0327060180, T39 A90089, M-39s 3535, M-39s 3770, M400ac/inv, M400ac/atc 10388
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: Yes

Re: Lathe Spindle Encoder

Post by promisemachining »

Sirs,
I have gotten my spindle gear proximity switches to read in the staus screen (Alt + I) on lines 13 & 15. I have a 4 speed transimision on this lathe. At the bottom of page 58 of the installation manual shows the switch lay out of the on/off that the software reads. My shifting patern is not the same as what is listed on page 58.
I have,
High Range Medium High Medium Low Low
Input 63 0 0 1 1
Input 64 0 1 0 1
I have been able to get my Medium High and Medium Low to run at the programed speed when I am in the appropriate gear, but the rpm that is programed in high and low are way off. Low runs way to slow and High wants to run too fast. My spindle encoder is acurately displaying rpm's on the computer screen. I have played with the maximum and minimum rpm limits and the gear ratio numbers in the parameters on lines 65-67, but I can not seem to get the High and Low gears to respond even close to the programed rpm.
Is there a way to fix this?
Thank you,
Tim
cncsnw
Posts: 3765
Joined: Wed Mar 24, 2010 5:48 pm

Re: Lathe Spindle Encoder

Post by cncsnw »

In general, you need to write lines into your PLC program that will set the appropriate gear-range indicators in response to your physical switches.

Exactly how that is done depends on your PLC program, and especially on whether you are running CNC7/CNC10, or CNC11/CNC12.

Maybe if you were to remind us what control you are installing; post a report; and tell us exactly which of the many installation manuals you are referring to, someone could offer some more specific advice.
promisemachining
Posts: 79
Joined: Thu Nov 17, 2016 2:59 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: 0327060180, T39 A90089, M-39s 3535, M-39s 3770, M400ac/inv, M400ac/atc 10388
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: Yes

Re: Lathe Spindle Encoder

Post by promisemachining »

CNCSNW,
Sorry for the lack of informaton in my last help request. I have a CNC12D Lathe v4.20 control on this machine. Report is attached. The manual is Centroid Allin1DC Control Installation Manual, CNC CPU combination DC Servo Drive w/PLC and Spindle Control, CNC12 v14.14+. The gear switch on/off chart on page 58 is in the 6.4 Spindle Setup. Parameters 65-67 - Spindle Gear Ratios. The machine is a 2180 Lagun Lathe made in 1990. I have a VFD running the spindle motor and the machine spindle has a 4 speed gear selector.
Attachments
report_0008DC111213-0713202417_2022-05-09_15-04-33.zip
(512.59 KiB) Downloaded 32 times
cncsnw
Posts: 3765
Joined: Wed Mar 24, 2010 5:48 pm

Re: Lathe Spindle Encoder

Post by cncsnw »

The references to PLC inputs "INP63" and "INP64" in that manual are obsolete: those are things that applied to CNC7 and CNC10 system, and have never applied to CNC11 and CNC21 systems such as the Allin1DC.

The relevant section of your PLC program is around lines 2346 - 2356 in your PLC program source:

Code: Select all

; Use input switches, M functions, or other means to determine the gear
; range number (1-4).  For basic mills, look for one low-range switch.

; Default to high range until proven otherwise (fail-safe choice)
IF True_M THEN SpindleRange_W = 4

					  
IF SpinLowRange_I THEN SpindleRange_W = 1
... where SpinLowRange_I was previously defined to be INP13.

Let us suppose that when you wrote:
I have,
High Range Medium High Medium Low Low
Input 63 0 0 1 1
Input 64 0 1 0 1
... you really meant INP13 and INP14; and that you have a switch wired to INP13 that closes when you are in medium-low or low; and that you have a switch wired to INP14 that closes when you are in medium-high or low.

You could change the names on lines 216 - 218 to more accurately describe what your switches do:

Code: Select all

SpinRange2or1_I             IS INP13
SpinRange3or1_I             IS INP14
;spare                      IS INP15
Then you could replace the old line that referenced SpinLowRange_I with the following three lines:

Code: Select all

IF SpinRange3or1_I && !SpinRange2or1_I THEN SpindleRange_W = 3
IF !SpinRange3or1_I && SpinRange2or1_I THEN SpindleRange_W = 2
IF SpinRange3or1_I && SpinRange2or1_I THEN SpindleRange_W = 1
The high-range case is already set as the default, so does not need to be explicitly tested.
promisemachining
Posts: 79
Joined: Thu Nov 17, 2016 2:59 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: 0327060180, T39 A90089, M-39s 3535, M-39s 3770, M400ac/inv, M400ac/atc 10388
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: Yes

Re: Lathe Spindle Encoder

Post by promisemachining »

Sir,
Thank you for the information. I will get with my friend who has been helping me with the PLC things I need to alter and let him have a go at this.
Post Reply