Advanced Search

Search Results (Searched for: )

  • MaHa
  • MaHa
06 Sep 2025 21:23

Having issues with oword test scripts in version 2.9.4

Category: O Codes (subroutines) and NGCGUI

I think there are square brackets required
#<value> = [30 * #<factor>]


setting to read values from ini file

[RS274NGC]
INI_VARS = 1 
  • Hakan
  • Hakan
06 Sep 2025 21:23 - 06 Sep 2025 21:23

Having issues with oword test scripts in version 2.9.4

Category: O Codes (subroutines) and NGCGUI

There is a difference versus the doc linuxcnc.org/docs/html/gcode/o-code.html#ocode:subroutines
Use o100-style instead of o<mytest2>?
o100 sub
     g-code
o100 endsub
  • PCW
  • PCW's Avatar
06 Sep 2025 21:22

Troubles to get started with SD240 Retrofit

Category: Turning

INDEX+ input (encoder disconnected)
changes the state of the hal index pin (hm2_7i80.0.encoder.00.input-index for X)

No it does not change in HAL-Show, it stays high (yellow) even if I short ENCX0 with GND (PIN on the 7i33)


Not sure what you mean here, to me you seem to be saying  hm2_7i80.0.encoder.00.input-index changes
when you ground the INDEX+ pin but then it does not change.


 
  • scsmith1451
  • scsmith1451's Avatar
06 Sep 2025 21:09

Having issues with oword test scripts in version 2.9.4

Category: O Codes (subroutines) and NGCGUI

All;

I'm running LCNC 2.9.4 upgraded from a 2.9.3 disc image install.

I have this simple test script:

o<mytest2> sub
    #<factor> = 1
    o100 if [#<_metric>]
        #<factor> = 25.4
    o100 endif

    #<value> = 30 * #<factor>

    (LOGOPEN,mytest.txt)
    (LOG, factor: #<factor>)
    (LOG, value:  #<value>)
    (LOGCLOSE)
o<mytest2> endsub

in my nc_files directory. If I comment out the two lines with "value" in then the script runs fine in both sim.axis and sim.axis_mm profiles.  When I uncomment the lines I get this output:

emc/task/emctask.cc 68: interp_error: Bad character '*' used
Bad character '*' used

According to the documentation "*" is the multiplication operator.  Anyone else experiencing this issue? Is there a resolution?

The second issue is closely related. 

I also have this test script:

o<mytest2> sub
    #<factor> = 1
    o100 if [#<_metric>]
        #<factor> = 25.4
    o100 endif

    (LOGOPEN,mytest.txt)
    (LOG, laser-offset-x: #<_ini[LASER]laser-offset-x>)
    (LOG, laser-offset-y: #<_ini[LASER]laser-offset-y>)
    (LOG, park-offset:     #<_ini[PARK]park-offset>)
    (LOG, z-offset:          #<_ini[PROBE]z-offset>)
    (LOGCLOSE)
o<mytest2> endsub

where I try to read ini parameters defined in the axis.ini and axis_mm.ini files as follows:

[LASER]
laser-offset-x = -3.1702
laser-offset-y = 0.0568

[PARK]
park-offset = 0.125

[PROBE]
z-offset = 0.543

When the script is executed the output looks like this:

LOGOPEN(mytest.txt) -> 0x55cc4c8cee20
LOG( laser-offset-x: ######)
LOG( laser-offset-y: ######)
LOG( park-offset:     ######)
LOG( z-offset:          ######)
LOGCLOSE()

Again, is anyone else experiencing this issue in 2.9.4? Is there a resolution?

Kind regards
  • ziggi
  • ziggi's Avatar
06 Sep 2025 20:01 - 06 Sep 2025 20:12

Troubles to get started with SD240 Retrofit

Category: Turning

INDEX+ input (encoder disconnected)
changes the state of the hal index pin (hm2_7i80.0.encoder.00.input-index for X)

No it does not change in HAL-Show, it stays high (yellow) even if I short ENCX0 with GND (PIN on the 7i33)

And Sorry, I mixed it up- the jumpers W1-W4 are set to UP position so TTL/RS-422  sorry!
 
  • ziggi
  • ziggi's Avatar
06 Sep 2025 19:42

Troubles to get started with SD240 Retrofit

Category: Turning

1. if the encoders have differential outputs, why in the 7I33 jumpered for single-ended (TTL) inputs
Answer: because I was told so   - I am really not ecperienced in these things and asked how to get the motors working and showed the schematics to experienced guys- and I was told how to wire the encoders and how to jumper the 7i33.2. Leaving the TTL option enabled, can you check that grounding the INDEX+ input (encoder disconnected)
changes the state of the hal index pin (hm2_7i80.0.encoder.00.input-index for X)

...ok, I will check this with disconnected encoder and report.

Thank you
Sigi
  • GDTH
  • GDTH's Avatar
06 Sep 2025 19:19

Carousel with counts move x amount of pockets

Category: Advanced Configuration

Hi all,Before I head to bed, I wanted to ask if anyone can quickly help me with my current frustration: getting this machine’s carousel working.I’ve got homing working, but there’s something odd—if the carousel is already homed and I try to home it again, nothing happens. I’ve managed to get M13 working, but I still need to sort out M11 and M12. I’ll attach my HAL and INI files here.I’m wondering if there are better ways to handle this, or if there are any good examples I could look at. My machine doesn’t have sensors for the pockets (which I would have preferred), so I’m working around that.Right now my biggest struggle is that I’m getting “unary” errors from my subroutine. When I try to trace the problem, the error messages aren’t very clear about what’s actually wrong. Is there a way to debug subroutines more effectively? At the moment the basic error messages don’t give me enough detail to figure it out.Any tips would be greatly appreciated
  • Unlogic
  • Unlogic
06 Sep 2025 18:24 - 06 Sep 2025 18:24

Probe Basic tool touch off gives "Probe tripped during non-probe move"

Category: QtPyVCP

If you get probe tripped error during slow proving it's usually a sign that you might need to add the debounce component to your halfile and then recalibrate the probe in Probe Basic.
  • MaxEkb77
  • MaxEkb77's Avatar
06 Sep 2025 18:14
Replied by MaxEkb77 on topic Problems with Lichuan Ethercat servo drive

Problems with Lichuan Ethercat servo drive

Category: EtherCAT

Yes shure.
I try to run servo in csp, i see one big problem - moror jumping on re-enable.

I try to dual ethercat-stepper, lol ok all enabled first motor running good - when i try to rotate shaft motor not showing feedback. second axis showing normal. first axis good run - second axis max spedd 500rpm if more motor jumping.
  • heaven
  • heaven
06 Sep 2025 16:28 - 06 Sep 2025 16:29

Is There a GTK_Vismach Equivalent to Qt_Vismach?

Category: GladeVCP

nvm, i found myself solution in axis/pyvcp example :)
  • heaven
  • heaven
06 Sep 2025 16:05

Is There a GTK_Vismach Equivalent to Qt_Vismach?

Category: GladeVCP

Does GTK_Vismach exist, or has anyone attempted to embed Qt_Vismach into a GTK window?
Displaying 13561 - 13571 out of 13571 results.
Time to create page: 1.987 seconds
Powered by Kunena Forum