Space Engineers

Space Engineers

[CnC] Soviet War Factory
Survival Ready  [developer] 27 Sep, 2021 @ 8:27pm
Factory conveyor automation
The automation scenario is written in a modified version Easy Automatition 2.0 and contains programs for printing individual parts of the tank, united by the main program @print_tank.

Variable "over" determines the force of override of atmospheric thrusters when the tank leaves the conveyor. You can change it up or down if the tank does not reach the finished product area in front of the factory.

@Variables { over = 90 } @print_tank { @print_reset if Current Angle of Hinge Stop = 0 { Reverse Hinge Stop Delay 1000 Extend Piston Stop } Delay 5000 WriteNew to PBL Printer = "Printer Ready" OnOff_On (SWF, Exhaust pipe) PlaySound Dinamic Alert WriteNew to PBL Printer = "Print Cannon" @print_cannon WriteNew to PBL Printer = "Print Tower" @print_tower WriteNew to PBL Printer = "Print Chassis" @print_base WriteNew to PBL Printer = "Print Wheels" @print_wheel Retract Piston Stop Delay 1000 Reverse Hinge Stop OnOff_Off (SWF, Exhaust pipe) WriteNew to PBL Printer = "Refill Tank" @tank_out StopSound Dinamic Alert WriteNew to PBL Printer = "Print Done" } @print_reset { OnOff_Off Projector OnOff_Off Welder LowerLimit of Piston Ramp 1 = 0 UpperLimit of Piston Ramp 1 = 9.5 Velocity of Piston Ramp 1 = -1 Retract Piston Ramp 1 LowerLimit of Piston Ramp 2 = 0 UpperLimit of Piston Ramp 2 = 6.0 Velocity of Piston Ramp 2 = 1 Extend Piston Ramp 2 LowerLimit of Piston Cannon = 1.0 UpperLimit of Piston Cannon = 2.0 Retract Piston Cannon LowerLimit of Piston Cutter = 1.0 UpperLimit of Piston Cutter = 1.0 LowerLimit of Piston Tower = 3.0 UpperLimit of Piston Tower = 6.5 Extend Piston Tower Delay 3000 if Current Angle of Rotor Cannon < 0 { Reverse Rotor Cannon } Retract Piston Tower if Current Angle of Hinge Charge < 0 { Reverse Hinge Charge } if Current Angle of Hinge Stop > 0 { Retract Piston Stop Reverse Hinge Stop } Extend Piston Gate } @print_cannon { OnOff_On Projector Plate OnOff_On Welder Cannon Delay 500 OnOff_On Projector Cannon Delay 7000 OnOff_Off Welder Cannon Extend Piston Tower Delay 4000 Reverse Rotor Cannon Velocity of Piston Cannon = 1 Extend Piston Cannon OnOff_Off Projector Plate OnOff_Off Projector Cannon } @print_tower { OnOff_On Projector Ramp OnOff_On Welder Ramp Delay 1000 OnOff_On Merge Ramp OnOff_On Projector Tower Delay 7000 Velocity of Piston Ramp 2 = -0.25 Retract Piston Ramp 2 Delay 13000 OnOff_Off Welder Ramp OnOff_Off Projector Tower Detach Hinge Elevation LowerLimit of Piston Tower = 2 Retract Piston Tower Delay 5000 LowerLimit of Piston Cannon = 1.0 Velocity of Piston Cannon = -1 Retract Piston Cannon Delay 2000 Attach Hinge Elevation Delay 500 OnOff_Off Merge Ramp OnOff_Off Tower Merger Extend Piston Tower Reverse Hinge Gatling Delay 2000 ShootOnce Gatling Tower Reverse Hinge Gatling } @print_base { OnOff_On Projector Ramp Velocity of Piston Ramp 2 = 1 Extend Piston Ramp 2 Delay 4000 OnOff_On Welder Ramp Delay 2000 OnOff_On Projector Base Delay 5000 Velocity of Piston Ramp 1 = 0.25 Extend Piston Ramp 1 Delay 40000 Velocity of Piston Ramp 2 = -0.25 Retract Piston Ramp 2 Delay 25000 OnOff_Off Welder Ramp OnOff_Off Projector Base OnOff_Off Projector Ramp Reverse Rotor Cutter Delay 3000 OnOff_On Cutter Top Delay 3000 OnOff_Off Cutter Top Reverse Rotor Cutter Add Top Part Wheel 3x3 Left Add Top Part Wheel 3x3 Right LowerLimit of Piston Tower = 2 Retract Piston Tower Delay 4000 Unlock Magnet Tower Extend Piston Tower Attach Rotor Azimuth Height of Wheel 3x3 = -0.25 Reverse Hinge Bottom Delay 5000 OnOff_On Cutter Bottom Delay 6000 OnOff_Off Cutter Bottom Reverse Hinge Bottom Delay 4000 } @print_wheel { OnOff_On Welder Wheel Velocity of Piston Ramp 1 = 1 Retract Piston Ramp 1 Delay 10000 UpperLimit of Piston Ramp 2 = 8.0 Velocity of Piston Ramp 2 = 0.5 Extend Piston Ramp 2 Delay 16000 LowerLimit of Piston Ramp 2 = 5.0 Velocity of Piston Ramp 2 = 1 Retract Piston Ramp 2 Delay 4000 OnOff_On Projector Ramp OnOff_On Welder Ramp Delay 3000 OnOff_Off Welder Ramp UpperLimit of Piston Ramp 1 = 4.5 Velocity of Piston Ramp 1 = 0.5 Extend Piston Ramp 1 Delay 15000 Velocity of Piston Ramp 1 = 1 Retract Piston Ramp 1 Reverse Hinge Charge Delay 7000 Lock Connector Charge OnOff_Off Welder Wheel } @tank_out { Stockpile_On Small Hydrogen Tank Delay 25000 Stockpile_Off Small Hydrogen Tank OnOff_On (Tank, Atmo forward) OverrideThrust to (Tank, Atmo forward) = over Start Timer Drop Unlock Connector Charge Reverse Hinge Charge UpperLimit of Piston Ramp 1 = 10 Velocity of Piston Ramp 1 = 1.5 Extend Piston Ramp 1 Retract Piston Gate }