(o - deposit one patterned layer of polymer) ;Usage: ; Position the platform at the desired center ; of the pattern with the dispense tip at the ; desired dispense height. Turn the HV to the ; desired voltage and arm if desired. Set up ; global variables. For each layer, pass as ; parameters the fiber line angle and offset ; (perpendicular to fiber direction), extrusion ; rate (in mL/mm), movement rate (in mm/min), ; and voltage level (future implementation). ; ;inputs: ; pattern_w pattern width ; pattern_pitch pattern fiber pitch ; pattern_offset fiber angle offset of return lines relative to perpendicular ; pattern_filet fillet radius at corners ; pattern_feed fiber velocity ; return_feed perpendicular return line velocity ; o sub # = #1 # = #2 # = #3 # = #4 # = #5 # = #6 ;# = 20 ;# = 3 ;# = 3 ;# = 3 ;# = 1000 ;# = 2000 # = [fix[#/#/2]+1] (number of loops) # = atan[#/2+#]/[#] (76deg) # = [# / tan[#/2]] (3.842) # = # (3.0) # = [# * sin[90 - #]] (0.932) # = [# * cos[90 - #]] (3.728) # = [180 - #] (104deg) # = [# / tan[#/2]] (2.344) # = # (3.0) # = [# * cos[#]] (0.567) # = [# * sin[#]] (2.274) # = [-#/2 + #/2] ( -8.5) # = [ #/2 + #/2] ( 11.5) # = [ #/2 - #/2] ( 8.5) # = [-#/2 - #/2] (-11.5) # = [#/2] ( 10.0) # = [#/2] ( 10.0) # = 0 # = 0 # = 0 # = [#/2 + #/2] ( 12.0) # = [#/2 + #/2] ( 12.0) # = [-#/2] ( 0.0) # = [-#/2] ( 0.0) G1 X[# + #] Y[#] F[#] (g1 x-6.156 y10.0 f2000) o100 do G1 X[#-#] Y[#] F# G2 I0.0 J[-#] X[#-#] Y[#-#] F# G1 X[#+#] Y[#+#] F# G2 I[-#-#] J[-#+#] X[#-#] Y[#] F# G1 X[#+#] Y[#] F# G2 I0.0 J[#] X[#+#] Y[#+#] F# # = [# + 1] # = [# - #] # = [# - #] # = [# - #] # = [# - #] G1 X[#-#] Y[#-#] F# G2 I[#+#] J[#-#] X[#+#] Y[#] F# o100 while [# LT #] G1 X[#] Y[#] F# ;G1 X[# + #] Y[#] Z100.0 F[#] (g1 x-6.156 y10.0 f2000) o endsub m2