Remora - ethernet NVEM / EC300 / EC500 cnc board

  • vpomerleau
  • Away
  • Junior Member
  • Junior Member
More
07 May 2025 12:22 - 07 May 2025 12:35 #327945 by vpomerleau
Replied by vpomerleau on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Here is what I put in my .Hal file for a standard MPG. This is for EC500 and the switch need to be set to STD MPG on the controller

PS my inputs numbers are not the same as github config.txt, I customize them...

# ###########
# MPG setup # 
# ###########

setp mux4.0.in0 0.0001
setp mux4.0.in1 0.001
setp mux4.0.in2 0.01

# The inputs to the mux4 component
net scale1 mux4.0.sel0 <= remora.input.29 #X10IN
net scale2 mux4.0.sel1 <= remora.input.30 #X100IN

# If your MPG outputs a quadrature signal per click set x4 to 1
# If your MPG puts out 1 pulse per click set x4 to 0

setp encoder.0.x4-mode 0

# For velocity mode, set to 1
# In velocity mode the axis stops when the dial is stopped
# even if that means the commanded motion is not completed,
# For position mode (the default), set to 0
# In position mode the axis will move exactly jog-scale
# units for each count, regardless of how long that might take

setp joint.0.jog-vel-mode 1
setp joint.1.jog-vel-mode 1
setp joint.2.jog-vel-mode 1
setp axis.x.jog-vel-mode 1
setp axis.y.jog-vel-mode 1
setp axis.z.jog-vel-mode 1
#setp joint.3.jog-vel-mode 1
#setp joint.4.jog-vel-mode 1
#setp joint.5.jog-vel-mode 1
setp axis.a.jog-vel-mode 1
setp axis.b.jog-vel-mode 1
setp axis.c.jog-vel-mode 1

# The output from the mux4 is sent to each axis jog scale
net mpg-scale <= mux4.0.out
net mpg-scale => joint.0.jog-scale => axis.x.jog-scale
net mpg-scale => joint.1.jog-scale => axis.y.jog-scale
net mpg-scale => joint.2.jog-scale => axis.z.jog-scale
#net mpg-scale => joint.3.jog-scale => axis.a.jog-scale
#net mpg-scale => joint.4.jog-scale => axis.b.jog-scale
#net mpg-scale => joint.5.jog-scale => axis.c.jog-scale

# The MPG inputs
net mpg-enc-a encoder.0.phase-A <= remora.input.21
net mpg-enc-b encoder.0.phase-B <= remora.input.22

# The Axis select inputs
net mpg-x axis.x.jog-enable <= joint.0.jog-enable <= remora.input.23
net mpg-y axis.y.jog-enable <= joint.1.jog-enable <= remora.input.24
net mpg-z axis.z.jog-enable <= joint.2.jog-enable <= remora.input.25
#net mpg-a axis.a.jog-enable <=  joint.3.jog-enable <= remora.input.26
#net mpg-b axis.b.jog-enable <=  joint.4.jog-enable <= remora.input.27
#net mpg-c axis.c.jog-enable <=  joint.5.jog-enable <= remora.input.28

# The encoder output counts to the axis. Only the selected axis will move.
net encoder-counts  <= encoder.0.counts
net encoder-counts => joint.0.jog-counts => axis.x.jog-counts
net encoder-counts => joint.1.jog-counts => axis.y.jog-counts
net encoder-counts => joint.2.jog-counts => axis.z.jog-counts
#net encoder-counts => joint.3.jog-counts => axis.a.jog-counts
#net encoder-counts => joint.4.jog-counts => axis.b.jog-counts
#net encoder-counts => joint.5.jog-counts => axis.c.jog-counts
Last edit: 07 May 2025 12:35 by vpomerleau.
The following user(s) said Thank You: cakeslob

Please Log in or Create an account to join the conversation.

More
07 May 2025 23:43 #327966 by cakeslob
thanks vp, that will save us a lot of work. we need to archive this shit for the repo or something

darkpheonix - that is good to hear

spyder - this is my WIP remora spindle template (no encoder edition). murphy is also using it. some might be duplicate to what you have now
#########################################################################################
#				Remora  Spindle hal		remora_spindle.hal					
#																						
#		this hal file includes the following											
#	- connecting Remora outputs to LinuxCNC motion spindle.0 enable/direction			
#	- connecting spindle signals to LinuxCNC motion spindle.0 pins						
#	- converting the LinuxCNC motion spindle.0.speed-out-abs to signal with scale		
#	- connecting converted LinuxCNC motion spindle.0.speed-out-abs to Remora PWM		
#																						
#########################################################################################

# conenct LinuxCNC motion spindle.0 on/enable to remora output 01
net spindle-on <= spindle.0.on => 	remora.output.01 
# conenct LinuxCNC motion spindle.0 direction to remora output 02 
net spindle-cw <= spindle.0.forward =>  remora.output.02 

# connect spindle signals to LinuxCNC motion spindle.0
net spindle-cmd-rpm     <= spindle.0.speed-out
net spindle-cmd-rps     <= spindle.0.speed-out-rps
net spindle-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-at-speed    => spindle.0.at-speed

### Connect and configure spindle PWM/0-10v signal   ###
###########################################################
# 			Spindle PWM 0-100 control
# 	converting the LinuxCNC spindle speed output 
# 	into a useable output signal for our remora pwm component 
#	- for pwm the math is 100/ [MAX SPINDLE RPM] = gain
#			 100/(5000rpm) = .02 , the gain is 0.02
###########################################################

# load a linuxCNC scale module, 
loadrt scale names=scale_to_rpm.0,scale-rpm
addf scale-rpm servo-thread
# configure spindle rpm to pwm 
# pwm 100 / max rpm = gain number 
#setp scale-rpm.gain 0.02 # 100/ rpm (5000) = .02
setp scale-rpm.gain [SPINDLE_0]RPM_GAIN # 100/ rpm (5000) = .02
# connect the LinuxCNC motion spindle.0 speed-out-abs to the pwm scale
net spindle-speed-scale spindle.0.speed-out-abs => scale-rpm.in
# connect pwm scale output to remora spindle pwm SP.0
net spindle-speed-abs scale-rpm.out => remora.SP.0


# Manual toolchange

	loadusr -W hal_manualtoolchange
	net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
	net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
	net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
	net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
The following user(s) said Thank You: Spyderbreath

Please Log in or Create an account to join the conversation.

More
08 May 2025 00:49 #327970 by Spyderbreath
Replied by Spyderbreath on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Wonderful. Yea, I don't think I would of gotten that spindle config. Thanks.

And I think my next and maybe final question for now is when uploading the .txt file to the controller, does the upload script need to be run in a virtual environment or can it be run from a standard console?

I ask thinking about changing to the DMAstepgen from the basic.

Please Log in or Create an account to join the conversation.

More
08 May 2025 03:02 #327976 by cakeslob
im not sure, ive only ever use the regular terminal, but im not using the debian linuxcnc image

Please Log in or Create an account to join the conversation.

More
08 May 2025 15:46 #328009 by cakeslob
dammit spyder i thought i had more time before you would start asking about qtdragon

im working on a thing for easy GUI switching, but in the mean time you can use this as a reference because i know it works and its pretty close to what the config is you want.

github.com/Expatria-Technologies/remora-...hal/remora-flexi.ini

github.com/Expatria-Technologies/remora-...figSamples/flexi-hal

Please Log in or Create an account to join the conversation.

More
08 May 2025 16:44 #328015 by Spyderbreath
Replied by Spyderbreath on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Sorry, didn't mean to offend. Take your time as in the end I will be needing the "thing for easy GUI switching".

Tried it and instantly end up with an error.

flexi: dlopen: /usr/lib/linuxcnc/modules/flexi.so: cannot open shared object file: No such file or directory

I tried it 2 ways by copying the .ini and .hal files into the existing qtdragon config and by copying the entire flexi config file and running it from there and same error.

Please Log in or Create an account to join the conversation.

More
08 May 2025 16:53 - 08 May 2025 16:54 #328016 by cakeslob
lol not offended, you move to fast, i was trying to stay one step ahead. but no you cant just load it as is, but its a very similar config as to what you want in the end. make a copy of your config folder, and replace a bunch of stuff. Specifically the [DISPLAY] section of the config, then there might be some probe related macro files and qtdragon related files. the remora-flexi.hal , dont touch i think. but there are some qtdragon hal files in there
Last edit: 08 May 2025 16:54 by cakeslob.

Please Log in or Create an account to join the conversation.

More
08 May 2025 17:15 #328019 by Spyderbreath
Replied by Spyderbreath on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Figured it out with the help of Hakan! Filled me in on what I was not getting. Working now, or at least far more complete than what I have ever had before.

www.forum.linuxcnc.org/qtvcp/56093-movin...s-to-qtdragon#328018

Thank you!

Please Log in or Create an account to join the conversation.

More
09 May 2025 14:42 - 09 May 2025 15:39 #328076 by Murphy
@caskeslob. When I'm in CSS mode and moving the X axis . In halscope the Remora.sp signal looks like it's tapering , is it supposed to this? You can hear the spindle in the background slowing down with every adjustment . I'm moving in 10mm jogs . 
youtube.com/shorts/wCQEtX8jdlg?si=56bFTHS2TniANqbB

Not in CSS mode

youtube.com/shorts/3FCbzGDeuUc?si=U3O0NyMvfS-R4K8-
Last edit: 09 May 2025 15:39 by Murphy.

Please Log in or Create an account to join the conversation.

More
10 May 2025 03:10 #328119 by cakeslob
im not an expert but i think thats exactly what its supposed to look like (rpm changing as diameter changes). assuming those portions that are the straight lines are in between jog moves. I didnt see (or hear) any weird spindle speed drop outs like before thought. i am assuming you figured out the issue?

Please Log in or Create an account to join the conversation.

Time to create page: 0.251 seconds
Powered by Kunena Forum