toolPos_draw(toolPos_X, toolPos_Y, etching)
		toolRefresh = 0
	toolRefresh = toolRefresh + 1

def drawTool(x, y):
	global toolPos_point
	pltSetFig(gcodeviewer)
	toolPos_point, = plt.plot(0, 0, markersize=12, c='g', marker='x')
	pltShowNonBlocking()


cy.connect(BAUDRATE, DEVICE, Emulate)

cy.sendCommand("G90\n") # Set absolute positioning

cy.homeZXY() # Home all the axis

drawTool(10, 20) # Show a marker on the gcode plot


# Move to the origin of the grid
cy.moveXY(x_points[0], y_points[0], F_fastMove)


# Warning: Do not lower too much or you will potentially cause damage!
initial_Z_lowering_distance = -10
cy.moveZrelSafe(initial_Z_lowering_distance,F_slowMove) # Move Z towards the PCB (saves some probing time for the first coord)


config = ConfigParser.RawConfigParser()
Z_origin_offset = 0
Example #2
0
from misc import *

import CycloneHost.Controller as cy
# End modules

# Load the Z data file
Z_probing_data = loadFromFile(Z_PROBING_FILE)

print("connecting...")
cy.connect(BAUDRATE, DEVICE, Emulate)

print("G90...")
cy.sendCommand("G90\n")  # Set absolute positioning

print("homexyz..")
cy.homeZXY()  # Home all the axis

# (x,y)
#grid_origin = (0,0)	# Initial point of the grid [mm]
#grid_len = (135,84)	# Distance to probe [mm]
#GRID_N_POINTS = (12,6)	# Number of points
#grid_origin = (0,0)	# Initial point of the grid [mm]
#grid_len = (80,60)	# Distance to probe [mm]

# Use the max values generated when loading the gerber files
grid_origin = Z_probing_data['grid_origin']
grid_len = Z_probing_data['grid_len']

print("dunno...")
# Initial Z lowering for speed up the first probe
cy.moveZrelSafe(
Example #3
0
        toolRefresh = 0
    toolRefresh = toolRefresh + 1


def drawTool(x, y):
    global toolPos_point
    pltSetFig(gcodeviewer)
    toolPos_point, = plt.plot(0, 0, markersize=12, c='g', marker='x')
    pltShowNonBlocking()


cy.connect(BAUDRATE, DEVICE, Emulate)

cy.sendCommand("G90\n")  # Set absolute positioning

cy.homeZXY()  # Home all the axis

drawTool(10, 20)  # Show a marker on the gcode plot

# Move to the origin of the grid
cy.moveXY(x_points[0], y_points[0], F_fastMove)

# Warning: Do not lower too much or you will potentially cause damage!
initial_Z_lowering_distance = -10
cy.moveZrelSafe(
    initial_Z_lowering_distance, F_slowMove
)  # Move Z towards the PCB (saves some probing time for the first coord)

Z_origin_offset = cy.probeZ()
print("Z offset: " + str(Z_origin_offset))
Example #4
0
from misc import *

import CycloneHost.Controller as cy
# End modules

# Load the Z data file
Z_probing_data = loadFromFile(Z_PROBING_FILE)

print("connecting...")
cy.connect(BAUDRATE, DEVICE, Emulate)

print("G90...")
cy.sendCommand("G90\n") # Set absolute positioning

print("homexyz..")
cy.homeZXY() # Home all the axis

# (x,y)
#grid_origin = (0,0)	# Initial point of the grid [mm]
#grid_len = (135,84)	# Distance to probe [mm]
#GRID_N_POINTS = (12,6)	# Number of points
#grid_origin = (0,0)	# Initial point of the grid [mm]
#grid_len = (80,60)	# Distance to probe [mm]

# Use the max values generated when loading the gerber files
grid_origin = Z_probing_data['grid_origin']
grid_len = Z_probing_data['grid_len']

print("dunno...")
# Initial Z lowering for speed up the first probe
cy.moveZrelSafe(initial_Z_lowering_distance,F_slowMove) # Move Z towards the PCB (saves some probing time for the first coord)