estop_latch

More
16 Jul 2014 02:25 #48819 by johns00056
johns00056 created the topic: estop_latch
I got my e-stop circuit working. I spent three days on this, so I hope it helps someone.

I have a standard style remote emergency stop button that is normally closed and latches open

when pushed.

I ended up using a oneshot component between the e-stop button and the estop-latch.0.fault-in pin.

This effectively converted the remote e-stop button into a momentary contact switch with a 2

second on time.

The e-stop button on the graphical user interface is hard to see so I added a red light on my
pendant.

I used non-meaningful signal names in the HAL file. (july1, july2 etc)

I found it to be too confusing to have signal names that looked similar to the Hal pin names.



# ##################################################
# Standard I/O Block - EStop, Etc 7/9/14 pm john seward
# ##################################################


loadrt oneshot count=2

addf oneshot.0 servo-thread ## to convert e-stop button on pendant to a 2 second momentary switch to allow reset ##

addf oneshot.1 servo-thread ## to prevent through spindle coolant from coming on after e-stop is cleared ## I could not get this to happen ##


setp oneshot.0.width 2 # 2 second on time ###################

setp oneshot.1.width 2



loadrt estop_latch count=1

addf estop-latch.0 servo-thread




loadrt or2 count=1

addf or2.0 servo-thread ## for red light on pendant




loadrt and2 count=2

addf and2.0 servo-thread ## for tsc
addf and2.1 servo-thread ## for spindle on



net july1 iocontrol.0.user-enable-out => estop-latch.0.ok-in

net july22 estop-latch.0.ok-out => iocontrol.0.emc-enable-in

net july3 iocontrol.0.user-request-enable => estop-latch.0.reset #### click estop button out on GUI screen ###############

net july4 hm2_5i25.0.7i84.0.4.input-04-not => oneshot.0.in ##

net july5 oneshot.0.out => estop-latch.0.fault-in # e-stop button on pendant, latches open when pushed ##

net july22 => hm2_5i25.0.7i84.0.4.output-03 #to operate relay 2 closes one pair of contacts in e-stop chain and MOL on spindle VFD #



########### red light ###############

net july6 estop-latch.0.fault-out => or2.0.in0 ## and then on to red light on pendant ##

######### ### hm2_5i25.0.7i84.0.4.input-05 voltage here means that relay 1 (e-stop chain) is open ####

net july7 hm2_5i25.0.7i84.0.4.input-05 => or2.0.in1 ## and then on to red light on pendant ##

net july8 or2.0.out => hm2_5i25.0.7i84.0.4.output-04 ## 24v e-stop red indicator light on pendant ##########






############### spindle ##########################################

net spindleon motion.spindle-on => and2.1.in0

net july22 => and2.1.in1

net july9 => and2.1.out => hm2_5i25.0.7i83.1.0.analogena0 #term.1-&2+ must be true for analogout0 to work,spindle on,wires not connected to anything##




########## through spindle coolant #### tsc #############################################

net july22 => and2.0.in1

######################### setp and2.0.in0 true ## see user defined M code M100 ########

net thruspicool and2.0.out => hm2_5i25.0.7i84.0.4.output-02 ## closes contactor to start through spindle coolant motor ###
### through spindle coolant stops if machine is e-stopped ###############3
###through spindle coolant on only if ??????? is true ### to prevent tsc from coming on after e-stop is cleared ################



#net july6 => oneshot.1.in
# net july10 oneshot.1.out => halcmd setp hm2_5i25.0.7i84.0.4.output-02 false # this did not work to turn off tsc ##
#net july10 oneshot.1.out => setp hm2_5i25.0.7i84.0.4.output-02 false # this did not work ##
######################### 7/9/14 pm e-stop ## above ###################################################################################
Time to create page: 0.093 seconds
Powered by Kunena Forum