Chapter 6 Applied Instructions 7. When the instruction is executed, the outputs are ON cyclically. If the conditional contact switches from OFF to ON during the execution of the instruction, the outputs are ON cyclically again. 8. After the execution of the instruction is complete, SM693 is ON for a scan cycle. Example 1. When M10 is ON, the instruction is executed. Y0–Y7 form a circuit. The instruction converts the value in D10 into the binary-coded decimal value, and shows the conversion result on first seven-segment display. The instruction converts the value in D11 into the binary-coded decimal value, and shows the conversion result on second seven-segment display.
If the value in D10 or D11 exceeds 9,999, an operation error occurs. 2. When M10 is ON, Y4–Y7 are ON cyclically. It takes twelve scan cycles for Y0.4–Y0.7 to be ON. After the instruction completes, SM693 is ON for a scan cycle. 3. If there is one four-digit seven-segment display, n is between 0–3. 6_ Connect the pins 1, 2, 4, and 8 in parallel, then connect them to Y0–Y3 on the PLC, and connect the latches to Y4–Y7 on the PLC. When M10 is ON, the instruction is executed. Y4–Y7 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 between 4–7.
Connect the pins 1, 2, 4, and 8 in parallel, then connect them to Y10–Y13 on the PLC, and connect the latches to Y4–Y7 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. 6-521