Problem, Remap S for Shizuoka AN-S
- MachoHombre
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
17 Jun 2021 02:25 #212251
by MachoHombre
Problem, Remap S for Shizuoka AN-S was created by MachoHombre
Hello everyone,
I am trying to remap S so that it may work for my Shizuoka AN-S (1979) cnc machine. My machine uses a gear motor that changes the pitch on a variable speed head. This in turn changes the RPM on the spindle.
I have attached a pdf file the explains the intended use of the RPM changer
Pg. 10.1 gives a brief explanation of how RPM changer works.
Pg. 10.3 shows a picture of RPM changer.
Pg. 10.6 explains how RPM changer is intended to be used in Auto Mode.
Problem
Currently, when I issue a M3S900 in MDI the first time, the spindle does not turn on but still performs the setspeed subroutine. This is a problem because the spindle needs to be turning in order for the RPM to be changed.
However, if I command a M3S900 in MDI again, the spindle turns on and then performs the setspeed subroutine as I intended.
setspeed.ngc subroutine
Please see my attached setspeed.txt subroutine.
It is not complete and was only made to test.
Intended setspeed subroutine procedure
1. Turn on spindle
2. Dwell, wait for motor to get up to speed
3. Change RPM to low limit
4. Do some math to calculate move count
5. Move gear motor, in increments, until counter = move count
6. End of subroutine
Hardware:
Mesa 5i25, 7i77, and 7i84 (for extra I/O).
Using Axis.
Thank you.
I am trying to remap S so that it may work for my Shizuoka AN-S (1979) cnc machine. My machine uses a gear motor that changes the pitch on a variable speed head. This in turn changes the RPM on the spindle.
I have attached a pdf file the explains the intended use of the RPM changer
Pg. 10.1 gives a brief explanation of how RPM changer works.
Pg. 10.3 shows a picture of RPM changer.
Pg. 10.6 explains how RPM changer is intended to be used in Auto Mode.
Problem
Currently, when I issue a M3S900 in MDI the first time, the spindle does not turn on but still performs the setspeed subroutine. This is a problem because the spindle needs to be turning in order for the RPM to be changed.
However, if I command a M3S900 in MDI again, the spindle turns on and then performs the setspeed subroutine as I intended.
setspeed.ngc subroutine
Please see my attached setspeed.txt subroutine.
It is not complete and was only made to test.
Intended setspeed subroutine procedure
1. Turn on spindle
2. Dwell, wait for motor to get up to speed
3. Change RPM to low limit
4. Do some math to calculate move count
5. Move gear motor, in increments, until counter = move count
6. End of subroutine
Hardware:
Mesa 5i25, 7i77, and 7i84 (for extra I/O).
Using Axis.
Thank you.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23310
- Thank you received: 4858
18 Jun 2021 15:20 #212336
by andypugh
Replied by andypugh on topic Problem, Remap S for Shizuoka AN-S
Out of interest, do you get the same with
S900
M3
and
S900
M3
?
S900
M3
and
S900
M3
?
Please Log in or Create an account to join the conversation.
- MachoHombre
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
19 Jun 2021 02:06 - 19 Jun 2021 02:14 #212378
by MachoHombre
Replied by MachoHombre on topic Problem, Remap S for Shizuoka AN-S
Hi Andy,
Thanks for the reply. Basically the answer is yes to your question.
Here are the results of two test.
Test 1 (Per your literal instructions) & Test 2 (What I believe you really want me to do)
Test 1 (Per your literal instructions)
Exception: I commented out the G4 P5 after the "M3" in my routine
Procedure
1. Open Axis (Shizuoka-ANS config)
2. Release Axis ESTOP
3. Press Axis Machine Power Button
4. Go to MDI Tab
5. Enter "S900" in MDI command box and press go
6. Enter "M3" in MDI command box and press go
7. Wait for S-REMAP routine to finish
8. Enter "S900" in MDI command box and press go
9. Enter "M3" in MDI command box and press go
Results:
Step 5. Spindle brake relay turns off and routine starts immediately. Spindle does not turn on.
Step 6. Routine is still going. Spindle still has not turned on.
Step 7. Spindle turns on after routine has finished.
Step 8. Routine starts immediately. Spindle stayed on. Brake relay remained off.
Step 9. Routine continues until it finishes.
Axis was closed between tests 1 and 2.
Test 2 (What I believe you really want me to do)
Exception: I commented out the G4 P5 after the "M3" in my routine
Procedure
1. Open Axis (Shizuoka-ANS config)
2. Release Axis ESTOP
3. Press Axis Machine Power Button
4. Go to MDI Tab
5. Enter "S900" in MDI command box and press go
6. Enter "M3" in MDI command box and press go
7. Wait for S-REMAP routine to finish
8. Enter "M5" in MDI command box and press go
9. Enter "S900" in MDI command box and press go
10. Enter "M3" in MDI command box and press go
Results:
Step 5. Spindle brake relay turns off and routine starts immediately. Spindle does not turn on.
Step 6. Routine is still going. Spindle still has not turned on.
Step 7. Spindle turns on after routine has finished.
Step 8. Spindle Stops
Step 9. Spindle turns on and Routine starts immediately. Brake relay turn off immediately as well.
Step 10. Routine continues until it finishes. "M3" does not seem to do anything as is expected.
Thanks for the reply. Basically the answer is yes to your question.
Here are the results of two test.
Test 1 (Per your literal instructions) & Test 2 (What I believe you really want me to do)
Test 1 (Per your literal instructions)
Exception: I commented out the G4 P5 after the "M3" in my routine
Procedure
1. Open Axis (Shizuoka-ANS config)
2. Release Axis ESTOP
3. Press Axis Machine Power Button
4. Go to MDI Tab
5. Enter "S900" in MDI command box and press go
6. Enter "M3" in MDI command box and press go
7. Wait for S-REMAP routine to finish
8. Enter "S900" in MDI command box and press go
9. Enter "M3" in MDI command box and press go
Results:
Step 5. Spindle brake relay turns off and routine starts immediately. Spindle does not turn on.
Step 6. Routine is still going. Spindle still has not turned on.
Step 7. Spindle turns on after routine has finished.
Step 8. Routine starts immediately. Spindle stayed on. Brake relay remained off.
Step 9. Routine continues until it finishes.
Axis was closed between tests 1 and 2.
Test 2 (What I believe you really want me to do)
Exception: I commented out the G4 P5 after the "M3" in my routine
Procedure
1. Open Axis (Shizuoka-ANS config)
2. Release Axis ESTOP
3. Press Axis Machine Power Button
4. Go to MDI Tab
5. Enter "S900" in MDI command box and press go
6. Enter "M3" in MDI command box and press go
7. Wait for S-REMAP routine to finish
8. Enter "M5" in MDI command box and press go
9. Enter "S900" in MDI command box and press go
10. Enter "M3" in MDI command box and press go
Results:
Step 5. Spindle brake relay turns off and routine starts immediately. Spindle does not turn on.
Step 6. Routine is still going. Spindle still has not turned on.
Step 7. Spindle turns on after routine has finished.
Step 8. Spindle Stops
Step 9. Spindle turns on and Routine starts immediately. Brake relay turn off immediately as well.
Step 10. Routine continues until it finishes. "M3" does not seem to do anything as is expected.
Last edit: 19 Jun 2021 02:14 by MachoHombre.
Please Log in or Create an account to join the conversation.
- MachoHombre
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
20 Jun 2021 22:03 #212520
by MachoHombre
Replied by MachoHombre on topic Problem, Remap S for Shizuoka AN-S
Bump
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23310
- Thank you received: 4858
21 Jun 2021 23:28 #212612
by andypugh
Replied by andypugh on topic Problem, Remap S for Shizuoka AN-S
How long does your S routine take?
Any command that you enter in MDI will be queued until the S-remap routine completes.
It is possible that you might be better putting the remap in the M3 command if spindle speed is constant between M3 commands.
Or possibly, handling the gear shifting in a HAL component. (Or, possibly, simply with a HAL PID loop)
Is it allowed to alter the speed setting with the spindle not turning, even?
Any command that you enter in MDI will be queued until the S-remap routine completes.
It is possible that you might be better putting the remap in the M3 command if spindle speed is constant between M3 commands.
Or possibly, handling the gear shifting in a HAL component. (Or, possibly, simply with a HAL PID loop)
Is it allowed to alter the speed setting with the spindle not turning, even?
Please Log in or Create an account to join the conversation.
- MachoHombre
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
25 Jun 2021 06:59 #212880
by MachoHombre
Replied by MachoHombre on topic Problem, Remap S for Shizuoka AN-S
Hi Andy,
The spindle needs to be turning in order for the RPM to be changed. If the spindle is not turning, the mechanism and motor that changes the spindle RPM could be damaged.
However, I believe I found a work around to my problem.
I still remapped S, but now the setspeed subroutine just prompts me to make a manual gear change when I program a high or low speed. Maybe I made something similar to the gearchange hal component.
Once the setspeed subroutine is completed, the spindle turns on, and then I program a separate subroutine "changerpm" that actually changes the RPM according to the programmed S.
Thanks.
The spindle needs to be turning in order for the RPM to be changed. If the spindle is not turning, the mechanism and motor that changes the spindle RPM could be damaged.
However, I believe I found a work around to my problem.
I still remapped S, but now the setspeed subroutine just prompts me to make a manual gear change when I program a high or low speed. Maybe I made something similar to the gearchange hal component.
Once the setspeed subroutine is completed, the spindle turns on, and then I program a separate subroutine "changerpm" that actually changes the RPM according to the programmed S.
Thanks.
Please Log in or Create an account to join the conversation.
Time to create page: 0.060 seconds