EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Logic Instructions

Omron CJ - PROGRAMMING MANUAL 12-2009
448 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...
112
Logic Instructions
Section 3-11
3-11 Logic Instructions
ASCII TO EIGHT-
DIGIT NUMBER
NUM8
@NUM8
605
Converts 8 characters of ASCII data to an 8-digit hexadecimal number. Output
Required
ASCII TO SIX-
TEEN-DIGIT-
NUMBER
NUM16
@NUM16
606
Converts 16 characters of ASCII data to a 16-digit hexadecimal num-
ber.
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
LOGICAL AND
ANDW
@ANDW
034
Output
Required
DOUBLE
LOGICAL AND
ANDL
@ANDL
610
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
NUM8
S
D
S: ASCII text
D: Numeric
31 32
33 34
35 36
37 38
1 2 4 3
5 6 8 7
15 8 7 0
15 8 7 11 12 3 4 0
ASCII
D
S
S+1
S+2
S+3
Hexadecimal
D+1
NUM16
S
D
S: ASCII text
D: Numeric
8 9 B A
C D F E
0
15 8 7 11 12 3 4
0
30 31
32 33
34 35
36 37
38 39
41 42
43 44
45 46
0 1 3 2
4 5 7 6
15 8 7
ASCII
D
S
S+1
S+2
S+3
S+4
S+5
S+6
S+7
Hexadecimal
D+1
D+2
D+3
I
1
I
2
R
ANDW(034)
I
1
: Input 1
I
2
: Input 2
R: Result word
I
1
. I
2
R
I
1
1
1
0
0
I
2
1
0
1
0
R
1
0
0
0
Takes the logical AND of corresponding bits in single words of word
data and/or constants.
ANDL(610)
I
1
I
2
R
I
1
: Input 1
I
2
: Input 2
R: Result word
(I
1
, I
1
+1). (I
2
, I
2
+1) (R, R+1)
I
1
, I
1
+1
1
1
0
0
I
2
, I
2
+1
1
0
1
0
R, R+1
1
0
0
0
Takes the logical AND of corresponding bits in double words of word
data and/or constants.

Table of Contents

Related product manuals