EasyManua.ls Logo

Omron SYSMAC CV Series - Page 550

Omron SYSMAC CV Series
636 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...
Appendix AInstruction Set
540
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
ASCII CONVERT
ASC, jASC
(113)
ASC S Di D
Converts hexadecimal digits from the source
word (S) into 8-bit ASCII values, starting at
leftmost or rightmost half of the starting
destination word (D). The rightmost digit of Di
designates the first source digit. The next digit
to the left gives the number of digits to be
converted. The third digit specifies the whether
the data is to be transferred to the rightmost
(0) or leftmost (1) half of the first destination
word. The leftmost digit specifies parity:
0: none,
1: even, or
2: odd.
S
D
8-bit
data
0 to F
15 08 07 00
S:
CIO
G
A
T/C
DM
DR
IR
Di:
CIO
G
A
T/C
#
DM
DR
IR
D:
CIO
G
A
DM
234
BIT COUNTER
BCNT, jBCNT
(114)
BCNT N St R
Counts the number of ON bits in one or more
words (St is the beginning source word) and
outputs the result to the specified result word
(R). N must be in BCD and gives the number
of words to be counted. All words in which bits
are to be counted must be in the same data
area.
N:
CIO
G
A
T/C
DM
#
DR
IR
St:
CIO
G
A
T/C
DM
R:
CIO
G
A
T/C
DM
DR
IR
236
COLUMN TO LINE
LINE, jLINE
(115)
LINE S Bi D
Copies bit column Bi from the 16 word set S
through S+15 to the 16 bits of word D (00 to
15). In other words, bit Bi of S+n is copied to
bit n of D for n = 00 to 15.
S:
CIO
G
A
T/C
DM
Bi:
CIO
G
A
T/C
#
DM
DR
IR
D:
CIO
G
A
DM
DR
IR
237
LINE TO COLUMN
COLM, jCOLM
(116)
COLM S D Bi
Copies the 16 bits of word S (00 to 15) to bit
column Bi of the 16 word set D through D+15.
In other words, bit n of S is copied to bit Bi of
D+n, for n=00 to 15.
S:
CIO
G
A
T/C
#
DM
D:
CIO
G
A
DM
Bi:
CIO
G
A
T/C
#
DM
DR
IR
238

Table of Contents

Related product manuals