Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
Today 16:39

Changes in configuration files generated in pncconfig for 7i76 to 7i78

Category: Configuration Tools

I suggested the G540 configuration because it includes  PWM generator that you can use
with pncconf for setting up the the spindle, the 7I76 configuration does not.

On the halcmd, yes you need the driver loaded, as I mentioned:

Note that you can list all pin and parameter names when LinuxCNC is running with:

ENCA+, ENCA-, ENCB+, ENCB-, IDX+, IDX- are all physical signal names and are not present in hal

encoder hal pins and parameters will all have names like:

hm2_7c81.0.encoder.00.position
hm2_7c81.0.encoder.00.index-enable
 etc etc

Where  the 00 in hm2_7c81.0.encoder.00.position is the encoder number

with 7C81 7i78X2d or 7I78x3d firmware, encoder 0 would be on P1

If you want to use encoder 0 on P1 for the spindle encoder, you select encoder 0
as spindle encoder  in pncconf. Similarly PWMgen 0 is on P1 with the 7I78 firmware
so pwmgen 0 would be selected for spindle speed control.





 
  • langdons
  • langdons's Avatar
Today 14:53 - Today 14:56
Replied by langdons on topic MPG and analog command config issue

MPG and analog command config issue

Category: Basic Configuration

What handle?

A picture of the machine would be nice.

What about arrow keys and PgUp/PgDn

French characters appear very broken in the HAL and INI files, someone needs to fix that.
  • COFHAL
  • COFHAL
Today 14:43 - Today 14:44
Replied by COFHAL on topic Physical buttons to 7i96s+7i77

Physical buttons to 7i96s+7i77

Category: HAL

 

File Attachment:

File Name: custom_2025-12-05.hal
File Size:2 KB
Indeed, there was an error; I had given the threads "scale" names, and that's why it was giving that error. I'm resending the corrected file.
  • Hakan
  • Hakan
Today 11:19
Replied by Hakan on topic EtherCAT servo as main spindle

EtherCAT servo as main spindle

Category: EtherCAT

ADm1N didn't use CSV mode, it doesn't work well for a spindle as you see.
He used PV Profile Velocity mode which works well for spindle.
I made an adaptation to cia402 component for pv mode here incl an example
github.com/MetalMusings/cia402pv
  • jaro_p
  • jaro_p's Avatar
Today 11:17 - Today 11:20

Changes in configuration files generated in pncconfig for 7i76 to 7i78

Category: Configuration Tools

The command you recommended wrote this:
halcmd show all hm2
Loaded HAL Components:
ID Type Name PID State

Component Pins:
Owner Type Dir Value Name

Pin Aliases:
Alias Original Name

Signals:
Type Value Name (linked to)

Parameters:
Owner Type Dir Value Name

Parameter Aliases:
Alias Original Name

Exported Functions:
Owner CodeAddr Arg FP Users Name

Realtime Threads:
Period FP Name ( Time, Max-Time )

This works:
halcmd -kf
halcmd: loadrt hostmot2
halcmd: loadrt hm2_rpspi
halcmd: show all hm2
 
  • Z3n
  • Z3n
Today 10:28
Replied by Z3n on topic Red Init & Done Lights on 7i92M

Red Init & Done Lights on 7i92M

Category: Driver Boards

A quick update here! I got my 7I92TM and 7I76U today, and after some swearing at Linux networking I got them flashed and confirmed working via halscope. Thanks all for getting me to this point, I need to request an RMA for the other card as well and get them in the mail.

Thanks again to everyone who's gotten me here. Now that I've got this sorted out and am confident I understand a bit more about Mesa / Hal / etc, I'm going to build out the wiring diagram, which I'll put in my other thread.  

Thanks!

 
  • RotarySMP
  • RotarySMP's Avatar
Today 10:24
Replied by RotarySMP on topic Schaublin 125-CNC retrofit.

Schaublin 125-CNC retrofit.

Category: Turning

Here is the update on my VFD braking.

  • Aciera
  • Aciera's Avatar
Today 09:48 - Today 09:49
Replied by Aciera on topic EtherCAT servo as main spindle

EtherCAT servo as main spindle

Category: EtherCAT

You can also disable motion by setting 'motion.enable' to FALSE but machine state will still be switched to Off.

the relevant code section is here:
github.com/LinuxCNC/linuxcnc/blob/master...tion/control.c#L1465

If it is possible to do this for a specific joint during program execution would have to be explored. I expect that the interpreter would need to restarted at the very least.
  • Mr. Mass
  • Mr. Mass's Avatar
Today 09:47 - Today 09:49
Replied by Mr. Mass on topic qtdragon mod

qtdragon mod

Category: Qtvcp

No, I added my pins and linked them to jog_increments widget:
[code][code]pin = QHAL.newpin("mpg.mpg-inc.1", QHAL.HAL_BIT, QHAL.HAL_IN)
pin.value_changed.connect(lambda s: self.w.jogincrements_linear.setCurrentIndex(1))
pin = QHAL.newpin("mpg.mpg-inc.2", QHAL.HAL_BIT, QHAL.HAL_IN)
pin.value_changed.connect(lambda s: self.w.jogincrements_linear.setCurrentIndex(2))
pin = QHAL.newpin("mpg.mpg-inc.3", QHAL.HAL_BIT, QHAL.HAL_IN)
pin.value_changed.connect(lambda s: self.w.jogincrements_linear.setCurrentIndex(3))
pin = QHAL.newpin("mpg.mpg-inc.cont", QHAL.HAL_BIT, QHAL.HAL_IN)
pin.value_changed.connect(lambda s: self.w.jogincrements_linear.setCurrentIndex(0))


[code][code][code]But I would like to be able to enable/disable the increment selection from the screen, only showing the current value. Perhaps there is a way to disable the drop-down menu or something like that.
[/code][/code][/code][/code][/code]
  • jaro_p
  • jaro_p's Avatar
Today 08:53

Changes in configuration files generated in pncconfig for 7i76 to 7i78

Category: Configuration Tools

Thanks for the answer. There is one 7i78 -> P1 connected to 7c81, one optocoupler board on P7 and when I know how to do it, one 7i73. Why not pncconf for 7i76 but G540? It's more similar to 7i78. So with that encoder it means that it doesn't matter where and what encoder I choose, just change the name in .hal according to your example? Sorry for the question, will it be clear that it is a spindle encoder? Although it may be a stupid question, 7i78 has only one encoder and it is for the spindle... In the manual for 7c81 the encoder is marked as ENCA+, ENCA-, ENCB+, ENCB-, IDX+, IDX-. I don't know how it will look in .hal, because pncconf does not have the option to configure the 7c81 board. Well, with the list of parameters, it's clear, but as I already wrote, I'm completely lost and it's going slowly :).
  • tommylight
  • tommylight's Avatar
Today 05:46
Replied by tommylight on topic Remora sk1.4 with ethernet?

Remora sk1.4 with ethernet?

Category: Computers and Hardware

Docs on github linked on that topic, at the very start of it
remora-docs.readthedocs.io/en/latest/har...ring-to-raspberry-pi
  • cmorley
  • cmorley
Yesterday 04:38
Replied by cmorley on topic qtdragon mod

qtdragon mod

Category: Qtvcp

Do you mean you are using HALUI to do MPG jogging?
  • Punisher
  • Punisher
Yesterday 02:43
Replied by Punisher on topic Remora sk1.4 with ethernet?

Remora sk1.4 with ethernet?

Category: Computers and Hardware

I looked through that thread before I posted. Couldn't find anything on how it was wired.
  • LearningLinuxCNC
  • LearningLinuxCNC's Avatar
Yesterday 22:57
Replied by LearningLinuxCNC on topic MesaCT and 7i76eu Issues with generated configuration

MesaCT and 7i76eu Issues with generated configuration

Category: Configuration Tools

Here is a generated HAL file X axis configuration.
# Axis: X Joint: 0 Output: 2
# PID Setup
setp pid.x.Pgain [JOINT_0](P)
setp pid.x.Igain [JOINT_0](I)
setp pid.x.Dgain [JOINT_0](D)
setp pid.x.bias [JOINT_0](BIAS)
setp pid.x.FF0 [JOINT_0](FF0)
setp pid.x.FF1 [JOINT_0](FF1)
setp pid.x.FF2 [JOINT_0](FF2)
setp pid.x.deadband [JOINT_0](DEADBAND)
setp pid.x.maxoutput [JOINT_0](MAX_OUTPUT)
setp pid.x.error-previous-target True

# joint-0 enable chain
net joint-0-index-enable <=> pid.x.index-enable
net joint-0-index-enable <=> joint.0.index-enable

net joint-0-enable <= joint.0.amp-enable-out
net joint-0-enable => pid.x.enable

# position command and feedback
net joint-0-pos-cmd <= joint.0.motor-pos-cmd
net joint-0-pos-cmd => pid.x.command

net joint-0-pos-fb <= hm2_[MESA](BOARD).0.stepgen.00.position-fb
net joint-0-pos-fb => joint.0.motor-pos-fb
net joint-0-pos-fb => pid.x.feedback

# PID Output
net joint.0.output <= pid.x.output

# Axis: Z Joint: 1 Output: 3

This is what I had to change it to in order to make it work properly.
# Axis: X Joint: 0 Output: 2
# PID Setup
setp pid.x.Pgain [JOINT_0](P)
setp pid.x.Igain [JOINT_0](I)
setp pid.x.Dgain [JOINT_0](D)
setp pid.x.bias [JOINT_0](BIAS)
setp pid.x.FF0 [JOINT_0](FF0)
setp pid.x.FF1 [JOINT_0](FF1)
setp pid.x.FF2 [JOINT_0](FF2)
setp pid.x.deadband [JOINT_0](DEADBAND)
setp pid.x.maxoutput [JOINT_0](MAX_OUTPUT)
setp pid.x.error-previous-target True
setp pid.x.maxerror 0.0005

# joint-0 enable chain
net joint-0-index-enable <=> pid.x.index-enable
net joint-0-index-enable <=> joint.0.index-enable

net joint-0-enable <= joint.0.amp-enable-out
net joint-0-enable => pid.x.enable
net joint-0-enable => hm2_[MESA](BOARD).0.stepgen.02.enable

# position command and feedback
net joint-0-pos-cmd <= joint.0.motor-pos-cmd
net joint-0-pos-cmd => pid.x.command
net joint-0-vel-cmd <= joint.0.vel-cmd


net joint-0-pos-fb <= hm2_[MESA](BOARD).0.stepgen.02.position-fb
net joint-0-pos-fb => joint.0.motor-pos-fb
net joint-0-pos-fb => pid.x.feedback

# PID Output
net joint.0.output <= pid.x.output
net joint.0.output => hm2_[MESA](BOARD).0.stepgen.02.velocity-cmd
  • vibram
  • vibram
Yesterday 20:46 - Yesterday 20:46
MPG and analog command config issue was created by vibram

MPG and analog command config issue

Category: Basic Configuration

Hello I try to setup a mill with all servo drives run with analog command and it's working fine.

However, now I try to setup a MPG
after customizing the HAL file, here is the situation:
the MUX is correctly working for the scale and the axis.x.jog-scale is correct (value from 0.01 to 1mm)
axis.x.jog-enable works fine, same for Y and Z
axis.x.jog-counts works fine, I can see the number of pulses moving when I turn the handle
axis.x.jog-accel-fraction is set to 1

When using Axis interface with the and - button, it works fine
However; when I turn the handle, the axis is not moving at all, I don't have any error message.E-stop is off and Toggle Machine power if ON obviously. 

Any idea what could be the issue?
thank you
Displaying 1 - 15 out of 280494 results.
Time to create page: 1.993 seconds
Powered by Kunena Forum