EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 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
Page #420 background imageLoading...
Page #420 background image
2 Instruction Descriptions
2-372
NJ-series Instructions Reference Manual (W502)
InOut[] is a BYTE array, so the ninth bit from the least-significant bit is bit 1 in InOut[1]. Therefore, bit 1
in InOut[1] is made TRUE, all other bits in InOut[1] are made FALSE, and all bits in InOut[0] are made
FALSE.
If the number of bits in the elements of InOut[] is larger than the number of bits specified by Size, the
values of the remaining bits are retained. Consider an example where In is BYTE#16#02, Size is
USINT#2, and InOut[] is a WORD array.
Size is USINT#2, so the value is set in the lower 4 bits of InOut[0]. The values of the remaining bits in
InOut[0] (bits 4 to 15) are retained.
Use the Encoder instruction (page 2-374) to find the position of the highest TRUE bit in array elements
that consist of a maximum of 256 bits.
• If the value of Size is 0, all bits in InOut[] change to FALSE.
• Return value Out is not used when the instruction is used in ST.
• An error occurs in the following cases. ENO will be FALSE, and InOut[] will not change.
Additional Information
Precautions for Correct Use
Decoder(BYTE#16#09, USINT#4, abc[3]);
LD ST
abc[3] abc[3]
BYTE#16#09
USINT#4
Decoder
EN ENO
In
Size
InOut
The corresponding
bit is made TRUE.
(2#1001 = Bit 9)
Other bits are
made FALSE.
2
Size
= 16 bits
In
InOut[0]=abc[3]
InOut[1]=abc[4]
0 0 0 0 1 0 0 1
0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0
Size=USINT#4
Bit
0
Bit
7
Bit
0
Bit
7
Bit
0
Bit
7
Bit 2: Changed to TRUE.
Bits 0, 1, and 3: Changed to FALSE.
InOut[0]
0 0 0 0 0 0 1 0
0 1 0 1 1 0 0 1 0 0 1 0 0 1 0 0
Bits 4 to 15: Retained.
Size=USINT#2
2
Size
= 4 bits
In
Bit
4
Bit
0
Bit
15
Bit
0
Bit
7

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals