Advanced Search

Search Results (Searched for: )

  • dinodf
  • dinodf
16 Apr 2025 00:11
Replied by dinodf on topic How to pass parameters .comp file

How to pass parameters .comp file

Category: HAL

Thanks a lot!
If someone need it the code is: 
#define DEFAULT_REMOTE_IP "10.0.0.40"

// read parameter
static char *IPv4[20];
RTAPI_MP_ARRAY_STRING(IPv4, 16, "IPv4 to send infos")

EXTRA_SETUP() {
  struct sockaddr_in addr;
  
  // check parameters
  if (IPv4[extra_arg] == NULL) {
    rtapi_print_msg(RTAPI_MSG_ERR, "You have not set the IPv4 where send the data, will be send to %s", DEFAULT_REMOTE_IP);
    strcpy(ipDest, DEFAULT_REMOTE_IP);
  } else {
    strcpy(ipDest, IPv4[extra_arg]);
  }
  ...
}

rtapi_module_param

D
  • vre
  • vre
15 Apr 2025 23:42
Replied by vre on topic spindle with encoder

spindle with encoder

Category: Basic Configuration

This helps..
What is OUTPUT_SCALE = -10800 ?
This config is for fixed motor:spindle transmition ratio.
I have 2 selectable speeds after encoder-motor
These 2 speeds are selected by hydraulic electrovalve that switches gears
position 1 max rpm is 760rpm and position 2 max rpm 3060
  • vre
  • vre
15 Apr 2025 23:32
Replied by vre on topic External button for Cycle start/pause

External button for Cycle start/pause

Category: HAL

How to do it with only 1 button that has function cycle start / pause / resume ?
  • JohnnyCNC
  • JohnnyCNC's Avatar
15 Apr 2025 22:14
Replied by JohnnyCNC on topic spindle with encoder

spindle with encoder

Category: Basic Configuration

Hold on a second. I lied. Not intentionally. My spindle motor is a DYN4 servo motor geared 1:1.8 and it has a simulated encoder signal generated by the servo driver. That is the signal I am using for the coordination for rigid tapping. The sensor on the slotted plate it just for measuring RPM.
It's been a few years since I set this up and when you mentioned more slots I thought "I knew that, why didn't I do that?" Then I looked deeper and remembered how it really works.

To actually do this with a slotted plate and sensors you would want more slots and two sensors. Read up on how quadrature encoders work.

As long as you know the ratio between the spindle and encoder you can make almost any arrangement work.

These are my .ini settings.
[SPINDLE_0]
P = 2.0
I = 4.0
D = 0.0
FF0 = 1.08
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
OUTPUT_MIN_LIMIT = -5400.0
OUTPUT_MAX_LIMIT = 5400.0
OUTPUT_SCALE = -10800
ENCODER_SCALE = 4551.111111
#((2048 * 4) / 1.8) = 4551.111111
#The maximum spindle speed (in rpm)
MAX_FORWARD_VELOCITY = 5400
#The minimum spindle speed (in rpm)
MIN_FORWARD_VELOCITY = 50
#This setting will default to MAX_FORWARD_VELOCITY if omitted.
MAX_REVERSE_VELOCITY = 5400
#The minimum spindle speed (in rpm)default to MIN_FORWARD_VELOCITY if omitted.
MIN_REVERSE_VELOCITY = 50

Sorry for the confusion. I hope this helps.
  • langdons
  • langdons
15 Apr 2025 22:08
Replied by langdons on topic Determining Angular Scale - Help w/ Microsteps

Determining Angular Scale - Help w/ Microsteps

Category: Configuration Tools

The pulley ratio is 3:1

Why would it be 3.2:1?

60:20 = 3:1
  • langdons
  • langdons
15 Apr 2025 22:05
Replied by langdons on topic Determining Angular Scale - Help w/ Microsteps

Determining Angular Scale - Help w/ Microsteps

Category: Configuration Tools

I think the driver is just busted.

60:20 = 3:1

600 is correct.

Does the motor buzz or move differently with 1600 steps/rev vs. 200 steps/rev?

Good thing drivers are insanely inexpensive these days.
  • PCW
  • PCW's Avatar
15 Apr 2025 21:17
Replied by PCW on topic 7i92 firmware issue

7i92 firmware issue

Category: Driver Boards

Can it verify repeatedly without error?
If so if may be something related to write
(how are the WP and HOLD pins terminated?)
  • Aciera
  • Aciera's Avatar
15 Apr 2025 21:00 - 15 Apr 2025 21:31

Planning to Retrofit a Mazak Integrex200Y Mill-Turn Machine

Category: Advanced Configuration

It's important to keep in mind that joints (machine movement) and axes (DRO values) are not the same thing. As the X axis is supposed to be perpendicular to the Y axis it would be somewhat strange for the X value to change when moving along Y.
Also note that the forward kinematic is only used to calculate the axis values from the joint home position right after homing and probably when switching kinematics. After that only the inverse kinematic model is used to calculate the joint positions for given axis values.
  • unknown
  • unknown
15 Apr 2025 20:59
Replied by unknown on topic 7i92 firmware issue

7i92 firmware issue

Category: Driver Boards

A little update, changed the EEPROM from a 16MB ST part to a 16MB Winbond part (same as I've used for the EPP\SPI board). Initially no change.

Put a 5ms delay between before the "sync" instruction when erasing & writing a bitfile. Was able to write a bitfile, not everytime, but when it does it verifies ok.

Ran 100 iterations of the Linuxcnc logo gcode, one after another in a loop, and then left it, after 12 hours no comms issues.
  • PCW
  • PCW's Avatar
15 Apr 2025 20:43
Replied by PCW on topic Mesa 7i97T unresponsive analog outputs

Mesa 7i97T unresponsive analog outputs

Category: Driver Boards

If you have nothing connected to the 7I97T but 5V power and any analog
output is not  close to 0V, the analog output circuitry has been damaged somehow.

This may occur if an output was inadvertently shorted to say +24V or
connected before a common ground was established between the drive and
the 7I97T.
  • tommylight
  • tommylight's Avatar
15 Apr 2025 20:32
Replied by tommylight on topic Linuxcnc as flight simulator

Linuxcnc as flight simulator

Category: Advanced Configuration

OK, that simplifies things, a lot.
  • juwi
  • juwi
15 Apr 2025 20:18
Replied by juwi on topic Linuxcnc as flight simulator

Linuxcnc as flight simulator

Category: Advanced Configuration

Actually if you use simtools there are multiple interfaces.
Serial, udp, write your own...

Every game that is supported by simtools then has the same interface.
  • jochen91
  • jochen91
15 Apr 2025 19:56

Planning to Retrofit a Mazak Integrex200Y Mill-Turn Machine

Category: Advanced Configuration

I'm working on the Vismach implementation and while playing around i realized, that when i move the Y axis the X axis moves as well. So for so good. But the X-coordinate in Axis does not change.
(Forward Non TCP)
pos->tran.x =   j[0] + j[1] * cos(angle);
pos->tran.y = - j[1] * sin(angle);
(Inverted Non TCP)
j[0] =   pos->tran.x + pos->tran.y / tan(angle);
j[1] = - pos->tran.y / sin(angle);


Note:
X on the Mazak is head up and down in
Z on the Mazak is table left and right

But shouldn't it change? Why doesn't it ?

Kind regards,
Jochen

 
  • tommylight
  • tommylight's Avatar
15 Apr 2025 19:44
Replied by tommylight on topic Linuxcnc as flight simulator

Linuxcnc as flight simulator

Category: Advanced Configuration

Had the same idea today for a racing/flight sim! :)
I have no idea what games output for motion, that would help to know, but whatever it is (and i am sure no 2 games use the same output, but maybe through directX...), we would need just translating those to waypoints and from those to gcode.
Taping into games collision detection is out of the question by now as the coding on new games is absolutely terrible and utterly useless.
But, games that have display/gauges for pitch/tilt/angle of attack, should be much easier if they also output somehow somewhere those values.
Then there is the interpreter/LinuxCNC reading those values and sending motion, but should be doable, there are some "camera to motion" things working already somewhere on this forum.
Maybe use that and point the camera at the screen... :)
  • juwi
  • juwi
15 Apr 2025 19:30
Linuxcnc as flight simulator was created by juwi

Linuxcnc as flight simulator

Category: Advanced Configuration

Hi there.

I am planning to build a hexapod as a motion sim and would very much like to use linuxcnc as kinematics processor and mesa cards as motion controller.
this is because I am used to it in the normal manner and I like the dependability.
I have searched some time now and found the python hal interface and the python command module. 

As I just get xyzabc commanded positions from the simulator, I very much would like to just set the commanded position in linuxcnc to the new value andet it move as fast as possible to it. 
to prevent motion errors the allowed error would be set very high. 

If this sounds insane tell me, give me your thoughts. Is it possible to update just the commanded position via the hal python module? 

julian
Displaying 6541 - 6555 out of 24275 results.
Time to create page: 0.287 seconds
Powered by Kunena Forum