PlasmaC Fiber laser 1Kw head height control + auto focuas

More
03 Sep 2020 21:58 #180593 by taloot
okey clear,


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

Please Log in or Create an account to join the conversation.

More
03 Sep 2020 22:06 #180594 by tommylight

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:
# --- 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
# --- PROBE-IN ---
#net probe-in     <=  [HMOT](CARD0).gpio.003.in_not
Those are just examples, edit them to suit what you need.
The following user(s) said Thank You: taloot

Please Log in or Create an account to join the conversation.

More
03 Sep 2020 22:47 #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)
The following user(s) said Thank You: tommylight, taloot

Please Log in or Create an account to join the conversation.

More
04 Sep 2020 12:54 - 04 Sep 2020 12:57 #180677 by taloot

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:
# --- 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
# --- 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
Last edit: 04 Sep 2020 12:57 by taloot.

Please Log in or Create an account to join the conversation.

More
04 Sep 2020 14:30 - 04 Sep 2020 14:32 #180686 by PCW
With a parallel port BOB you would use DB25 pins 10,11,12,13 and 15
as inputs, these map into:
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
Last edit: 04 Sep 2020 14:32 by PCW.
The following user(s) said Thank You: taloot

Please Log in or Create an account to join the conversation.

More
15 Sep 2020 20:46 - 15 Sep 2020 21:20 #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
Last edit: 15 Sep 2020 21:20 by taloot.

Please Log in or Create an account to join the conversation.

More
15 Sep 2020 23:39 #182304 by phillc54

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.
The following user(s) said Thank You: taloot

Please Log in or Create an account to join the conversation.

More
22 Sep 2020 19:03 - 22 Sep 2020 19:48 #183331 by taloot
i rework the capacitance sensing

is there any command allow me to test the head follower aka thc
without running programe
Last edit: 22 Sep 2020 19:48 by taloot.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
22 Sep 2020 23:21 #183355 by phillc54
No, the only height testing is the probe test.

Please Log in or Create an account to join the conversation.

More
22 Sep 2020 23:40 #183357 by taloot

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
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.132 seconds
Powered by Kunena Forum