Categories
Categories

140CPU67160C PLC IO channel is broken, how to modify on the touch screen?

As shown in Figure 2, in program segment 1, it is possible to determine which I point is given to start V6000.0 by modifying VD6200. The disadvantage of the program is that if there are too many IO points, the program is more troublesome to write, and the program memory and scanning cycle time are increased. The principle of program segments 1-3 is the same, and will not be introduced too much here.
Dec 6th,2023 90 Views
First, PLC program
1. Main program
There are not too many programs in the main program, here simply do a start-stop program, as shown in Figure 1, mainly introduces the IO mapping subroutine.
2, I0 mapping subroutine
As shown in Figure 2, in program segment 1, it is possible to determine which I point is given to start V6000.0 by modifying VD6200. The disadvantage of the program is that if there are too many IO points, the program is more troublesome to write, and the program memory and scanning cycle time are increased. The principle of program segments 1-3 is the same, and will not be introduced too much here.
As shown in FIG. 3 and FIG. 4, program segments 4-9 are output mapping programs. By modifying vd6700, vd6704 and vd6708, the corresponding Q point is modified. When VD6700 is equal to 0.0, the output of Q0.0 is associated.
Second, touch screen program
Different touch screen programs are different, here is a simple screen, as shown in Figure 5. The input and output interfaces in the screen can be associated with IO address channels by modifying the values in the following screen. It should be noted that the variable address of the input box needs to correspond to the address in the program.
This function is not recommended for devices with many IO points, and interested people can understand this function. Small devices can do this. It is recommended to do IO mapping in the program, and change the mapping address during each maintenance.