Remora - ethernet NVEM / EC300 / EC500 cnc board

More
4 years 6 months ago #239380 by Domi
I have all NC type components, except for Estop and the consumption is still 0.08A with 24V power supply

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

More
4 years 6 months ago #239385 by Domi
And it's interesting that I can't turn on linuxcnc if I don't have a driver and motor connected. I have closse loop stepper motors.

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

More
4 years 6 months ago #239407 by cakeslob
Hey domi, it looks like you have the hardware stuff working, so now its mostly configuration, which is more linuxcnc than specific to remora. This will require more reading into general linuxcnc concepts.
Have a read into the hal basics
linuxcnc.org/docs/stable/html/hal/basic-hal.html
and the remora specific hal documents
remora-docs.readthedocs.io/en/latest/sof...dstops-home-switches

Can you upload your configuration files? or are you just using this one ? github.com/scottalford75/Remora/tree/fea...igSamples/remora-eth

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

More
4 years 6 months ago #239415 by Domi
Well thank you. I will study. So only work in the remora-eth.hal file so far? And I will rewrite my pins in the files of remora halls?

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

More
4 years 6 months ago #239449 by Domi
So far, I only use remora-eth.hal

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

More
4 years 6 months ago #239480 by cakeslob
ok domi, for simplicity, lets just use remora-eth.hal
I dont have a nvem board but Ill see what I can do, so I am learning this along side you. I dont know if there was a docs I missed for this board specifically, and Im also not very good with hal.
First, lets see what/where the inputs are. google image of the board and a quick check of the firmware shows the inputs are numbered starting from STOP
Code:
// INPUTS Module* STOP = new DigitalPin(*ptrInputs, 0, "PD_8", 0, true, NONE); servoThread->registerModule(STOP); Module* PROBE = new DigitalPin(*ptrInputs, 0, "PD_9", 1, true, NONE); servoThread->registerModule(PROBE); Module* INP3 = new DigitalPin(*ptrInputs, 0, "PD_10", 2, true, NONE); servoThread->registerModule(INP3); Module* INP4 = new DigitalPin(*ptrInputs, 0, "PD_11", 3, true, NONE); servoThread->registerModule(INP4); Module* INP5 = new DigitalPin(*ptrInputs, 0, "PD_14", 4, true, NONE); servoThread->registerModule(INP5); Module* INP6 = new DigitalPin(*ptrInputs, 0, "PD_15", 5, true, NONE); servoThread->registerModule(INP6); Module* INP7 = new DigitalPin(*ptrInputs, 0, "PC_6", 6, true, NONE); servoThread->registerModule(INP7); Module* INP8 = new DigitalPin(*ptrInputs, 0, "PC_7", 7, true, NONE); servoThread->registerModule(INP8); Module* INP9 = new DigitalPin(*ptrInputs, 0, "PC_8", 8, true, NONE); servoThread->registerModule(INP9); Module* INP10 = new DigitalPin(*ptrInputs, 0, "PC_9", 9, true, NONE); servoThread->registerModule(INP10); Module* INP11 = new DigitalPin(*ptrInputs, 0, "PA_11", 10, true, NONE); servoThread->registerModule(INP11); Module* INP12 = new DigitalPin(*ptrInputs, 0, "PA_12", 11, true, NONE); servoThread->registerModule(INP12); Module* SRO = new DigitalPin(*ptrInputs, 0, "PB_14", 12, true, NONE); servoThread->registerModule(SRO); Module* SJR = new DigitalPin(*ptrInputs, 0, "PB_15", 13, true, NONE); servoThread->registerModule(SJR); Module* x100 = new DigitalPin(*ptrInputs, 0, "PA_15", 14, true, NONE); servoThread->registerModule(x100); Module* x10 = new DigitalPin(*ptrInputs, 0, "PC_10", 15, true, NONE); servoThread->registerModule(x10); Module* x1 = new DigitalPin(*ptrInputs, 0, "PC_11", 16, true, NONE); servoThread->registerModule(x1); Module* ESTOP = new DigitalPin(*ptrInputs, 0, "PC_12", 17, true, NONE); servoThread->registerModule(ESTOP); Module* Xin = new DigitalPin(*ptrInputs, 0, "PD_7", 18, true, NONE); servoThread->registerModule(Xin); Module* Yin = new DigitalPin(*ptrInputs, 0, "PD_4", 19, true, NONE); servoThread->registerModule(Yin); Module* Zin = new DigitalPin(*ptrInputs, 0, "PD_3", 20, true, NONE); servoThread->registerModule(Zin); Module* Ain = new DigitalPin(*ptrInputs, 0, "PD_2", 21, true, NONE); servoThread->registerModule(Ain); Module* Bin = new DigitalPin(*ptrInputs, 0, "PD_1", 22, true, NONE); servoThread->registerModule(Bin); Module* Cin = new DigitalPin(*ptrInputs, 0, "PD_0", 23, true, NONE); servoThread->registerModule(Cin); Module* WHA = new DigitalPin(*ptrInputs, 0, "PB_7", 24, false, NONE); servoThread->registerModule(WHA); Module* WHB = new DigitalPin(*ptrInputs, 0, "PB_6", 25, false, NONE); servoThread->registerModule(WHB); Module* INDEX = new DigitalPin(*ptrInputs, 0, "PC_15", 25, false, NONE); servoThread->registerModule(INDEX);


" Module* PROBE = new DigitalPin(*ptrInputs, 0, "PD_9", 1,"
Ok, so "Module* PROBE" is probably the name on the board , and Im pretty sure the number to the right is the remora input pin number "1"

so in hal, the PROBE port is hal pin remora.input.1, now we need to connect them within/to linuxcnc so linuxcnc knows what goes where.
linuxcnc.org/docs/devel/html/hal/intro.html

remora-docs.readthedocs.io/en/latest/sof...dstops-home-switches

linuxcnc.org/docs/devel/html/man/man9/mo....9.html#JOINT%20PINS
linuxcnc.org/docs/devel/html/man/man9/mo...9.html#MOTION%20PINS

We know now which pin is where on the board, now to connect them to linuxcnc, using the examples from above, and if probe is remora.input1, we then connect it to linuxcnc pin motion.probe-input, and we do the same for limits. im pretty sure this is safe, so add it to your remora eth.hal and see what happens
Code:
net Probe-IN remora.input.1 => motion.probe-input net X-min remora.input.2 => joint.0.home-sw-in joint.0.neg-lim-sw-in net Y-min remora.input.3 => joint.1.home-sw-in joint.1.neg-lim-sw-in net Z-min remora.input.4 => joint.2.home-sw-in joint.2.neg-lim-sw-in


Check out some more of the configuration and hal section of the docs, because if you understand some of the basic concepts, it will make this next set of instructions easier
linuxcnc.org/docs/
The following user(s) said Thank You: Domi

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

Time to create page: 1.184 seconds
Powered by Kunena Forum