Logic Instructions - Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Logic Instructions

Instruction
Symbol/Operand
Mnemonic
Code
ASCII TO EIGHT-
DIGIT NUMBER
NUM8
@NUM8
605
S: ASCII text
D: Numeric
ASCII TO SIX-
TEEN-DIGIT-
NUMBER
NUM16
@NUM16
606
S: ASCII text
D: Numeric

3-11 Logic Instructions

Instruction
Symbol/Operand
Mnemonic
Code
LOGICAL AND
ANDW(034)
ANDW
@ANDW
034
I
1
: Input 1
I
2
: Input 2
R: Result word
DOUBLE
ANDL(610)
LOGICAL AND
ANDL
@ANDL
610
I
1
: Input 1
I
2
: Input 2
R: Result word
110
Converts 8 characters of ASCII data to an 8-digit hexadecimal number. Output
NUM8
15
S
S
31
33
S+1
D
35
S+2
S+3
37
ASCII
Hexadecimal
15
12
11
D
5
D+1
1
Converts 16 characters of ASCII data to a 16-digit hexadecimal num-
NUM16
ber.
15
S
S
30
D
32
S+1
34
S+2
36
S+3
S+4
38
S+5
41
S+6
43
S+7
45
ASCII
Hexadecimal
15
12
11
C
D
D
8
9
D+1
4
5
D+2
D+3
0
1
Takes the logical AND of corresponding bits in single words of word
data and/or constants.
I
1
→R
I
. I
1
2
I
2
I
I
1
R
1
1
0
1
0
1
0
0
Takes the logical AND of corresponding bits in double words of word
data and/or constants.
I
1
+1) → (R, R+1)
(I
I
+1). (I
I
,
,
1
1
2
2
I
2
I
I
+1
I
I
1
,
1
2
,
2
R
1
1
1
0
0
1
0
0
Function
8
7
0
32
34
36
38
8
7
4
3
0
6
7
8
2
3
4
8
7
0
31
33
35
37
39
42
44
46
8
7
4
3
0
E
F
A
B
6
7
2
3
Function
R
2
1
0
0
0
+1
R, R+1
1
0
0
0
Section 3-11
Location
Execution condition
Required
Output
Required
Location
Execution condition
Output
Required
Output
Required

Advertisement

Table of Contents
loading

Table of Contents