Mitsubishi Electronics FX3G User Manual
593
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
Series
Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.4 FNC188 – CRC / Cyclic Redundancy Check
21
FNC160
-F
NC1
69
69
R
eal
T
T
ime C
lock
C
ontrol
22
FNC17
0-F
NC
179
179
E
xternal D
evice
23
FNC
180
Alternate
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
99
Bl
oc
k D
ata
ata
Op
er
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
g
Con
tro
tro
l
27
FNC2
10-
FNC21
10-
FNC21
9
Dat
a
a
Operati
on 3
28
FNC220
-F
NC2
49
49
Da
ta
C
omp
ari
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
e
e
Operation
30
FNC2
70-
FNC276
FNC276
Ex
-Dev
ice
16-bit conversion mode (while M8161 is OFF)
In this mode, the operation is executed for high-order 8 bits (1 byte) and low-order 8 bits (1 byte) of a device specified
in .
The operation result is stored to one 16-bit device specified in
In this mode, the operation is executed for high-order 8 bits (1 byte) and low-order 8 bits (1 byte) of a device specified
in .
The operation result is stored to one 16-bit device specified in
.
8-bit conversion mode (while M8161 is ON)
In this mode, the operation is executed only for low-order 8 bits (low-order 1 byte) of a device specified by
In this mode, the operation is executed only for low-order 8 bits (low-order 1 byte) of a device specified by
.
With regard to the operation result, low-order 8 bits (1 byte) are stored to a device specified by
, and high-order
8 bits (1 byte) are stored to a device specified by
+1.
Example:
= D100
= D0
n =
6
Device
Contents of target data
8 bits
16 bits
Device storing data for which
the CRC value is generated
the CRC value is generated
Low-order byte
Low-order bits of D100
01H
0301H
High-order byte
High-order bits of D100
03H
+1
Low-order byte
Low-order bits of D101
03H
0203H
High-order byte
High-order bits of D101
02H
+2
Low-order byte
Low-order bits of D102
00H
1400H
High-order byte
High-order bits of D102
14H
...
...
–
+n/2-1
Low-order byte
–
High-order byte
Device storing the generated
CRC value
CRC value
Low-order byte
Low-order bits of D0
E4H
41E4H
High-order byte
High-order bits of D0
41H
Example:
= D100
= D0
n =
6
Device
Contents of target data
Device storing data for
which the CRC value is
generated
which the CRC value is
generated
Low-order byte
Low-order bits of D100
01H
+1
Low-order byte
Low-order bits of D101
03H
+2
Low-order byte
Low-order bits of D102
03H
+3
Low-order byte
Low-order bits of D103
02H
+4
Low-order byte
Low-order bits of D104
00H
+5
Low-order byte
Low-order bits of D105
14H
...
–
+n-1
Low-order byte
–
Device storing the
generated CRC value
generated CRC value
Low-order byte
Low-order bits of D0
E4H
+1
Low-order byte
Low-order bits of D1
41H
S
D
16-bit conversion mode
FNC188
CRC
n
M8161
M8000
Command
input
D
S
S
D
S
S
S
S
D
S
D
D
FNC188
CRC
n
M8161
M8000
8-bit conversion mode
Command
input
D
S
S
D
S
S
S
S
S
S
S
D
D