First steps – state machine, timer, trigger

Description

This PLC sample shows the basic syntax as well some basic instructions and functions. The project contains an enumeration-based state machine in which the state change is controlled via the following mechanisms:

  • Timer for time monitoring (TON)
  • Trigger for detecting a rising edge (R_TRIG)

Sample project

TC3_PlcSample_StateMachineTimerTrigger.zip

Further information

In the documentation PLC: Your first TwinCAT 3 PLC project

In the documentation PLC: Programming a PLC project