Question
How do I create a program to input 2-digit BCD data from a digital switch to CIO 0.08 to CIO 0.15 and then move the data to specified DM Area words?
Answer
Assuming that CIO 0.00 to CIO 0.07 are allocated to other input bits, the following two conditions must be met to create the program.
Use the MOVE DIGITS instruction (MOVD) to Meet Conditions 1 and 2 Above
The MOVE DIGITS instruction (MOVD) can be used to meet the conditions described in items 1 and 2 above.
Additional Information
What Is a Digit?
A "digit" is a single numeral. In this case, the instruction name MOVE DIGITS comes from the meaning to send a BCD value in digit (4-bit) increments.
Program
Operation
Note:For details on the MOVE DIGITS instruction (MOVD), refer to the Instructions Reference Manual for the relevant Programmable Controllers.