Advanced Search

Search Results (Searched for: )

  • zarfld
  • zarfld
04 Mar 2025 18:16 - 04 Mar 2025 20:25

Pokeys_homecomp EncoderSearch / Encoder Arm Topic: Pos_Fb Following errors

Category: HAL

Hi,

i currently try to finalize the homing_comp for pokeys. it seem to basically work, but at the end where the sychronized axes should finish their homing. they are still shown as unhomed. (sometimes one of them got marked homed but never both of them)

 
 


Somehow it seems that i'm missing something, but i cannot figure out if i need to set a HAL flag or missed a step which is required to be done to finalize overall homing.

Can some one please point me in the direction where to look at? 

[TRAJ]
COORDINATES =  XXYZ

[JOINT_0] 
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = -1.000000
HOME_LATCH_VEL = -0.500000
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = -3

[JOINT_1]
HOME_OFFSET = 4.100000
HOME_SEARCH_VEL = -1.000000
HOME_LATCH_VEL = -0.500000
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = -3

[JOINT_2]
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = -3
HOME_LATCH_VEL = 1
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2

[JOINT_3]
HOME_OFFSET = 0.5
HOME_SEARCH_VEL = 3
HOME_LATCH_VEL = 1
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1


if it is required my home_comp can be found here github.com/zarfld/LinuxCnc_PokeysLibComp...pokeys_homecomp.comp

it basically comminicates with pokeys.comp by a status and a command signal using following enumerations for each joint seperately

typedef enum
{
    PK_PEAxisState_axSTOPPED = 0, // Axis is stopped
    PK_PEAxisState_axREADY = 1,   // Axis ready
    PK_PEAxisState_axRUNNING = 2, // Axis is running

    PK_PEAxisState_axHOMING_RESETTING = 8,   // Stopping the axis to reset the position counters
    PK_PEAxisState_axHOMING_BACKING_OFF = 9, // Backing off switch
    PK_PEAxisState_axHOME = 10,              // Axis is homed
    PK_PEAxisState_axHOMINGSTART = 11,       // Homing procedure is starting on axis
    PK_PEAxisState_axHOMINGSEARCH = 12,      // Homing procedure first step - going to home
    PK_PEAxisState_axHOMINGBACK = 13,        // Homing procedure second step - slow homing

    PK_PEAxisState_axPROBED = 14,      // Probing completed for this axis
    PK_PEAxisState_axPROBESTART = 15,  // Probing procedure is starting on axis
    PK_PEAxisState_axPROBESEARCH = 16, // Probing procedure - probing

    PK_PEAxisState_axERROR = 20, // Axis error
    PK_PEAxisState_axLIMIT = 30  // Axis limit tripped
} pokeys_home_state_t;

typedef enum
{
    PK_PEAxisCommand_axIDLE = 0,           // Axis  in IDLE
    PK_PEAxisCommand_axHOMINGSTART = 1,    // Start Homing procedure
    PK_PEAxisCommand_axHOMINGCANCEL = 2,   // Cancel Homing procedure
    PK_PEAxisCommand_axHOMINGFINALIZE = 3, // Finish Homing procedure
} pokeys_home_command_t;
  • stefan63
  • stefan63's Avatar
04 Mar 2025 17:59
panelui was created by stefan63

panelui

Category: LinuxCNC Documents

I have been taking a look at panelui, however I can not finde any simple an clear example of how to set up a simple demo to get going is there such a thing like an easy to follow example?

I also have hard time to find information  wether the panelui can work in conjuction with a ui like QtDragon or not?

Kind regards/Stefan
  • unknown
  • unknown
04 Mar 2025 17:54

Custom "MESA 7c81 Clone" PCB featuring a Raspberry Pi Compute Module 5

Category: Driver Boards

I would have brought the JTAG signals out for initial programming of the FPGA and not shared the serial flash signals.
May sound cumbersome but programming only needs to be done once via JTAG, after that mesa flash does the job fine.
I've thought along the lines of Andy that it would be an interesting project.
From my 7c81 clone experience I think there is the possibility of being able to bring out an extra 17 pin port, for a total of 68 io. Tho this would require firmware changes, new custom board name and and such. Also I made some changes to mesa flash and the driver to suit.
One thing I have noted with the RPi5 is that it's more forgiving in relation the SPI cable length and "messiness", IE it will tolerate longer DuPont cables that an RPi4 would. I thought I would just mention this.
Apart from not having the skill to design a board to suit, nor anyone to help during the process is that I like having the boards seperate, just in case my butter fingers cause one the voltage translation chips to blow a smoke valve and damage the PCB. Honestly this is likely to be a rare event.
On the whole good luck and keep us informed. If you have any questions regarding the Linuxcnc image I'm happy to help.
  • langdons
  • langdons
04 Mar 2025 17:45
  • prokopcio
  • prokopcio's Avatar
04 Mar 2025 17:40 - 04 Mar 2025 18:01
  • COFHAL
  • COFHAL
04 Mar 2025 17:13
Replied by COFHAL on topic TAMAGAWA encoders model TS5661N132

TAMAGAWA encoders model TS5661N132

Category: General LinuxCNC Questions

Thank you for your reply. I have read it. My question is whether this encoder is BiSS and uses a standard protocol that can be decoded by LCNC, because I understand that some of these types of encoders use their own protocol.
  • COFHAL
  • COFHAL
04 Mar 2025 17:08
Replied by COFHAL on topic Spindle orientation

Spindle orientation

Category: Advanced Configuration

Please try this configuration to orient with servo step/dir, it works for me.

File Attachment:

File Name: tall56orient.ini
File Size:4 KB

File Attachment:

File Name: tall56orient.hal
File Size:12 KB

This browser does not support PDFs. Please download the PDF to view it: Download PDF

  • Sternfox
  • Sternfox
04 Mar 2025 16:42 - 04 Mar 2025 16:48
Replied by Sternfox on topic Spindle orientation

Spindle orientation

Category: Advanced Configuration

i have nothing working as yet, the ratio is 1:1

this is what i have tried.
# Spindle Orient Command from LinuxCNC to the driver
net spindle-orient motion.spindle-orient => hm2_7i95.0.ssr.00.out-05

# Spindle Orient Complete feedback from the spindle driver
net spindle-orient-done hm2_7i95.0.inmux.00.input-06 => motion.spindle-orient.is-oriented

just to clarify my spindle driver has inputs and outputs for orient start and orient completed
  • 109jb
  • 109jb
04 Mar 2025 16:32
Lathe spindle index only? was created by 109jb

Lathe spindle index only?

Category: Basic Configuration

I have tried searching but cannot seem to find what I'm  looking for. I am getting ready to convert my little 9x20 lathe to CNC and am trying to find out if lathe threading can be done with a single index pulse only.  Basically I would make an index plat with only one hole in it and use an optical sensor for the trigger. Is this possible in LinuxCNC, and could anyone point me to an example?

Thanks,
John Brannen
  • andypugh
  • andypugh's Avatar
04 Mar 2025 16:23
Replied by andypugh on topic Calling pockets with carousel

Calling pockets with carousel

Category: Basic Configuration

I don't see any analog-out pin linked in the HAL to pass the M68 E0 to carousel.0.pocket-number.
I suspect that nothing is driving pocket-number and so it always goes to zero.
  • andypugh
  • andypugh's Avatar
04 Mar 2025 16:18
Replied by andypugh on topic How to access rt pins in user space

How to access rt pins in user space

Category: General LinuxCNC Questions

One option might be to create complementary pins in your userspace module and link them in the HAL layer.

Can you give more details about what you are trying to do? There are a few examples of existing drivers with realtime and userspace pairs. These tend to communicate with private shared memory.

linuxcnc.org/docs/stable/html/man/man1/halsampler.1.html
linuxcnc.org/docs/stable/html/man/man9/sampler.9.html
For example.
  • Wischi
  • Wischi
04 Mar 2025 16:18
Replied by Wischi on topic Question: Gmoccapy 3.4.2 and touchscreen

Question: Gmoccapy 3.4.2 and touchscreen

Category: Gmoccapy

Are there any updates on this? I am facing the same problem using Lcnc 2.9.4 and Gmoccapy 3.4.9. My touchscreen is recognized as eGalaxTouch. In Axis GUI and Gmoccapy with USB Mouse it works flawless. 
  • andypugh
  • andypugh's Avatar
04 Mar 2025 16:13
Replied by andypugh on topic Spindle orientation

Spindle orientation

Category: Advanced Configuration

Does orienting the spindle motor work to orient the spindle? (If it's not an exact 1:1 drive ratio then it won't)

What does the motor orient to? Is there a programmable alignment offset?

You say you are running out of IO. Is this because you are using a parallel port?
  • andypugh
  • andypugh's Avatar
04 Mar 2025 16:11

Custom "MESA 7c81 Clone" PCB featuring a Raspberry Pi Compute Module 5

Category: Driver Boards

I can't advise on your PCB design, but I think this looks like a nice idea.

I have occasionally thought that there should be a niche for a similar board, but with on-board stepper drivers (Trinamic or some other serially-controlled driver)
That would, of course, need a dedicated HAL driver, but those can be surprisingly straightforward.
  • andypugh
  • andypugh's Avatar
04 Mar 2025 16:07
Replied by andypugh on topic Path to source code LCNC

Path to source code LCNC

Category: General LinuxCNC Questions

Python can find the path to the running code with the __file__ system variable.
Depending on the code in question you might want to use sys.argv[0] instead.
In both cases you probably need to use the Python path manipulation functions to assemble the required path.
Displaying 9106 - 9120 out of 24536 results.
Time to create page: 0.588 seconds
Powered by Kunena Forum