Download Mitsubishi Programmable Controller Training
Transcript
10.4.3 Creating a program for CPU No. 1 Create a program for checking the operation of the multiple CPU. Generally, in the multiple CPU system using the auto refresh setting (between CPUs), the old data and the new data may be mixed when multiple data is communicated between CPUs. The interlock shown in 10.3.1(4) is required to solve the problem. In this exercise, the simple program as below is used since the communication data is 1 word which requires no interlock. Sequence program for QCPU No. 1 The sequence program executes a sampling processing on analog voltages input through CH1 of Q64AD, and then converts the analog values to digital values. The converted digital value is stored in the device for auto refresh (D10). 0 X80 X8E >= D10 K0 Project name Applied 8 Program name MULTI1 MOV U8\G11 D10 BCD D10 K4Y40 END 11 X80 (X0): Module READY X8E (XE): A/D conversion completed flag U8\G11 (Un\G11): Digital output value from CH1 10 - 18 Transfers the digital conversion value to the device for auto refresh. Displays the digital conversion value in 7 segments.