Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loadrt trivkins
- loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
- loadrt probe_parport
- loadrt hostmot2
- loadrt hm2_pci config="firmware=hm2/5i23/rmsvss6_8.bit num_resolvers=6 num_pwmgens=6 num_3pwmgens=0 num_stepgens=0 sserial_port_0=0000xxxx"
- setp hm2_5i23.0.pwmgen.pwm_frequency 24000
- setp hm2_5i23.0.pwmgen.pdm_frequency 6000
- setp hm2_5i23.0.watchdog.timeout_ns 10000000
- setp hm2_5i23.0.resolver.excitation-khz 2.5
- loadrt pid names=pid.x,pid.z
- loadrt abs names=abs.0,abs.1,abs.2,abs.3
- loadrt lowpass names=lowpass.0,lowpass.1,lowpass.2,lowpass.3
- loadrt scale names=scale.0,scale.1,scale.2,scale.3,scale.4,scale.5
- loadrt classicladder_rt numRungs=150 numSections=15 numBits=30 numWords=20 numTimers=5 numMonostables=5 numCounters=20 numPhysInputs=120 numPhysOutputs=96 numS32in=20 numS32out=20 numFloatIn=5 numFloatOut=5 numTimersIec=30 numArithmExpr=75 numSymbols=600
- loadrt mux16 names=foincr,soincr
- loadrt and2 count=3
- loadrt or2 count=1
- loadrt gearchange
- loadrt encoder num_chan=1
- loadrt mux4 count=1
- loadrt ilowpass count=1
- loadrt debounce cfg=3
- addf hm2_5i23.0.read servo-thread
- addf motion-command-handler servo-thread
- addf motion-controller servo-thread
- addf pid.x.do-pid-calcs servo-thread
- addf pid.z.do-pid-calcs servo-thread
- addf classicladder.0.refresh servo-thread
- addf foincr servo-thread
- addf soincr servo-thread
- addf hm2_5i23.0.write servo-thread
- addf hm2_5i23.0.pet_watchdog servo-thread
- addf lowpass.0 servo-thread
- addf lowpass.1 servo-thread
- addf lowpass.2 servo-thread
- addf lowpass.3 servo-thread
- addf abs.0 servo-thread
- addf abs.1 servo-thread
- addf abs.2 servo-thread
- addf abs.3 servo-thread
- addf scale.0 servo-thread
- addf scale.1 servo-thread
- addf scale.2 servo-thread
- addf scale.3 servo-thread
- addf scale.4 servo-thread
- addf scale.5 servo-thread
- addf and2.0 servo-thread
- addf and2.1 servo-thread
- addf and2.2 servo-thread
- addf or2.0 servo-thread
- addf gearchange.0 servo-thread
- addf encoder.capture-position servo-thread
- addf encoder.update-counters servo-thread
- addf mux4.0 servo-thread
- addf ilowpass.0 servo-thread
- addf debounce.0 servo-thread
- #==============================================================================
- # 15CC I/O
- #==============================================================================
- # 7I70-1 input signals
- net spindle-lube-oil-temp <= hm2_5i23.0.7i70.0.0.input-47
- net headstock-pressure-ok <= hm2_5i23.0.7i70.0.0.input-46
- net spindle-lube-pressure-ok <= hm2_5i23.0.7i70.0.0.input-45
- net hydraulic-fluid-temp <= hm2_5i23.0.7i70.0.0.input-44
- net chip-conveyor-reverse <= hm2_5i23.0.7i70.0.0.input-43
- net jaws-out-rolling-guard <= hm2_5i23.0.7i70.0.0.input-42
- net coolant-flow-off <= hm2_5i23.0.7i70.0.0.input-41
- net coolant-flow-on <= hm2_5i23.0.7i70.0.0.input-40
- net change-tool-pb <= hm2_5i23.0.7i70.0.0.input-39
- net tailstock-retract <= hm2_5i23.0.7i70.0.0.input-38
- net coolant-pump-on/off-sw <= hm2_5i23.0.7i70.0.0.input-37
- net chip-conveyor-forward <= hm2_5i23.0.7i70.0.0.input-36
- net jaws-in-rolling-guard <= hm2_5i23.0.7i70.0.0.input-35
- net rolling-guard-prox <= hm2_5i23.0.7i70.0.0.input-34
- net turret-position-4 <= hm2_5i23.0.7i70.0.0.input-33
- net turret-position-2 <= hm2_5i23.0.7i70.0.0.input-32
- net turret-position-1 <= hm2_5i23.0.7i70.0.0.input-31
- net position-strobe-release <= hm2_5i23.0.7i70.0.0.input-30
- net position-strobe <= hm2_5i23.0.7i70.0.0.input-29
- net turret-in-final-position <= hm2_5i23.0.7i70.0.0.input-28
- net ID-turret-unclamped <= hm2_5i23.0.7i70.0.0.input-27
- net ID-turret-clamped <= hm2_5i23.0.7i70.0.0.input-26
- net manual-tool-sel-d <= hm2_5i23.0.7i70.0.0.input-25
- net manual-tool-sel-c <= hm2_5i23.0.7i70.0.0.input-24
- net m-contactor <= hm2_5i23.0.7i70.0.0.input-23
- net spindle-e-stop <= hm2_5i23.0.7i70.0.0.input-22
- net up-to-speed <= hm2_5i23.0.7i70.0.0.input-21
- net spindle-stalled <= hm2_5i23.0.7i70.0.0.input-20
- net low-speed <= hm2_5i23.0.7i70.0.0.input-19
- net spindle-motor-OL <= hm2_5i23.0.7i70.0.0.input-18
- net x-axis-motor-overload <= hm2_5i23.0.7i70.0.0.input-17
- net x-motor-overtemp <= hm2_5i23.0.7i70.0.0.input-16
- net x-circuit-breaker-tripped <= hm2_5i23.0.7i70.0.0.input-15
- net x-drive-shear-pin-broke <= hm2_5i23.0.7i70.0.0.input-14
- net z-axis-motor-overload <= hm2_5i23.0.7i70.0.0.input-13
- net z-axis-motor-temp <= hm2_5i23.0.7i70.0.0.input-12
- net z-circuit-breaker-tripped <= hm2_5i23.0.7i70.0.0.input-11
- net z-drive-shear-pin-broke <= hm2_5i23.0.7i70.0.0.input-10
- net spindle-motor-temp <= hm2_5i23.0.7i70.0.0.input-09
- net spindle-transformer-temp <= hm2_5i23.0.7i70.0.0.input-08
- net hydraulic-motor-ol <= hm2_5i23.0.7i70.0.0.input-07
- net heat-exchanger-motor-ol <= hm2_5i23.0.7i70.0.0.input-06
- net coolant-motor-ol <= hm2_5i23.0.7i70.0.0.input-05
- net chip-conveyor-motor-ol <= hm2_5i23.0.7i70.0.0.input-04
- net x-axis-motor-voltage <= hm2_5i23.0.7i70.0.0.input-03
- net z-axis-motor-voltage <= hm2_5i23.0.7i70.0.0.input-02
- net spindle-blower-motor-ol <= hm2_5i23.0.7i70.0.0.input-01
- net hydraulic-filter-bypassing <= hm2_5i23.0.7i70.0.0.input-00
- #==============================================================================
- # 7I70-2 input signals
- net tailstock-up-limit <= hm2_5i23.0.7i70.0.1.input-47
- net axis-overtravel-pushbutton <= hm2_5i23.0.7i70.0.1.input-30
- net spindle-stop <= hm2_5i23.0.7i70.0.1.input-29
- net spindle-restart <= hm2_5i23.0.7i70.0.1.input-28
- net z-pos-overtravel <= hm2_5i23.0.7i70.0.1.input-27
- net z-neg-overtravel <= hm2_5i23.0.7i70.0.1.input-26
- net x-pos-overtravel <= hm2_5i23.0.7i70.0.1.input-25
- net x-neg-overtravel <= hm2_5i23.0.7i70.0.1.input-24
- net manual-tool-sel-b <= hm2_5i23.0.7i70.0.1.input-23
- net manual-tool-sel-a <= hm2_5i23.0.7i70.0.1.input-22
- net tailstock-up-sw <= hm2_5i23.0.7i70.0.1.input-21
- net tailstock-down-sw <= hm2_5i23.0.7i70.0.1.input-20
- net feedrate-percent-d <= hm2_5i23.0.7i70.0.1.input-19
- net feedrate-percent-c <= hm2_5i23.0.7i70.0.1.input-18
- net feedrate-percent-b <= hm2_5i23.0.7i70.0.1.input-17
- net feedrate-percent-a <= hm2_5i23.0.7i70.0.1.input-16
- net feed-hold <= hm2_5i23.0.7i70.0.1.input-15
- net cycle-start <= hm2_5i23.0.7i70.0.1.input-14
- net tailstock-advance <= hm2_5i23.0.7i70.0.1.input-13
- net spindle-neutral <= hm2_5i23.0.7i70.0.1.input-12
- net spindle-brake <= hm2_5i23.0.7i70.0.1.input-11
- net spindle-jog <= hm2_5i23.0.7i70.0.1.input-10
- net jaws-in-headstock <= hm2_5i23.0.7i70.0.1.input-09
- net jaws-out-headstock <= hm2_5i23.0.7i70.0.1.input-08
- net chuck-grip-OD <= hm2_5i23.0.7i70.0.1.input-07
- net chuck-grip-ID <= hm2_5i23.0.7i70.0.1.input-06
- net chuck-low-pressure <= hm2_5i23.0.7i70.0.1.input-05
- net lube-oil-in-resevoir <= hm2_5i23.0.7i70.0.1.input-04
- net lube-cycle-completed <= hm2_5i23.0.7i70.0.1.input-03
- net tailstock-up-permission <= hm2_5i23.0.7i70.0.1.input-02
- net e-stop <= hm2_5i23.0.7i70.0.1.input-01
- net tailstock-down-limit <= hm2_5i23.0.7i70.0.1.input-00
- #==============================================================================
- # 7I73 Input signals
- net mpg-a encoder.0.phase-A <= hm2_5i23.0.7i73.0.2.input-08
- net mpg-b encoder.0.phase-B <= hm2_5i23.0.7i73.0.2.input-09
- net mpg-x <= hm2_5i23.0.7i73.0.2.input-16-not
- net mpg-z <= hm2_5i23.0.7i73.0.2.input-17-not
- net scale1 <= hm2_5i23.0.7i73.0.2.input-19-not
- net scale2 <= hm2_5i23.0.7i73.0.2.input-20-not
- #==============================================================================
- # 7I71 output signals
- net master-control-relay <= hm2_5i23.0.7i71.0.3.output-40
- net hydraulic-motor-on <= hm2_5i23.0.7i71.0.3.output-39
- net coolant-motor <= hm2_5i23.0.7i71.0.3.output-38
- net chip-conveyor-fwd <= hm2_5i23.0.7i71.0.3.output-37
- net chip-conveyor-rev <= hm2_5i23.0.7i71.0.3.output-36
- net heat-exchanger-fan <= hm2_5i23.0.7i71.0.3.output-35
- net spindle-blower-motor-cr <= hm2_5i23.0.7i71.0.3.output-34
- net slide-drives-contactor <= hm2_5i23.0.7i71.0.3.output-33
- net x-axis-brake <= hm2_5i23.0.7i71.0.3.output-32
- net jaws-in-sol <= hm2_5i23.0.7i71.0.3.output-31
- net jaws-out-sol <= hm2_5i23.0.7i71.0.3.output-30
- net chuck-low-pressure <= hm2_5i23.0.7i71.0.3.output-29
- net tailstock-up-sol <= hm2_5i23.0.7i71.0.3.output-28
- net tailstock-down-sol <= hm2_5i23.0.7i71.0.3.output-27
- net retract-tailstock-sol <= hm2_5i23.0.7i71.0.3.output-26
- net advance-tailstock-sol <= hm2_5i23.0.7i71.0.3.output-25
- net spindle-low-range-sol <= hm2_5i23.0.7i71.0.3.output-24
- net spindle-high-range-sol <= hm2_5i23.0.7i71.0.3.output-23
- net spindle-brake-sol <= hm2_5i23.0.7i71.0.3.output-22
- net spindle-run-sol <= hm2_5i23.0.7i71.0.3.output-21
- net spindle-free-sol <= hm2_5i23.0.7i71.0.3.output-20
- net outer-tool-coolant-sol <= hm2_5i23.0.7i71.0.3.output-19
- net inner-tool-coolant-sol <= hm2_5i23.0.7i71.0.3.output-18
- net turret-unclamp-sol <= hm2_5i23.0.7i71.0.3.output-17
- net turret-index-sol <= hm2_5i23.0.7i71.0.3.output-16
- net slide-lube-sol <= hm2_5i23.0.7i71.0.3.output-15
- net fault-alert-to-spindle <= hm2_5i23.0.7i71.0.3.output-07
- net spindle-motor-on-command <= hm2_5i23.0.7i71.0.3.output-05
- net spindle-blower-motor-on <= hm2_5i23.0.7i71.0.3.output-04
- net spindle-stop-restart <= hm2_5i23.0.7i71.0.3.output-02
- net in-cycle-light <= hm2_5i23.0.7i71.0.3.output-01
- net feed-hold-light <= hm2_5i23.0.7i71.0.3.output-00
- #==============================================================================
- #----------------- MISC UNUSED I/O ---------------------------------
- #net machine-is-enabled => hm2_5i23.0.7i71.0.3.output-
- #net servos-enabled <= hm2_5i23.0.7i70.0.1.input-
- #net axis-overtravel <= hm2_5i23.0.7i70.0.1.input-
- #==============================================================================
- #----------------------- SRT ADDED LINUX-CNC LOGIC ----------------------------
- net z-pos-overtravel => axis.2.pos-lim-sw-in axis.2.home-sw-in
- net z-neg-overtravel => axis.2.neg-lim-sw-in
- net x-neg-overtravel => axis.0.neg-lim-sw-in
- net x-pos-overtravel => axis.0.pos-lim-sw-in axis.0.home-sw-in
- #net drives-enable => motion.drives-enable
- net x-axis-homing => axis.0.homing
- net z-axis-homing => axis.2.homing
- net program-running <= halui.program.is-running
- net cycle-stop <= halui.program.stop
- net program-pause => halui.program.pause
- net program-run => halui.program.run
- net program-resume => halui.program.resume
- net mode-auto => halui.mode.auto
- net mode-is-auto <= halui.mode.is-auto
- net single-line => halui.program.step
- net program-is-paused <= halui.program.is-paused
- net flood-off => halui.flood.off
- net flood-on => halui.flood.on
- net optional-stop-on => halui.program.optional-stop.on
- net optional-stop-is-on => halui.program.optional-stop.is-on
- net optional-stop-off => halui.program.optional-stop.off
- #==============================================================================
- #setp debounce.0.delay 20
- #net turret-position-44 debounce.0.2.in
- #net turret-position-22 debounce.0.1.in
- #net turret-position-11 debounce.0.0.in
- #net turret-position-4 debounce.0.2.out
- #net turret-position-2 debounce.0.1.out
- #net turret-position-1 debounce.0.0.out
- #==============================================================================
- #----------------------- Jog Pendant -----------------------------------------
- setp encoder.0.x4-mode 0
- setp axis.0.jog-vel-mode 1
- setp axis.2.jog-vel-mode 1
- setp mux4.0.in0 0.000001
- setp mux4.0.in1 0.0000001
- setp mux4.0.in2 0.00000001
- #setp mux4.0.in3 0.0001
- net mpg-scale <= mux4.0.out
- net mpg-scale => axis.0.jog-scale
- net mpg-scale => axis.2.jog-scale
- setp ilowpass.0.gain 0.009
- setp ilowpass.0.scale 10000
- net encoder-counts <= encoder.0.counts
- net encoder-counts => ilowpass.0.in
- net smoothed-encoder-counts <= ilowpass.0.out
- net smoothed-encoder-counts => axis.0.jog-counts
- net smoothed-encoder-counts => axis.2.jog-counts
- net mpg-x <= axis.0.jog-enable
- net mpg-z <= axis.2.jog-enable
- net scale1 <= mux4.0.sel0
- net scale2 <= mux4.0.sel1
- #==============================================================================
- #==============================================================================
- #*******************
- # AXIS X
- #*******************
- setp pid.x.Pgain [AXIS_0]P
- setp pid.x.Igain [AXIS_0]I
- setp pid.x.Dgain [AXIS_0]D
- setp pid.x.bias [AXIS_0]BIAS
- setp pid.x.FF0 [AXIS_0]FF0
- setp pid.x.FF1 [AXIS_0]FF1
- setp pid.x.FF2 [AXIS_0]FF2
- setp pid.x.deadband [AXIS_0]DEADBAND
- setp pid.x.maxoutput [AXIS_0]MAX_OUTPUT
- #net x-index-enable <=> pid.x.index-enable
- net x-enable => pid.x.enable
- net x-output => pid.x.output
- net x-pos-cmd => pid.x.command
- net x-pos-fb => pid.x.feedback
- # ---PWM Generator signals/setup---
- setp hm2_5i23.0.pwmgen.04.output-type 2
- setp hm2_5i23.0.pwmgen.04.scale [AXIS_0]OUTPUT_SCALE
- net x-output => hm2_5i23.0.pwmgen.04.value
- net x-pos-cmd axis.0.motor-pos-cmd
- net x-enable axis.0.amp-enable-out => hm2_5i23.0.pwmgen.04.enable
- # ---Reslover feedback signals/setup---
- setp hm2_5i23.0.resolver.04.scale [AXIS_0]RESOLVER_SCALE
- net x-pos-fb <= hm2_5i23.0.resolver.04.position
- net x-pos-fb => axis.0.motor-pos-fb
- #==============================================================================
- #*******************
- # AXIS Z
- #*******************
- setp pid.z.Pgain [AXIS_2]P
- setp pid.z.Igain [AXIS_2]I
- setp pid.z.Dgain [AXIS_2]D
- setp pid.z.bias [AXIS_2]BIAS
- setp pid.z.FF0 [AXIS_2]FF0
- setp pid.z.FF1 [AXIS_2]FF1
- setp pid.z.FF2 [AXIS_2]FF2
- setp pid.z.deadband [AXIS_2]DEADBAND
- setp pid.z.maxoutput [AXIS_2]MAX_OUTPUT
- #net z-index-enable <=> pid.z.index-enable
- net z-enable => pid.z.enable
- net z-output => pid.z.output
- net z-pos-cmd => pid.z.command
- net z-pos-fb => pid.z.feedback
- # ---PWM Generator signals/setup---
- setp hm2_5i23.0.pwmgen.02.output-type 2
- setp hm2_5i23.0.pwmgen.02.scale [AXIS_2]OUTPUT_SCALE
- net z-output => hm2_5i23.0.pwmgen.02.value
- net z-pos-cmd axis.2.motor-pos-cmd
- net z-enable axis.2.amp-enable-out => hm2_5i23.0.pwmgen.02.enable
- # ---Resolver feedback signals/setup---
- setp hm2_5i23.0.resolver.02.scale [AXIS_2]RESOLVER_SCALE
- net z-pos-fb <= hm2_5i23.0.resolver.02.position
- net z-pos-fb => axis.2.motor-pos-fb
- # ---setup home / limit switch signals---
- #==============================================================================
- #*******************
- # SPINDLE S
- #*******************
- # ---PWM Generator signals/setup---
- setp hm2_5i23.0.pwmgen.00.output-type 2
- setp hm2_5i23.0.pwmgen.00.scale [SPINDLE_9]OUTPUT_SCALE
- net spindle-vel-cmd => hm2_5i23.0.pwmgen.00.value
- net motion.drives-enable => hm2_5i23.0.pwmgen.00.enable
- # ---Resolver feedback signals/setup---
- setp hm2_5i23.0.resolver.00.velocity-scale 1 # motor speed in RPS
- setp hm2_5i23.0.resolver.00.scale [SPINDLE_9]RESOLVER_SCALE
- #setp hm2_5i23.0.resolver.00.lowpass.0
- #setp hm2_5i23.0.resolver.00.index-invert 0
- #setp hm2_5i23.0.resolver.00.index-mask 0
- #setp hm2_5i23.0.resolver.00.index-mask-invert 0
- setp hm2_5i23.0.resolver.00.index-divisor 2
- net spindle-revs-true <= hm2_5i23.0.resolver.00.position
- net spindle-vel-fb <= hm2_5i23.0.resolver.00.velocity
- net spindle-index-enable <=> hm2_5i23.0.resolver.00.index-enable
- #==============================================================================
- # ---setup spindle control signals---
- net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps
- net spindle-junk <= motion.spindle-speed-out
- net spindle-enable <= motion.spindle-on
- net spindle-cw <= motion.spindle-forward
- net spindle-ccw <= motion.spindle-reverse
- #net spindle-brake <= motion.spindle-brake
- net spindle-revs-right => motion.spindle-revs
- net up-to-speed => motion.spindle-at-speed
- net spindle-vel-fb => motion.spindle-speed-in
- net spindle-index-enable <=> motion.spindle-index-enable
- net spindle-inhibit <= motion.spindle-inhibit
- #==============================================================================
- # Spindle position resolver value reverse function
- setp scale.5.gain -1.0
- net spindle-revs-true => scale.5.in
- net spindle-revs-right => scale.5.out
- #==============================================================================
- # Gearchange
- setp gearchange.0.min1 5
- setp gearchange.0.max1 400
- setp gearchange.0.min2 19.75
- setp gearchange.0.max2 2240
- setp gearchange.0.scale2 3.9
- setp gearchange.0.sel 0
- setp scale.3.gain 60
- setp lowpass.3.gain .01
- net spindle-vel-fb => lowpass.0.in
- net spindle-fb-filtered-rps => abs.3.in
- net spindle-fb-filtered-abs-rps => scale.3.in
- net spindle-junk => gearchange.0.speed-in
- net spindle-vel-cmd <= gearchange.0.speed-out
- net spindle-running-in-high-range => gearchange.0.sel
- net spindle-vel <= lowpass.3.out
- #==============================================================================
- # Setup spindle at speed signal
- #sets spindle-at-speed true
- setp scale.0.gain 60
- setp lowpass.0.gain .009
- #net spindle-vel-fb lowpass.0.in
- net spindle-fb-filtered-rps <= lowpass.0.out => abs.0.in
- net spindle-fb-filtered-abs-rps <= abs.0.out => scale.0.in
- net scaled-spindle-vel scale.0.out
- #==============================================================================
- # HALUI signals
- net joint-select-a halui.joint.0.select
- net x-is-homed halui.joint.0.is-homed
- net jog-x-pos halui.jog.0.plus
- net jog-x-neg halui.jog.0.minus
- net jog-x-analog halui.jog.0.analog
- net joint-select-c halui.joint.2.select
- net z-is-homed halui.joint.2.is-homed
- net jog-z-pos halui.jog.2.plus
- net jog-z-neg halui.jog.2.minus
- net jog-z-analog halui.jog.2.analog
- net jog-selected-pos halui.jog.selected.plus
- net jog-selected-neg halui.jog.selected.minus
- net spindle-manual-cw halui.spindle.forward
- net spindle-manual-ccw halui.spindle.reverse
- net spindle-manual-stop halui.spindle.stop
- net spindle-manual-start halui.spindle.start
- net machine-is-on halui.machine.is-on
- net jog-speed halui.jog-speed
- net MDI-mode halui.mode.is-mdi
- #==============================================================================
- # coolant signals
- #net coolant-mist <= iocontrol.0.coolant-mist
- net coolant-flood <= iocontrol.0.coolant-flood
- #==============================================================================
- # probe signal
- net probe-in => motion.probe-input
- #==============================================================================
- # jog button signals
- sets jog-speed 1.000000
- #==============================================================================
- # connect feed overide increments - switches
- setp halui.feed-override.count-enable true
- setp halui.feed-override.direct-value true
- setp halui.feed-override.scale .01
- net feedoverride-incr => halui.feed-override.counts
- #net fo-incr-a => foincr.sel0
- #net fo-incr-b => foincr.sel1
- #net fo-incr-c => foincr.sel2
- #net fo-incr-d => foincr.sel3
- net feedrate-percent-d foincr.sel3
- net feedrate-percent-c foincr.sel2
- net feedrate-percent-b foincr.sel1
- net feedrate-percent-a foincr.sel0
- net feedoverride-incr <= foincr.out-s
- setp foincr.debounce-time 0.200000
- setp foincr.use-graycode False
- setp foincr.suppress-no-input False
- setp foincr.in00 100.000000
- setp foincr.in01 10.000000
- setp foincr.in02 20.000000
- setp foincr.in03 30.000000
- setp foincr.in04 40.000000
- setp foincr.in05 50.000000
- setp foincr.in06 60.000000
- setp foincr.in07 70.000000
- setp foincr.in08 80.000000
- setp foincr.in09 90.000000
- setp foincr.in10 140.000000
- setp foincr.in11 150.000000
- setp foincr.in12 165.000000
- setp foincr.in13 180.000000
- setp foincr.in14 190.000000
- setp foincr.in15 200.000000
- #==============================================================================
- # connect spindle overide increments
- setp halui.spindle-override.count-enable true
- setp halui.spindle-override.direct-value true
- setp halui.spindle-override.scale .01
- net spindleoverride-incr => halui.spindle-override.counts
- net so-incr-a => soincr.sel0
- net so-incr-b => soincr.sel1
- net so-incr-c => soincr.sel2
- net so-incr-d => soincr.sel3
- net spindleoverride-incr <= soincr.out-s
- setp soincr.debounce-time 0.200000
- setp soincr.use-graycode False
- setp soincr.suppress-no-input False
- setp soincr.in00 0.000000
- setp soincr.in01 5.000000
- setp soincr.in02 10.000000
- setp soincr.in03 25.000000
- setp soincr.in04 50.000000
- setp soincr.in05 75.000000
- setp soincr.in06 90.000000
- setp soincr.in07 100.000000
- setp soincr.in08 110.000000
- setp soincr.in09 125.000000
- setp soincr.in10 140.000000
- setp soincr.in11 150.000000
- setp soincr.in12 165.000000
- setp soincr.in13 180.000000
- setp soincr.in14 190.000000
- setp soincr.in15 200.000000
- #==============================================================================
- # ---motion control signals---
- net in-position <= motion.in-position
- net machine-is-enabled <= motion.motion-enabled
- #==============================================================================
- # ---estop signals---
- #net estop-out <= iocontrol.0.user-enable-out
- #net estop-out => iocontrol.0.emc-enable-in
- #==============================================================================
- # ---toolchange signals for custom tool changer---
- net tool-number <= iocontrol.0.tool-prep-number
- net tool-change-request <= iocontrol.0.tool-change
- net tool-change-confirmed => iocontrol.0.tool-changed
- net tool-prepare-request <= iocontrol.0.tool-prepare
- net tool-prepare-confirmed => iocontrol.0.tool-prepared
- #==============================================================================
- loadusr classicladder --nogui 15CCgmoccapy.clp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement