EasyManua.ls Logo

Omron R88A-MCW151-DRT-E - Indevice

Omron R88A-MCW151-DRT-E
276 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
151
Command, function and parameter description Section 6-3
6-3-99 IN
Type: I/O Function
Syntax: IN(
input_number
[
,final_input_number
])
IN
Description: The IN function returns the value of digital inputs.
IN(input_number, final_input_number) will return the binary sum of the
group of inputs. The two arguments must be less than 24 apart.
IN(input_number) with the value for input_number less than 32 will return
the value of the particular channel.
IN (without arguments) will return the binary sum of the first 24 inputs (as
IN(0,23)).
Refer to 3-3-2 Digital I/O for a description of the various types of output and
inputs.
Arguments:
input_number
.
The number of the input for which to return a value. Value: An integer
between 0 and 31.
final_ input_number
.
The number of the last input for which to return a value. Value: An integer
between 0 and 31.
See also: OP
Examples: Example 1
The following lines can be used to move to the position set on a thumbwheel
multiplied by a factor. The thumbwheel is connected to inputs 4, 5, 6 and 7,
and gives output in BCD.
moveloop:
MOVEABS(IN(4,7)*1.5467)
WAIT IDLE
GOTO moveloop
The MOVEABS command is constructed as follows:
Step 1: IN(4,7) will get a number between 0 and 15.
Step 2: The number is multiplied by 1.5467 to get required distance.
Step 3: An absolute move is made to this position.
Example 2
In this example a single input is tested:
test:
WAIT UNTIL IN(4)=ON Conveyor is in position when ON
GOSUB place
6-3-100 INDEVICE
Type: I/O Parameter
Description: The INDEVICE parameter defines the default input device. This device will be
selected for the input commands when the #n option is omitted. The INDE-
VICE parameter is task specific. The following values are supported.
0 RS-232C programming port 0 (default)
1 RS-232C serial port 1
2 RS-422A/485 serial port 2
5 Motion Perfect port 0 user channel 5
6 Motion Perfect port 0 user channel 6
7 Motion Perfect port 0 user channel 7

Table of Contents

Related product manuals