# Art lantern shape PLC Ladder programming and wiring experiment

1. Project the necessary equipment, tools, materials

PLC: FX2N-32MR

2, the training content:
1, project description
The shape of an art lantern demonstration board as shown in Figure 6, A, B, C, D, E, F, G, H for the eight lights, a ring distribution. The control requirements are as follows:
Will start switch K1 close, eight lighting light at the same time, namely abcdefgh light at the same time a second, then eight lighting according to counter clockwise rotate the light seconds, a bright 1s > b 1s > C bright bright 1s > d 1s > e bright bright 1s > f light 1 second g > bright 1s > h light 1 second; next eight lighting and light at the same time 1: abcdefgh and light 1 second; and eight lighting according to clockwise rotate the light 1 second, namely h bright 1 g > light 1 second > f light 1 second, e light in the 1s > d 1s > C bright bright 1s > B bright second, a bright light for 1 second. Then repeat the execution in this order. Press the stop switch K1, all the lights off.

2.2 PLC wiring diagram
According to figure 7 to meet the good line. Note that the COM1 and COM2 are connected, as the same as the rated voltage of the indicator light. Input and then start switch and stop switch.
2.3 program design
Figure 8, PLC operation, the program 9 to 19 step, M11 conduction, due to the step program of 50 to 120, M11 dynamic contact closure, respectively control the Y0 Y7 conduction and lantern abcdefgh lit up at the same time, the due t0 delay 1 seconds, so the abcdefgh lit up at the same time 1 seconds. To 1 seconds, the program step 40 t0 dynamic contact closure, shift instruction execution, implementation turns light, namely abcdefgh turns light, because a second clock t0 closed once, so abcdefgh turns light interval for a second. Step 20 to 29, when the M20 pass, the M101 set, the M101 moving contact with MI2 ~ M19 moving contact with the contact, respectively, turns lit H ~ A, that is, G, F, H, E, D, C, B, A turns lit every second. Step 30 to 39, when the M20 pass, the M101 reset, M101 dynamic break contacts with MI2 ~ M19 dynamic contact contact, respectively, in series lit A ~ H, that is, A, B, C, D, E, F, H, G turns lit every second. At any time will stop the switch K2 closed, in the 114th step, the interval reset command so that M19 ~ M12 all reset, all the lights are not bright.
2.4 run and debug program
(1) the ladder diagram program is entered into the computer, check the power supply is correct.
(2) to debug the program.
A. connected to the PLC power supply, the PLC will be RUN state, the K1 closed, observation of A, B, C, D, E, F, G, H, the light show.
K2 will be closed, A, B, B., C, D, E, F,, G, H, the light show.
(3) debug running record.