3. Use instructions for online diagnosis
In addition to passively viewing the flag, you can also actively diagnose in the program.
FPD (177) (Failure Point Detection): This is an advanced diagnostic command. You can use it to monitor the execution time of an instruction block. For example, monitoring the "extend" action of a cylinder, if the time from issuing the command to the feedback signal of the limit switch exceeds the threshold you set (such as 3 seconds), the FPD command can automatically trigger a FAL alarm and output which input condition (e.g. forward limit switch 000501) was not met. This is equivalent to embedding an intelligent "time relay+logic analyzer" inside the PLC, greatly simplifying the process of locating mechanical equipment faults.
MSG (195) (Display Message): In complex sequential control, you can execute the MSG instruction at the beginning of each step, displaying "Executing: Step 25- Heating" on the human-machine interface or programming software. When the device gets stuck at a certain step, the message on the screen will freeze, informing you of the precise location of the program execution, which is particularly effective for debugging sequential control programs.
