EasyManua.ls Logo

Omron 3G3RX Series - Page 188

Omron 3G3RX Series
196 pages
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...
9 - 13
9 LX inverter
Drive Programming User’s Manual (I580-E2)
9-5 Drive Programming Commands
9
9-5-1 I/O Control Commands
Example
In the above example, the status of the input terminals X(02) to X(05) is captured and output to the output terminals Y(00) to Y(03).
var Xw
Command Description Argument
Assigns the status of the input terminal variable
to <variable> in units of words.
Variable: any variable
Format
Flowchart method Text language method
<variable> : Xw
Note The input terminal variable is a variable that detects the status of the inverter's input terminal.
The following settings are required. The numerical order of input terminal variables follows the
numerical order of the set general-input numbers.
Set the Multi-function Input S1 to S7 Selection (C001 to C007) to 49 to 60 (MI1 to MI12: General-purpose input).
When the data is assigned in units of words, zero is read out for the upper byte data and unset input terminal variables.
<Assignment example>
X(00) MI1 (function No. 49) to Xw 1 (bit 0)
X(01) MI2 (function No. 50) to Xw 2 (bit 1)
X(02) MI3 (function No. 51) to Xw 4 (bit 2)
X(03) MI4 (function No. 52) to Xw 8 (bit 3)
X(04) MI5 (function No. 53) to Xw 16 (bit 4)
X(05) MI6 (function No. 54) to Xw 32 (bit 5)
X(06) MI7 (function No. 55) to Xw 64 (bit 6)
X(07) MI8 (function No. 56) to Xw 128 (bit 7)
X(08) MI9 (function No. 57) to Xw 256 (bit 8) (only if expanded I/O for LX is used)
X(09) MI10 (function No. 58) to Xw 512 (bit 9) (only if expanded I/O for LX is used)
X(10) MI11 (function No. 59) to Xw 1024 (bit 10) (only if expanded I/O for LX is used)
X(11) MI12 (function No. 60) to Xw 2048 (bit 11) (only if expanded I/O for LX is used)
Flowchart Text
Block number
Operation
1 Assigns the value of Xw (value of input terminal) to U(00).
2 Divides the value of U(00) by 4 (2-bit right shift) to assign X(02) to bit 0.
3
Performs a logical AND operation on U(00) and 15 (binary: 00001111) and changes the bits higher than X(06) to zero.
4 Assigns U(00) to Yw.
5 Jumps to the block 1: loop_ unconditionally.
<variable> : Xw

Table of Contents

Related product manuals