Remap M6 with rackchange.NGC
- mucy007
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 6
- Thank you received: 0
			
	
						11 May 2021 17:08				#208566
		by mucy007
	
	
		
			
	
			
			 		
													
	
				Remap M6 with rackchange.NGC was created by mucy007			
			
				Hello Dear Linuxcnc community.
Yet again I am stuck. When Executing M6 command after opening drawbar I get warning : Drawbar not open. I checket for function and my I/O are correct. (Tried using atc toggle)
I suspect it has something to do with this part of INI :
[ATC_PINS]
# motion.digital-out-NN pins
# Pin to trigger air blast at TS
CLEAN_TS = 00
# Pin to toogle drawbar, unclamp tool
ATC_OPEN = 01
# motion.digital-in-NN pins
# Spindle specific signals for checking the status of the drawbar and the tool
# Tool pin; low = tool status unknown; high = tool inserted
SENSOR_TOOL = 0
# Drawbar pin; low = closed; high = open
SENSOR_DRAWBAR = 1
I dont understand what PIN does number 1 represents by SENSOR DRAWBAR ?
In my io.hal inputs are like this :
# --- Jianken Spindle Sensor 1 ---
# Mapping sensor 1 in ATC spindle: signal high = tool clamped
net spindle_tool <= hm2_7i96.0.gpio.000.in
# ---DI-11 ---
# --- Jianken Spindle Sensor 2 ---
# Mapping sensor 2 in ATC spindle: signal high = draw bar down (ready to receive tool)
net spindle_drawbar <= hm2_7i96.0.gpio.001.in
So, stupid me, i also tried to put in PIN nr. 000 and 001 - doesnt work. Or is that no Input Pin what you define in INI
Thank you,
Best regards
					Yet again I am stuck. When Executing M6 command after opening drawbar I get warning : Drawbar not open. I checket for function and my I/O are correct. (Tried using atc toggle)
I suspect it has something to do with this part of INI :
[ATC_PINS]
# motion.digital-out-NN pins
# Pin to trigger air blast at TS
CLEAN_TS = 00
# Pin to toogle drawbar, unclamp tool
ATC_OPEN = 01
# motion.digital-in-NN pins
# Spindle specific signals for checking the status of the drawbar and the tool
# Tool pin; low = tool status unknown; high = tool inserted
SENSOR_TOOL = 0
# Drawbar pin; low = closed; high = open
SENSOR_DRAWBAR = 1
I dont understand what PIN does number 1 represents by SENSOR DRAWBAR ?
In my io.hal inputs are like this :
# --- Jianken Spindle Sensor 1 ---
# Mapping sensor 1 in ATC spindle: signal high = tool clamped
net spindle_tool <= hm2_7i96.0.gpio.000.in
# ---DI-11 ---
# --- Jianken Spindle Sensor 2 ---
# Mapping sensor 2 in ATC spindle: signal high = draw bar down (ready to receive tool)
net spindle_drawbar <= hm2_7i96.0.gpio.001.in
So, stupid me, i also tried to put in PIN nr. 000 and 001 - doesnt work. Or is that no Input Pin what you define in INI
Thank you,
Best regards
Please Log in or Create an account to join the conversation.
- chris@cnc
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 529
- Thank you received: 140
			
	
						11 May 2021 19:07				#208574
		by chris@cnc
	
	
		
			
	
			
			 		
													
	
				Replied by chris@cnc on topic Remap M6 with rackchange.NGC			
			
				I guess the sensor is broken.  After opening the drawbar, the sensor has to switch off and it doesn't.
The logic probably checks a signal change during the tool change
					The logic probably checks a signal change during the tool change
Please Log in or Create an account to join the conversation.
- mucy007
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 6
- Thank you received: 0
			
	
						11 May 2021 20:16				#208577
		by mucy007
	
	
		
			
	
			
			 		
													
	
				Replied by mucy007 on topic Remap M6 with rackchange.NGC			
			
				Hello
;Check if Release was ok by watching pin to turn high (L3)
M66 P #<_ini[ATC_PINS]SENSOR_DRAWBAR> L0
Thats the part that checks value.
SENSOR_DRAWBAR is defined in INI.
I didnt find any info on what value should I put into: SENSOR_DRAWBAR
Sensor is working properly.
					;Check if Release was ok by watching pin to turn high (L3)
M66 P #<_ini[ATC_PINS]SENSOR_DRAWBAR> L0
Thats the part that checks value.
SENSOR_DRAWBAR is defined in INI.
I didnt find any info on what value should I put into: SENSOR_DRAWBAR
Sensor is working properly.
Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						12 May 2021 20:29				#208648
		by andypugh
	
	
		
			
				
The only person who would know is the person who wrote your INI file. Where did it come from?
But, we can probably guess.
It appears that SENSOR_DRAWBAR needs to be the number of the G-code digital input that the drawbar sensor is connected to.
You havein the HAL andin the INI, but do you also havein the HAL?
(Reference info: linuxcnc.org/docs/2.8/html/man/man9/motion.9.html )
					
	
	
			 		
													
	
				Replied by andypugh on topic Remap M6 with rackchange.NGC			
			I didnt find any info on what value should I put into: SENSOR_DRAWBAR
The only person who would know is the person who wrote your INI file. Where did it come from?
But, we can probably guess.
It appears that SENSOR_DRAWBAR needs to be the number of the G-code digital input that the drawbar sensor is connected to.
You have
net spindle_drawbar <= hm2_7i96.0.gpio.001.in# Drawbar pin; low = closed; high = open
SENSOR_DRAWBAR = 1net spindle_drawbar motion.digital-in-01(Reference info: linuxcnc.org/docs/2.8/html/man/man9/motion.9.html )
		The following user(s) said Thank You: mucy007 	
			Please Log in or Create an account to join the conversation.
- mucy007
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 6
- Thank you received: 0
			
	
						17 May 2021 18:28				#209254
		by mucy007
	
	
		
			
	
			
			 		
													
	
				Replied by mucy007 on topic Remap M6 with rackchange.NGC			
			
				Hello.
Thank you for showing me the way. Now i get it.
					Thank you for showing me the way. Now i get it.
Please Log in or Create an account to join the conversation.
		Time to create page: 0.241 seconds	
