Omron CS1G/H-CPUxxH Instructions Manual page 679

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Table Data Processing Instructions
Description
Flags
658
Area
Counter Area
DM Area
EM Area without bank
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
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).
R1
Calculation
Name
Label
Error Flag
ER
C
C0000 to C4094
C0000 to C4095
D00000 to
D00000 to D32767
D32766
E00000 to
E00000 to E32767
E32766
En_00000 to
En_0000 to En_32767
En_32766
(n = 0 to C)
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Specified values
---
only
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
C (Table length)
ASCII conversion
FCS value
Operation
ON if the content of C isn't within the specified range of
0001 through FFFF.
OFF in all other cases.
Section 3-17
R1
D

Advertisement

Table of Contents
loading

Table of Contents