Advanced Search

Search Results (Searched for: )

  • unknown
  • unknown
16 Apr 2025 00:52
Replied by unknown on topic 7i92 firmware issue

7i92 firmware issue

Category: Driver Boards

Ran
./mesaflash --device 7i92 --addr 10.10.10.10 --verify ~/linuxcnc/firmware/7i92/TopEthernetHostMot2.bit

about 10 times passed every time.

Just for completeness tried verifying against another bitfile (not written to flash) and failed as expected.

Hold & WP are tied directly to 3.3v CS is tied hi via 10k resistor.

If the main clk is out, part is marked as 50Mhz, could this throw a spanner in the works ? But then that would affect the Ethernet Interface's 25Mhz clock.

It feels like the write is taking longer than expected, but checking the busy flag would mitigate this. That's why I thought of putting a delay between mesaflash wiritng a page and the "packet read for board syncing"
  • 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.
Displaying 17191 - 17195 out of 17195 results.
Time to create page: 0.379 seconds
Powered by Kunena Forum