Troubleshooting – a practical example
When working with motors, it is sometimes necessary to incrementally stop a motor. Sometimes this is due to the process, while other times it is due to the motor or component. To demonstrate practical troubleshooting, recreate the state machine from Chapter 2 with the following modifications, which are the necessary variables to power the new iteration of the state machine:
PROGRAM PLC_PRG VAR machineState : INT := 1; motorSpeedCutOff : INT := 10000; runTime : INT := 2; setSpeed : REAL; numOfParts ...