Advanced Search

Search Results (Searched for: )

  • Aciera
  • Aciera's Avatar
18 Mar 2025 13:30 - 18 Mar 2025 13:34
Replied by Aciera on topic M19 and spindle-index-enable issues

M19 and spindle-index-enable issues

Category: Advanced Configuration

@andy, seems I have missed your reply:

The point of IO pins is to only write any state to them when you want to set the state, and let other parts of the net be in charge at other times.


Looking at your code for case 0, which is the initial state, you are setting 'index_enable = 0' so this version of the component permanently forces 'orient.index_enable' low until an orient command is issued (ie 'orient.enable' goes true):
    case 0: // waiting
        index_enable = 0;
        if (enable) {
           if (enable ^ last_enable) {     // positive edge on enable
               is_oriented = 0;
               if (mode & 0x10){
                   index_enable = 1;
                   state = 3;
               } else {
                   state = 1;
               }
           }
        }
        break;

 Your code looks like it will always set index_enable true?


No, my version forces homing to index because the mechanism with adding 16 to the p word does not work and 'orient.index-enable' is not written to unless spindle orientation has been called (ie 'orient.enable' is true) because 'index_enable=0' is now inside the if (enable) { statement.
    switch (state){
    case 0: // waiting
        if (enable) {
        index_enable = 0;
           if (enable ^ last_enable) {     // positive edge on enable
               is_oriented = 0;
               if (1>0){
                   index_enable = 1;
                   state = 3;
               } else {
                   state = 1;
               }
           }
        }
        break;
  • schlemihl
  • schlemihl
18 Mar 2025 12:53
Replied by schlemihl on topic Segmentation fault when loading QtVCP

Segmentation fault when loading QtVCP

Category: Qtvcp

Yes, I'm currently not home, so I dont know the specific name; but I tried the qtvcp_demo0 or something similar and it worked without problems.
  • cmorley
  • cmorley
18 Mar 2025 12:46
Replied by cmorley on topic Segmentation fault when loading QtVCP

Segmentation fault when loading QtVCP

Category: Qtvcp

Does one of the QtVCP sim screens (QtDragon) load in linuxcnc?

Chris
  • cmorley
  • cmorley
18 Mar 2025 12:40
Replied by cmorley on topic Indicators on Push Buttons

Indicators on Push Buttons

Category: Qtvcp

I have a mixin class that reimplements the paint event. It first paints the normal widget then adds indicator painting.

github.com/LinuxCNC/linuxcnc/blob/master...ts/indicatorMixIn.py
  • cmorley
  • cmorley
18 Mar 2025 12:36
Replied by cmorley on topic halui.spindle.0.override.direct-value

halui.spindle.0.override.direct-value

Category: Advanced Configuration

I confirm and see the problem. I'll try to push the fix soon.

*halui_data->so_counts = 0;

should be:

*halui_data->so_counts[spindle] = 0;
Displaying 18136 - 18140 out of 18140 results.
Time to create page: 0.810 seconds
Powered by Kunena Forum