예제 #1
0

from post import HNC


h = HNC()

h.rapidTo(X=1, Z=2)
h.rapidTo(A=1, C=2)
h.feed(10)
h.slope(Z=4)


# turn 1" to 0.675 from Z=0 to Z=-3 with 0.025" clearance at feed 10ipm surface speed of 100 and DOC=0.025"

mat_dia = 1.0
finish_dia = 0.678
startz = 0
endz = -3
clearance = 0.025
doc = 0.025

while mat_dia > finish_dia:
    h.rapidTo(X=mat_dia+clearance)
    h.rapidTo(Z=startz+clearance)
    mat_dia = (mat_dia - doc) if mat_dia > finish_dia + doc else finish_dia
    h.rapidTo(X=mat_dia)
    h.slope(Z=endz)


예제 #2
0
파일: ops.py 프로젝트: ianmcmahon/latheCam
        moves = [move(X=stock_dia+c), move(Z=z_start+c)]
        map(self.rapid, moves)

        p.push_modal_feed_ipr()
        p.push_modal_css(100, 2500)

        iter = p.borrow_register(assign="1")

        sub = p.owhile("foo")


        sub.close()

        p.return_register(iter)

        p.pop_modal_feed()
        p.pop_modal_speed()


h = HNC()

o = Ops(h)

h.push_modal_feed_ipm()
h.push_modal_rpm()
o.od_rough(None, 1.0, .750, 0, -3)

for line in h:
    print line