PlasmaC Fiber laser 1Kw head height control + auto focuas
- taloot
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 175
- Thank you received: 88
			
	
						03 Sep 2020 21:58				#180593
		by taloot
	
	
		
			
	
			
			 		
													
	
				Replied by taloot on topic PlasmaC  Fiber laser 1Kw head height control + auto focuas			
			
				okey clear,
how about limit switch
to which pin it go.. quad A and B ?
					how about limit switch
to which pin it go.. quad A and B ?
Please Log in or Create an account to join the conversation.
- tommylight
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 20851
- Thank you received: 7107
			
	
						03 Sep 2020 22:06				#180594
		by tommylight
	
	
		
			
				
All of them can be used as inputs or outputs, just set them in hal, like so:ORThose are just examples, edit them to suit what you need.			
					
	
	
			 		
													
	
				Replied by tommylight on topic PlasmaC  Fiber laser 1Kw head height control + auto focuas			
			To any pin that is not used as and stepgen or PWM or encoder.how about limit switch
to which pin it go.. quad A and B ?
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# --- PROBE-IN ---
#net probe-in     <=  [HMOT](CARD0).gpio.003.in_not
		The following user(s) said Thank You: taloot 	
			Please Log in or Create an account to join the conversation.
- PCW
- 
				  
- Online
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17372
- Thank you received: 5065
			
	
						03 Sep 2020 22:47				#180598
		by PCW
	
	
		
			
	
	
			 		
													
	
				Replied by PCW on topic PlasmaC  Fiber laser 1Kw head height control + auto focuas			
			
				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)
					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.
- taloot
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 175
- Thank you received: 88
			
	
						04 Sep 2020 12:54		 -  04 Sep 2020 12:57		#180677
		by taloot
	
	
		
			
				
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
					
	
	
			 		
													
	
				Replied by taloot on topic PlasmaC  Fiber laser 1Kw head height control + auto focuas			
			and the GPIO pin number is represent the FPGA number
To any pin that is not used as and stepgen or PWM or encoder.how about limit switch
to which pin it go.. quad A and B ?
All of them can be used as inputs or outputs, just set them in hal, like so:OR# --- 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 trueThose are just examples, edit them to suit what you need.# --- PROBE-IN --- #net probe-in <= [HMOT](CARD0).gpio.003.in_not
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.
- PCW
- 
				  
- Online
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17372
- Thank you received: 5065
			
	
						04 Sep 2020 14:30		 -  04 Sep 2020 14:32		#180686
		by PCW
	
	
		
			
	
	
			 		
													
	
				Replied by PCW on topic PlasmaC  Fiber laser 1Kw head height control + auto focuas			
			
				With a parallel port BOB you would use DB25 pins 10,11,12,13 and 15
as inputs, these map into:
So 10 inputs are available as GPIO inputs for limit switches etc
					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      20So 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.
- taloot
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 175
- Thank you received: 88
			
	
						15 Sep 2020 20:46		 -  15 Sep 2020 21:20		#182270
		by taloot
	
	
		
			
	
	
			 		
													
	
				Replied by taloot on topic PlasmaC  Fiber laser 1Kw head height control + auto focuas			
			
				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
					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.
- phillc54
- 
				  
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 5711
- Thank you received: 2093
			
	
						15 Sep 2020 23:39				#182304
		by phillc54
	
	
		
			
				
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
					
	
	
			 		
													
	
				Replied by phillc54 on topic PlasmaC  Fiber laser 1Kw head height control + auto focuas			
			I don't think it is valid.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?
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
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.also plasmac probe twice.. how can i make it once
		The following user(s) said Thank You: taloot 	
			Please Log in or Create an account to join the conversation.
- taloot
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 175
- Thank you received: 88
			
	
						22 Sep 2020 19:03		 -  22 Sep 2020 19:48		#183331
		by taloot
	
	
		
			
	
	
			 		
													
	
				Replied by taloot on topic PlasmaC  Fiber laser 1Kw head height control + auto focuas			
			
				i rework the capacitance sensing
is there any command allow me to test the head follower aka thc
without running programe
			
					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.
- phillc54
- 
				  
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 5711
- Thank you received: 2093
			
	
						22 Sep 2020 23:21				#183355
		by phillc54
	
	
		
			
	
			
			 		
													
	
				Replied by phillc54 on topic PlasmaC  Fiber laser 1Kw head height control + auto focuas			
			
				No, the only height testing is the probe test.			
					Please Log in or Create an account to join the conversation.
- taloot
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 175
- Thank you received: 88
			
	
						22 Sep 2020 23:40				#183357
		by taloot
	
	
		
			
				
					
	
	
			 		
													
	
				Replied by taloot on topic PlasmaC  Fiber laser 1Kw head height control + auto focuas			
			by mistake i burn one of the fpga pin.. for encoder A,, but B still ok.. can i use B line instead of Ai rework the capacitance sensing
is there any command allow me to test the head follower aka thc
without running programe
		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.103 seconds	
