Omron 3G3MX2 Series User Manual page 138

Drive programming
Hide thumbs Also See for 3G3MX2 Series:
Table of Contents

Advertisement

var  Xw
Command
Assigns the status of the input terminal variable
to <variable> in units of words.
Note The input terminal variable is a variable that detects the status of the inverter's input terminal.
MX2:
Set the Multi-function Input S1 to S7 Selection (C001 to C007) to 56 to 62 (MI1 to MI7: General-purpose input).
Set the Pulse Train Input RP Selection (P003) to 02 (MI8: General-purpose input 8 for Drive Programming).
RX:
Set the Multi-function Input S1 to S8 Selection (C001 to C008) to 56 to 63 (MI1 to MI8: 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. 56) to Xw  1 (bit 0)
X(01)  MI2 (function No. 57) to Xw  2 (bit 1)
X(02)  MI3 (function No. 58) to Xw  4 (bit 2)
X(03)  MI4 (function No. 59) to Xw  8 (bit 3)
X(04)  MI5 (function No. 60) to Xw  16 (bit 4)
X(05)  MI6 (function No. 61) to Xw  32 (bit 5)
X(06)  MI7 (function No. 62) to Xw  64 (bit 6)
X(07)  MI8 (MX2: P003  02/RX: function No. 63) to Xw  128 (bit 7)
For details, refer to 5-2 Input/Output Terminal Variables on page 5-5.
 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).
Block number
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.
Drive Programming User's Manual (I580-E2)
Description
Flowchart method
<variable> :
Xw
The following settings are required. The numerical order of input terminal variables follows the
numerical order of the set general-input numbers.
Flowchart
6 Drive Programming Commands
Variable: any variable
Format
Text language method
<variable> :  Xw
Operation
Argument
Text
6 - 37
6

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

3g3rx series3g3lx series

Table of Contents