Home > Article > Software Tutorial > How to use counting instructions in Mitsubishi PLC Mitsubishi PLC programming software GX Developer tutorial
How does Mitsubishi PLC use counting instructions? Using counting instructions is a common problem in Mitsubishi PLC programming. In this article, PHP editor Youzi will introduce you to the counting instructions of Mitsubishi PLC, including its type, function and usage. This article will use specific examples to help you understand the application of counting instructions in Mitsubishi PLC programming, from beginners to advanced applications, step by step, and explain the profound things in a simple way. Come read this article, master the skills of using Mitsubishi PLC counting instructions, and improve your PLC programming level!
First, assume that x1 is the detection signal. Use X1 to count C0 in the software. You can directly enter [LD X1] at the left bus. The letters entered are not case-sensitive.
We use C0 as the internal counter. We assume that C0 will act after X1 is detected three times. At this time, [OUT C0 K3] needs to be input. At this time, C0 is similar to a counter coil.
We use the contact of C0 to control Y0. Y0 represents the output and can be used as a warning light. In addition, the production line cleans statistical data every day, so it is necessary to reset and clear the counter in the program.
After writing the program, advanced testing is required to ensure its accuracy. Click the test button on the toolbar to write the program into the simulated PLC.
Then click [Menu Start] in the test dialog box and select the first item [Relay Memory Monitoring].
Then select [Bit Device Window] in the device menu bar of the monitoring window and select X and Y. Only then can the input and output devices be simulated and monitored.
You can simulate the program at this time: press X1 twice, indicating that X1 has a non-self-locking input signal, and press it once to lock itself. In this way the correctness of the program can be monitored.
Note: The simulation screens are all equipped with a self-locking function, and you need to press twice to disconnect the input.
The above is the detailed content of How to use counting instructions in Mitsubishi PLC Mitsubishi PLC programming software GX Developer tutorial. For more information, please follow other related articles on the PHP Chinese website!