PlasmaC Fiber laser 1Kw head height control + auto focuas

More
6 years 1 month ago #180593 by taloot
okey clear,


how about limit switch
to which pin it go.. quad A and B ?

Please Log in to join the conversation.

More
6 years 1 month ago #180594 by tommylight

taloot wrote: how about limit switch
to which pin it go.. quad A and B ?

To any pin that is not used as and stepgen or PWM or encoder.
All of them can be used as inputs or outputs, just set them in hal, like so:
Code:
# --- DOUT-00 --- setp [HMOT](CARD0).gpio.005.is_output true #net dout-00 => [HMOT](CARD0).gpio.005.out net plasmac:float-switch => [HMOT](CARD0).gpio.005.out #setp [HMOT](CARD0).gpio.005.invert_output true
OR
Code:
# --- PROBE-IN --- #net probe-in <= [HMOT](CARD0).gpio.003.in_not
Those are just examples, edit them to suit what you need.

Please Log in to join the conversation.

More
6 years 1 month ago #180598 by PCW
You _can_ use encoder pins as GPIO inputs

That is, special _input_ functions can always be used as GPIO
(of course you cannot use the encoder if A or B are used for GPIO)

Please Log in to join the conversation.

More
6 years 1 month ago #180677 by taloot

tommylight wrote:

taloot wrote: how about limit switch
to which pin it go.. quad A and B ?

To any pin that is not used as and stepgen or PWM or encoder.
All of them can be used as inputs or outputs, just set them in hal, like so:
Code:
# --- DOUT-00 --- setp [HMOT](CARD0).gpio.005.is_output true #net dout-00 => [HMOT](CARD0).gpio.005.out net plasmac:float-switch => [HMOT](CARD0).gpio.005.out #setp [HMOT](CARD0).gpio.005.invert_output true
OR
Code:
# --- PROBE-IN --- #net probe-in <= [HMOT](CARD0).gpio.003.in_not
Those are just examples, edit them to suit what you need.

and the GPIO pin number is represent the FPGA number

in your example u use 3 and 5 ... this number is I\O number (FPGA PIN number)

in my firmware that PCW make... i will use the NONE labled pin
which is 1 3 13 18 20 30

Please Log in to join the conversation.

More
6 years 1 month ago #180686 by PCW
With a parallel port BOB you would use DB25 pins 10,11,12,13 and 15
as inputs, these map into:
Code:
P2 DB25 GPIO 10 13 11 14 12 15 13 16 15 03 P1 DB25 GPIO 10 30 11 31 12 32 13 33 15 20

So 10 inputs are available as GPIO inputs for limit switches etc

Please Log in to join the conversation.

More
6 years 1 month ago #182270 by taloot
long time since last update

everything works OK... thanks for the big help..
but now i have an issue... and its the last one
the focus i use 4th axis setup
it works ok if i jog it.
but i cant sent the axis to specific command potion without having joint following error
its because the qtpy sent the exact location to the axis.. which generate this error...not ramp to it

so how can i send axis to specific location using halcmd

i cant find solution for this
i want to send a command like in MDI..
i know that from halui i can do it... but is it valid while program is running?

also plasmac probe twice.. how can i make it once

Please Log in to join the conversation.

More
6 years 1 month ago #182304 by phillc54

taloot wrote: so how can i send axis to specific location using halcmd

i cant find solution for this
i want to send a command like in MDI..
i know that from halui i can do it... but is it valid while program is running?

I don't think it is valid.
You may be able to achieve this with a HAL component that utilises external offsets.
linuxcnc.org/docs/2.8/html/motion/external-offsets.html


also plasmac probe twice.. how can i make it once

It probes twice if it senses the probe before it has reached Probe Height set in the Config Panel. You could increase Probe Height until you finf the value that suits your machine and material.

Please Log in to join the conversation.

More
6 years 1 month ago #183331 by taloot
i rework the capacitance sensing

is there any command allow me to test the head follower aka thc
without running programe

Please Log in to join the conversation.

More
6 years 1 month ago #183355 by phillc54
No, the only height testing is the probe test.

Please Log in to join the conversation.

More
6 years 1 month ago #183357 by taloot

taloot wrote: i rework the capacitance sensing

is there any command allow me to test the head follower aka thc
without running programe

by mistake i burn one of the fpga pin.. for encoder A,, but B still ok.. can i use B line instead of A

Please Log in to join the conversation.

Time to create page: 0.182 seconds
Powered by Kunena Forum