Mitsubishi PLC instruction DHCMOV
The high-speed counter transmits the clear and unclear instructions, [DHCMOV C521 D0 K0] K0 is cleared, and k1 is the value of c251.
The system input needs only one button and no output. Refer to figure 1, only X0. In Figure 3, (a), (b), (c), the current value of the counter is observed and the program execution process is analyzed.
Parallel the Y0 and C0 at the output end. When the Y0 triggers the output once, the C0 will count once.
The counter must have a reset instruction. Technology completion triggers RST C1 reset
If you want to display the count times on the touchscreen, use the MOV command to send the C1 count to register D.
The display component of the touchscreen should select the display address, and the address is the D register you sent. For example, D1 D2 and so on. The display screen can display the data of the register.
The CD port of touch screen is the power supply interface, usually 24V DC. The communication port is the COM port. And that is to download the USB port. There is no technical port. Counting, timing and so on in PLC, all kinds of data are communicated through COM port.