436
Advanced I/O Instructions
Section 5-31
2.
If more than eight digits are input, digits will be deleted beginning with the
leftmost digit.
3.
Input bits not used here can be used as ordinary input bits.
Application Example
In this example, a program for inputting numbers from the 10-key is shown.
Assume that the 10-key is connected to IR 000.
The 10-key information input to IR 000 using TKY(18) is converted to BCD
and stored in DM 1000 and DM 1001. Key information is stored in DM 1002.
IR 00015 is used as an “ENTER key,” and when IR 00015 turns ON, the data
stored in DM 1000 and DM 1001 will be transferred to DM 0000 and DM 0001.
TKY(18)
000
DM1000
DM1002
25313 (Always ON)
@XFER(70)
#0002
DM1000
DM 0000
00015