Example #1
0
#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)

# Do the probing itself
(x_points, y_points, probe_result, Z_offset,
 probe_duration) = cy.probeGrid(grid_origin, grid_len, GRID_N_POINTS, Zlift,
                                F_fastMove, F_slowMove)

#x_points = [0.0, 17.5, 35.0, 52.5, 70.0]
#y_points = [0.0, 13.333333333333334, 26.666666666666668, 40.0]
#probe_result = [[0.0, 0.28000000000000114, 0.490000000000002, 0.5599999999999987, 0.5199999999999996], [0.0, 0.1700000000000017, 0.33000000000000185, 0.41000000000000014, 0.41000000000000014], [-0.030000000000001137, 0.08999999999999986, 0.21999999999999886, 0.3000000000000007, 0.33000000000000185], [-0.08999999999999986, 0.03999999999999915, 0.16000000000000014, 0.26000000000000156, 0.28999999999999915]]
#duration = 102.808573

# Save the values to the Z probing file
Z_probing_data['x_points'] = x_points
Z_probing_data['y_points'] = y_points
Z_probing_data['probe_result'] = probe_result
Z_probing_data['probe_duration'] = probe_duration
saveToFile(Z_probing_data, Z_PROBING_FILE)

# Show our grid
print("#--------   Probing results   ---------")
Example #2
0
#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)

# Do the probing itself
(x_points, y_points, probe_result, Z_offset, probe_duration) = cy.probeGrid(grid_origin, grid_len, GRID_N_POINTS, Zlift, F_fastMove, F_slowMove)

#x_points = [0.0, 17.5, 35.0, 52.5, 70.0]
#y_points = [0.0, 13.333333333333334, 26.666666666666668, 40.0]
#probe_result = [[0.0, 0.28000000000000114, 0.490000000000002, 0.5599999999999987, 0.5199999999999996], [0.0, 0.1700000000000017, 0.33000000000000185, 0.41000000000000014, 0.41000000000000014], [-0.030000000000001137, 0.08999999999999986, 0.21999999999999886, 0.3000000000000007, 0.33000000000000185], [-0.08999999999999986, 0.03999999999999915, 0.16000000000000014, 0.26000000000000156, 0.28999999999999915]]
#duration = 102.808573

# Save the values to the Z probing file
Z_probing_data['x_points'] = x_points
Z_probing_data['y_points'] = y_points
Z_probing_data['probe_result'] = probe_result
Z_probing_data['probe_duration'] = probe_duration
saveToFile(Z_probing_data,Z_PROBING_FILE)

# Show our grid
print("#--------   Probing results   ---------")