Chapter 6 Applied Instructions 2. When X1.0 is ON, Y0.4~Y0.7 are ON cyclically. It takes twelve scan cycles for Y0.4~Y0.7 to be ON. After the execution of the instruction is complete, SM693 is ON for a scan cycle. 3. If there is on four-digit seven-segment display, n is within the range between 0 and 3. After the pins 1, 2, 4, and 8 are connected in parallel, they are connected to Y0.0~Y0.3 on the PLC, and the latches are connected to Y0.4~Y0.7 on the PLC. When X1.0 is ON, the instruction is executed. Y0.4~Y0.7 are ON cyclically, and the value in D10 is shown on seven-segment display. 4. If there are two four-digit seven-segment displays, n is within the range between 4 and 7.
After the pins 1, 2, 4, and 8 are connected in parallel, they are connected to Y0.8~Y0.11 on the PLC, and the latches are connected to Y0.4~Y0.7 on the PLC. The value in D10 is shown on first seven-segment display, and the value in D11 is shown on second seven-segment display. If the values in D10 and D11 are 1234 and 4321 respectively, 1234 is shown on second seven-segment display. 5. The wiring: 1 2 4 8 10 0 10 1 10 2 10 3 + 24VDC 10 3 10 2 10 1 10 0 10 3 10 2 10 1 10 0 V+ 1 2 4 8 V+ 1 2 4 8 First 7-segment display Second 7-segment display Note: The transistor output module AH16AN01T-5A is used in this example. Additional remark: 1.
Whether an output is a positive output or a negative output, and whether there is one four-digit seven-segment display or two four-digit seven-segment displays depend on n . 2. The outputs on the PLC should be NPN transistors whose collectors are open collectors. Besides, an output has to connect a pull-up resistor to the DC power supply (less than 30 V DC). Therefore, when an output is ON, a signal of low potential is output. The positive logic: 6-389 Y0.0 Y0.1 Y0.2 Y0.3 Y0.4 Y0.5 Y0.6 Y0.7 Y0.8 Y0.9 Y0.10 Y0.11 UP ZP Output Binary-coded (Binary-coded Signal decimal value decimal code) b 3 b 2 b 1 b 0 8 4 2 1 A B C D 0 0 0 0 0 0 0 0 1 1 1 1