Пример #1
0
# Connect to all the devices in the setup
MyApparatus.Connect_All(simulation=True)

# Renaming some elements for the variable explorer
information = MyApparatus['information']

# Setup toolpath generation and run a default
GenTP = Procedures.Toolpath_Generate(MyApparatus, MyExecutor)
GenTP.setMaterial(mat0)
GenTP.setGenerator("Ros3daTPGen")
GenTP.setParameters()  # Creates the parameter structure for TPGen
TP_gen = MyApparatus['information']['ProcedureData']['Toolpath_Generate']

# Create instances of the procedures that will be used
# Procedures that will almost always be used at this level
AlignPrinter = Procedures.User_RoboDaddy_Alignments_Align(
    MyApparatus, MyExecutor)
CalInk = Procedures.User_InkCal_Calibrate(MyApparatus, MyExecutor)
startUp = Procedures.User_StartUp(MyApparatus, MyExecutor)
TraySetup = Procedures.SampleTray_XY_Setup(MyApparatus, MyExecutor)
TrayRun = Procedures.SampleRepeat_Start(MyApparatus, MyExecutor)
DeriveAlignments = Procedures.User_FlexPrinter_Alignments_Derive(
    MyApparatus, MyExecutor)


class Sample(Core.Procedure):
    def Prepare(self):
        self.name = 'Sample'
        self.ProbeMeasure = Procedures.Touch_Probe_A3200_MeasureGrid(
            MyApparatus, MyExecutor)
        self.ProbeCorrect = Procedures.Touch_Probe_A3200_EnableCalibration(
            MyApparatus, MyExecutor)