Omron SYSMAC C200HS Operation Manual page 322

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Advanced I/O Instructions
Using the Instruction
IW
00
01
02
to
09
D
2
00
01
02
to
09
10
(1)
Flags
Example
312
If the input word for connecting the 10-key keypad is specified for IW, then opera-
tion will proceed as shown below when the program is executed.
Input from 10-key
Turn ON flags corre-
sponding to 10-key
inputs (The flags re-
main ON until the
next input.)
ON if a key is pressed.
(2)
(3)
(4)
Indirectly addressed DM word is non-existent. (Content of :DM word is
ER:
not BCD, or the DM area boundary has been exceeded.)
D
and D
1
In this example, a program for inputting numbers from the 10-key is shown. As-
sume that the 10-key is connected to IR 000.
The 10-key information input to IR 000 using TKY(––) 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.
Before
0 0 0 0 0 0 0 0
execution
(1)
0 0 0 0 0 0 0 1
(2)
0 0 0 0 0 0 1 0
(3)
0 0 0 0 0 1 0 2
(4)
0 0 0 0 1 0 2 9
+1 are not in the same data area.
1
25313 (Always ON)
00015
Section 5-28
D
+1
D
1
1
"1" key input
"0" key input
"2" key input
"9" key input
TKY(––)
000
DM1000
DM1002
@XFER(70)
#0002
DM1000
DM 0000

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents