![Omron CJ1G-CPUxx Instructions Manual Download Page 679](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491679.webp)
658
Table Data Processing Instructions
Section 3-17
Description
FCS(180) calculates the FCS value for C units of data beginning with the data
in R1, converts the value to ASCII code, and outputs the result to D (for bytes)
or D+1 and D (for words). The settings in C+1 determine whether the units are
words or bytes, whether the data is binary (signed or unsigned) or BCD, and
whether to start with the right or left byte of R1 if bytes are being added.
When bit 13 of C+1 has been set to 1, FCS(180) operates on bytes of data. In
this case, bit 12 determines whether the calculation starts with the rightmost
byte of R1 (bit 12 = 1) or the leftmost byte of R1 (bit 12 = 0).
Flags
Counter Area
C0000 to C4094
C0000 to C4095
DM Area
D00000 to
D32766
D00000 to D32767
EM Area without bank
E00000 to
E32766
E00000 to E32767
EM Area with bank
En_00000 to
En_32766
(n = 0 to C)
En_0000 to En_32767
(n = 0 to C)
Indirect DM/EM
addresses in binary
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
Indirect DM/EM
addresses in BCD
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
Specified values
only
---
Data Registers
---
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
C
R1
D
C (Table length)
Calculation
FCS value
ASCII conversion
R1
Name
Label
Operation
Error Flag
ER
ON if the content of C isn’t within the specified range of
0001 through FFFF.
OFF in all other cases.
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...