User guide
Page 136
Chapter 4. Programming
133 Variable 99
IN (Binary Numbers Read Input/Output)
[Function] Reads the value from the designated I/O port or flag as a binary number, then stores this value in variable
register 99.
WTOF (Waiting for Input/Output Port · Flag OFF)
[Function] Waits until the designated I/O port or flag turns OFF and does not proceed to the next step. You can use the
time out setting to set a time interval after which I/O waiting will be aborted. The time out setting is in units
of seconds (0.01 ~ 99 sec). When there is a time out setting, the post section turns ON. When there is no time
out setting, the post section is not available.
* Local flags cannot be used in Operand 1.
[Example] WTOF 25 Wait until input port 25 turns OFF.
WTOF 25 10 Wait until input port 25 turns OFF. Time out occurs after a 10 second interval and
the program proceeds to the next step.
= 133 in decimal notation
ßBinary Number
ßInput Port No.
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional W TOF
Input port·
Flag
Time out
Expansion
co ndition
(AN D · OR)
Input
co ndition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional IN
S tart I/O
port·Flag
Finish I/O
port·Flag
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
23 22 21 20 19 18 17 16
ON OFF OFF OFF OFF ON OFF ON
* The maximum input limit for the port is 31 consecutive bits.
[Example] IN 16 23
Read the values from input ports 16 ~ 23 as a binary number and store in variable register 99.
10000101
2
7
+2
2
+2
0
128 + 4 + 1
ò
Binary number
ò