Advanced I/O Instructions
Application Example
436
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.
In this example, a program for inputting numbers from the 10-key is shown.
Assume that the 10-key is connected to IR 000.
25313 (Always ON)
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)
DM1000
DM1002
00015
@XFER(70)
#0002
DM1000
DM 0000
Section 5-31
000
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?
Questions and answers