Limit switch errors
- madguernseyboy
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 2
08 Mar 2015 01:21 - 08 Mar 2015 02:12 #56535
by madguernseyboy
Limit switch errors was created by madguernseyboy
Can someone give me advise
i have been getting the following errors when running my Machine
joint 0 on limit switch error
joint 1 on limit switch error
joint 2 on limit switch error
I wanted to use me limit switches for homing and limits
this is my setup.
X two limit switches in Series NC with a pull up resistor and 100nf Cap on each switch (Pin 10)
Y two limit switches in Series NC with a pull up resistor and 100nf Cap on each switch (Pin 11)
Z One limit switche NC with a pull up resistor and 100nf Cap on each switch (Pin 12)
I can use the limit switches for Homing no problem. with the Pin 10, 11, 12 inverted.
when I try to use them for limits the signal is true so i have had to removed the invert on the pins 10, 11, 12
As I said I want to use the switches for homing and limits (I can if necessary add separate homing switches but i want to avoid this if possible)
but Unless I fix the errors i don’t even have limits switches.
additionall. I have just made my soft limits -1000 to 1000 and i am still receiving the error. I don't know why Attached is my INI file.
I hope someone can give me some advise
Regards
Brendan
i have been getting the following errors when running my Machine
joint 0 on limit switch error
joint 1 on limit switch error
joint 2 on limit switch error
I wanted to use me limit switches for homing and limits
this is my setup.
X two limit switches in Series NC with a pull up resistor and 100nf Cap on each switch (Pin 10)
Y two limit switches in Series NC with a pull up resistor and 100nf Cap on each switch (Pin 11)
Z One limit switche NC with a pull up resistor and 100nf Cap on each switch (Pin 12)
I can use the limit switches for Homing no problem. with the Pin 10, 11, 12 inverted.
when I try to use them for limits the signal is true so i have had to removed the invert on the pins 10, 11, 12
As I said I want to use the switches for homing and limits (I can if necessary add separate homing switches but i want to avoid this if possible)
but Unless I fix the errors i don’t even have limits switches.
additionall. I have just made my soft limits -1000 to 1000 and i am still receiving the error. I don't know why Attached is my INI file.
I hope someone can give me some advise
Regards
Brendan
Last edit: 08 Mar 2015 02:12 by madguernseyboy. Reason: added INI file
Please Log in or Create an account to join the conversation.
- madguernseyboy
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 2
08 Mar 2015 06:29 #56540
by madguernseyboy
Replied by madguernseyboy on topic Limit switch errors
Ok
after lots of Internet searching I worked out that i am reciveing noise on my limit switches.
so i added Debounce code to my HAL file.
after lots of Internet searching I worked out that i am reciveing noise on my limit switches.
so i added Debounce code to my HAL file.
# Generated by stepconf 1.1 at Sat Mar 7 18:18:59 2015
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt trivkins
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hal_parport cfg="0x378 out"
setp parport.0.reset-time 5000
loadrt stepgen step_type=0,0,0
# add debounce component
loadrt debounce cfg=3
# set delay (number of iterations of base thread )
setp debounce.0.delay 200
addf parport.0.read base-thread
addf stepgen.make-pulses base-thread
# add debounce to thread
addf debounce.0 base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread
<<< Section removed>>>>
setp parport.0.pin-02-out-invert 1
net xdir => parport.0.pin-02-out
net xstep => parport.0.pin-03-out
setp parport.0.pin-03-out-reset 1
setp parport.0.pin-04-out-invert 1
net ydir => parport.0.pin-04-out
net ystep => parport.0.pin-05-out
setp parport.0.pin-05-out-reset 1
setp parport.0.pin-06-out-invert 1
net zdir => parport.0.pin-06-out
net zstep => parport.0.pin-07-out
setp parport.0.pin-07-out-reset 1
# put debounce between parport input pins and home signals
net debounce-home-x debounce.0.0.in <= parport.0.pin-10-in
net both-home-x debounce.0.0.out
net debounce-home-y debounce.0.1.in <= parport.0.pin-11-in
net both-home-y debounce.0.1.out
net debounce-home-z debounce.0.2.in <= parport.0.pin-12-in
net min-home-z debounce.0.2.out
# these lines were replaced with the debounce lines
#net both-home-x <= parport.0.pin-10-in
#net both-home-y <= parport.0.pin-11-in
#net min-home-z <= parport.0.pin-12-in
<<<Section Removed>>>
Please Log in or Create an account to join the conversation.
09 Mar 2015 23:43 #56577
by andypugh
Replied by andypugh on topic Limit switch errors
Is everything working now?
Please Log in or Create an account to join the conversation.
Time to create page: 0.131 seconds