Chapter 4. programming – IAI America S-SEL-E User Manual
Page 141
![background image](/manuals/350298/141/background.png)
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.
E x p a n s i o n
c o n d i t i o n
( A N D · O R )
I n p u t
c o n d i t i o n
( I / O · F l a g )
C o m m a n d
P o s t
( O u t p u t p o r t · F l a g )
C o m m a n d
O p e r a n d 1
O p e r a n d 2
O p t i o n a l
O p t i o n a l
W T O F
I n p u t p o r t ·
F l a g
T i m e o u t
E x p a n s i o n
c o n d i t i o n
( A N D · O R )
I n p u t
c o n d i t i o n
( I / O · F l a g )
C o m m a n d
P o s t
( O u t p u t p o r t · F l a g )
C o m m a n d
O p e r a n d 1
O p e r a n d 2
O p t i o n a l
O p t i o n a l
I N
S t a r t I / O
p o r t · F la g
F in i s h I / O
p o r t · F la g
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
23
22
21
20
19
18
17
16
O N
O FF
O FF
O FF
O FF
O N
O FF
O N
* 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.
1
0
0
0
0
1
0
1
2
7
+
2
2
+
2
0
1 28
+
4
+
1
ò
Binary number
т