1. Home
  2. /
  3. Factoryio-macros
  4. /
  5. Macro - Machine Breakdown Simulation

Macro - Machine Breakdown Simulation - Factoryio-macros Typing CST Test

Loading…

Macro - Machine Breakdown Simulation — Factoryio-macros Code

A macro simulating a machine breakdown after 60 seconds of continuous operation.

ON Machine.Running FOR 60000ms DO
	Machine.Stop()
	ALERT("Machine breakdown occurred")
END

Factoryio-macros Language Guide

Factory I/O Macros are small, script-like automation blocks used inside Factory I/O to create dynamic behaviors, event logic, interactions, and simulated control sequences within industrial 3D factory environments. They extend built-in components by enabling custom logic without requiring a full PLC.

Primary Use Cases

  • ▸Simple automation logic without a PLC
  • ▸Scene interactions and dynamic events
  • ▸Custom conveyor and machine behaviors
  • ▸Sequential operations and timing sequences
  • ▸Rapid prototyping of logic before PLC deployment

Notable Features

  • ▸Built-in logic blocks (conditions, timers, toggles)
  • ▸Simple event-based scripting
  • ▸Direct access to all Factory I/O tags
  • ▸Real-time update loop for simulation logic
  • ▸PLC-free testing environment

Origin & Creator

Introduced by Real Games (creators of Factory I/O) to provide quick in-simulation logic without external controllers.

Industrial Note

Used heavily in vocational training, prototyping, and early-stage virtual commissioning where a PLC is not available or needs rapid iteration.

More Factoryio-macros Typing Exercises

Macro - Conveyor Delay

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher