Advanced Search

Search Results (Searched for: )

  • tommylight
  • tommylight's Avatar
20 Nov 2024 15:53

How to configure pause/resume over pin 10 of parallel port?

Category: HAL

Spindle.n.on
That should be the hal pin controlling the spindle (on phone can not check).
If using later versikn of LinuxCNC, the spindle on gcode is
M3 S24000 $0
S24000 is the RPM
$0 is spindle 0 of the first installed spindle as there can be several spindles.
One thing to keep in mind, if you set just the spindle on pin, it should just turn the spindle on, but if you do have a spindle pwm pin, then the spindle will not trun on from gcode without the speed value included.
! Means active low in 3d printers :)
Active low is whatever signal sign or name with the dash above.
What GUI are you using?
  • PCW
  • PCW's Avatar
20 Nov 2024 15:46
Replied by PCW on topic LinuxCNC for lathe questions

LinuxCNC for lathe questions

Category: General LinuxCNC Questions

I can answer some of the hardware questions:

2: 600 PPR is fine (LinuxCNC is not counting the pulses, the 7I96S hardware is)
3: Yes Z is the 1 PPR signal (assuming the encoder is geared 1:1 with the spindle)
4. The 7I96S has 4 MPG encoders available on its isolated inputs so if you have enough
    free inputs for limit/home/probe/etc you should not need a 7I73 (each MPG uses 2 pins)
  • sk_linuxcnc
  • sk_linuxcnc
20 Nov 2024 15:39

Help: configure a Servo motor with (PUL/DIR) as a Spindle by Par-port stepconfig

Category: StepConf Wizard

how should i attain the maximum possible rotational speed on my spindle?

my current settings are:
[SPINDLE_0]
SCALE = 6400
MAX_VELOCITY = 20000.0
MAX_ACCELERATION = 40000
STEPGEN_MAXVEL = 25000.00
STEPGEN_MAXACCEL = 40000
DIRSETUP = 10000
DIRHOLD = 10000
STEPLEN = 5000
STEPSPACE = 5000
STEP_SCALE = 6400

the spindle motor is set to 800 Pulses/rev

when i configure the motor as the axis, the fastest possible speed is apparently a bit higher than i can achieve when configured as a spindle

#*** AXIS_A *******************************
[AXIS_A]
MAX_VELOCITY = 971.590909090909
MAX_ACCELERATION = 36000.0
MIN_LIMIT = -99999999999999.0
MAX_LIMIT = 99999999999999.0

[JOINT_3]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -99999999999999.0
MAX_LIMIT = 99999999999999.0
MAX_VELOCITY = 971.590909090909
MAX_ACCELERATION = 36000.0
STEPGEN_MAXACCEL = 45000.0
SCALE = 17.77777777777778
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.0
#******************************************

Thankyou in advance. looking forward
  • nigelh
  • nigelh's Avatar
20 Nov 2024 15:36
Replied by nigelh on topic Configuring hardware jog buttons

Configuring hardware jog buttons

Category: HAL

Thanks to all
Final working version attached including debounce mods suggested because I hate googling for a fix that ends 'thank you' but keeps the fix secret.
Quite what is different I'm not sure but it works before you home stuff which is what I wanted.
Now I can get on with making the Pendant actually move things rather than move and then jump back to the start position
but that would be another thread I guess.
##  Jog Switches
##  ============

# NB this only works PRIOR to homing. After that use the MPG
setp halui.joint.jog-speed 100

# Use the Mesa driver built in debounce (25mS rather than 25uS)
setp hm2_7i95.0.inmux.00.input-08-slow true
setp hm2_7i95.0.inmux.00.input-09-slow true
setp hm2_7i95.0.inmux.00.input-11-slow true
setp hm2_7i95.0.inmux.00.input-12-slow true
setp hm2_7i95.0.inmux.00.input-14-slow true
setp hm2_7i95.0.inmux.00.input-15-slow true

# Copy the switches to the joint inputs
net jsw-xp hm2_7i95.0.inmux.00.input-08 => halui.joint.0.plus
net jsw-xm hm2_7i95.0.inmux.00.input-09 => halui.joint.0.minus
net jsw-yp hm2_7i95.0.inmux.00.input-11 => halui.joint.1.plus
net jsw-ym hm2_7i95.0.inmux.00.input-12 => halui.joint.1.minus
net jsw-zp hm2_7i95.0.inmux.00.input-14 => halui.joint.2.plus
net jsw-zm hm2_7i95.0.inmux.00.input-15 => halui.joint.2.minus
 
  • spumco
  • spumco
20 Nov 2024 15:30
Replied by spumco on topic Simple lathe question

Simple lathe question

Category: Turning

Yes - with that encoder & index signal LCNC will adjust feed while threading to compensate for spindle speed variations.
  • JT
  • JT's Avatar
20 Nov 2024 14:48
Replied by JT on topic Flex GUI Tutorials

Flex GUI Tutorials

Category: Other User Interfaces

Tutorial 21



JT
  • warwickben
  • warwickben
20 Nov 2024 14:23
Replied by warwickben on topic Simple lathe question

Simple lathe question

Category: Turning

It’s a gear driven lathe and I just don’t want to deal with variable speed , and frying the motor controller etc . Already destroyed a mini lathe motor control board lol. I had made an encoder for the mini with two wheels and two optical sensors. One had like 60 slits and the other had 1 so I under stand that .

For me just turning the spindle on manual and hitting cycle start Is fine for the needs.

I wasn’t sure if I would be able todo threading and Linux CNC would just adjust the feed to compensate for the spindle load etc .
  • langdons
  • langdons
20 Nov 2024 14:04

Latency of parallel port system on decent hardware.

Category: General LinuxCNC Questions

Running "sudo apt update && sudo apt install linuxcnc" gives an error.

I blacklisted the Ethernet port.

Debian has no internet connection.

BTW, the system is a dual boot of Ubuntu 24.04 (my preferred OS) and Debian (for LinuxCNC)
  • langdons
  • langdons
20 Nov 2024 13:59 - 20 Nov 2024 14:01

Latency of parallel port system on decent hardware.

Category: General LinuxCNC Questions

I also unplugged the front audio and USB ports that I do not use.

(The back of the PC has a plethora of ports)

However, now the BIOS complains every boot :(

Whatever, I'll just press f1 every time I boot up to clear the error.
  • Masa
  • Masa
20 Nov 2024 13:59
Homing trouble was created by Masa

Homing trouble

Category: General LinuxCNC Questions

I'm Japanese and I'm posting using Google Translate. Please forgive me if the text is difficult to read.

In the past, I consulted with LinuxCNC2.8.2 about the phenomenon where the HOME_OFFSET operation starts at full speed for a short time when the homing operation starts. The servo amplifier is torque controlled and uses PID control. The servo amplifier is connected to the servo amplifier using an analog output module via EtherCAT. At that time, I was only connecting the JOINT and Encoder Index-enable in the HAL file, but I was advised to connect it to the PID Index-enable, and the problem was solved.

This time, I am using LinuxCNC2.9,3 to create a machine with a similar configuration, and the homing operation starts at full speed for a short time when the HOME_OFFSET operation starts. In the HAL file, Index-enable is connected to JOINT, PID, and Endoder. And the PID module of this version of LinuxCNC has a pin like the AT-PID version used in between. And there is no AT-PID. I remember that Index-enable didn't work well with the previous version of AT-PID. At the time I thought it couldn't be helped since it was for servo adjustment. Is it possible to fix the behavior when entering this HOME-OFFSET? I've looked through various manuals, but I haven't found anything. Is there some information I don't know? Please let me know.

Thank you.
  • langdons
  • langdons
20 Nov 2024 13:57

Latency of parallel port system on decent hardware.

Category: General LinuxCNC Questions

I managed to lower the latency to about 14000ns max jitter by disabling hardware.

I also set the CPU governor to performance.

I will try to disable more hardware to further reduce latency.

Unfortunately, I am unable to modify and BIOS settings because this is an old scrap computer from my high school.
I tried to get the IT person to change the password, but the BIOS login window is broken :(
  • bladekel
  • bladekel
20 Nov 2024 13:57
How to detect M0 pause? was created by bladekel

How to detect M0 pause?

Category: Other User Interfaces

I'm trying to create custom GUI by pyqt5.
Is it possible to detect if pause is caused by M0 ?
I catch the program-paused-changed signal and than control the current_line of gcode_display.
it works if the machine paused after a move.
but if the machine couldnt started to move, the current_line didnt show the M0 line....
G21
F1000
G61
G90
G0 X0 Y0 Z0
M0 ( couldnt detect here with gcode_display.current_line. because it told me that the line is 0 )
G0 X100
M0 ( I detected here because gcode_display.current_line gave me the correct line)
  • slowpoke
  • slowpoke
20 Nov 2024 13:56 - 20 Nov 2024 14:11
Replied by slowpoke on topic LinuxCNC for lathe questions

LinuxCNC for lathe questions

Category: General LinuxCNC Questions

Thank guys, I'm starting to get a few of the blanks filled in. I now have a few more questions:

I read this (quickly)... linuxcnc.org/docs/html/lathe/lathe-user.html
I also watched this video on G76 thread cutting...


Links to other applicable documentation or instructional videos (specific to LinuxCNC lathe operation are welcome.

Now the follow-up questions:
1)  I don't see a problem using the G76 method in the video above except, I'm a hobby guy so it can be months between thread cutting sessions so with my present memory I would pretty much have to watch that video to refamiliarize myself with the various parameters before I could setup for a thread cut. Is there any sort of thread cutting wizard like GUI thing associated with Axis that simply lets you select the thread type for example 3/8-16, starting here, and ending there that then figures out the arguments required for G76?

2) Presently I have a derivative of the Clough42 ELS on my lathe and it uses a Omron 600 pulse/rev quadrature encoder. Assuming I use a MESA 7i96s to get that quadrature encoder signal into LinuxCNC, will the 600 pulse/rev encoder be fine (ie. not overwhelm Linux with too many pulses if operating at say 2000RPM)?

3) Looks like I will need a one pulse per rev sensor on the spindle correct? The Omron encoder I'm using has a Z output, so I will use that I guess.

4) Regarding the 7i96S, eventually I would like to use one or possibly two MPG style encoders to replicate the hand wheels for X and Z, it seems like I will have enough unused pins on the 7i96S, not sure if those inputs can be used for the MPG inputs and what would be involved in decoding the MPG inputs, possibly some logic in the HAL file? 

5) Not sure if I should get a 7i73 for the MPG(s), prefer to keep the hardware to a minimum if I can get away without the 7i73, comments?

6) Regarding X-axis servo. I measured with a peak torque sensor the required torque to do an aggressive cut with a dull HSS tool and peak torque was only 0.5Nm so I'm leaning towards a fairly small servo in the 1Nm range. Do you think this is too small?

7) Last question where can I find appropriate install LinuxCNC install file? I want to see if I can get it running on my RaspberryPi

Much appreciated

 
  • langdons
  • langdons
20 Nov 2024 13:48

How to configure pause/resume over pin 10 of parallel port?

Category: HAL

How does LinuxCNC determine the output of Spindle ON?
  • langdons
  • langdons
20 Nov 2024 13:38

How to configure pause/resume over pin 10 of parallel port?

Category: HAL

I tried the included wizard (stepconf).

The system works now.

Thank you tommylight!

However, I have pin 1 configured as "Spindle ON", but the output on the pin does not change.

What do I do now?
Displaying 17476 - 17490 out of 24295 results.
Time to create page: 0.563 seconds
Powered by Kunena Forum