Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Start the conveyor for 3 seconds whenever a sensor triggers.
float timer = 0;
bool running = false;
void Update() {
if (IOLink.GetBool("EntrySensor") && !running) {
running = true;
timer = 3f;
IOLink.SetBool("Conveyor", true);
}
if (running) {
timer -= Time.deltaTime;
if (timer <= 0) {
IOLink.SetBool("Conveyor", false);
running = false;
}
}
}Factory I/O scripting refers to automating, controlling, and interacting with Factory I/O simulations using C# (or Python via API). It enables programmatic control of virtual industrial environments, input/output devices, and process logic, allowing testing and validation of PLC programs without physical hardware.
Origin & Creator
Developed by Real Games in the mid-2010s to provide a realistic, interactive 3D environment for industrial automation training.
Industrial Note
Used extensively in education for PLC programming, industrial automation labs, and rapid testing of automation logic without requiring physical machinery.