EasyManuals Logo
Home>Mitsubishi>Controller>FX1N Series

Mitsubishi FX1N Series Programming Manual

Mitsubishi FX1N Series
466 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #243 background imageLoading...
Page #243 background image
FX Series Programmable Controlers Applied Instructions 5
5-123
5.9.5 CCD (FNC 84)
Operation:
This instruction looks at a byte (8 bit) stack of data
from head address (S)for n bytes and checks the
vertical bit pattern for parity and sums the total
data stack. These two pieces of data are then
stored at the destination (D).
Points to note:
a) The SUM of the data stack is stored at destination D while the Parity for the data stack is
stored at D
+1.
b) During the Parity check an even result is indicated by the use of a 0 (zero) while an odd
parity is indicated by a 1 (one).
c) This instruction can be used with the 8 bit/ 16 bit mode flag M8161. The following results will
occur under these circumstances. See page 10-20 for more details about M8161.
It should be noted that when M8161 is OFF ‘n’ represents the number of consecutive bytes
checked by the CCD instruction. When M8161 is ON only the lower bytes of ‘n’ consecutive
words are used.
The ‘SUM’ is quite simply a summation of the total quantity of data in the data stack. The Parity
is checked vertically through the data stack as shown by the shaded areas.
Mnemonic Function
Operands
Program steps
SDn
CCD
FNC 84
(Check
Code)
Checks the
‘vertical’ parity of
adatastack
KnX, KnY, KnM,
KnS
T, C, D
KnY, KnM, KnS
T, C, D
K, H
D
Note:
n=1to256
)
CCD,
CCDP:
7steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X0
K 6
[ S ] [ D ]
D0CCD D100
[ n ]
D100
M8161=OFF
1
Sourse (S)
Bit patterm
H
L
1
1
1
1
1
1
1
1
1
1
1
1
1
FF
FF
1
1
1 1 1 1 1 1 1FF 1
0 0 0 0 0 0 000 0
1 1 1 1 0 0 0 0
0 0 0 0 1 1 1 1
F0
0F
D101
H
L
D102
H
L
Vertical
party
D1
0 0 0 0 0 0 0 0
SUM D0 3FC
D100 L
M8161=ON
1
Sourse (S)
Bit patterm
1 1 1 1 1 1FF 1
00
1 1 1 1 0 0 0 0
0 0 0 0 1 1 1 1
F0
0F
Vertical
party
D1
1 1 1 1 1 1 1 1
SUM D0 2FD
D101 L
D102 L
D103 L
D104 L
D105 L
F0
0F
1 1 1 1 0 0 0 0
0 0 0 0 1 1 1 1
0 0 0 0 0 0 0 0

Table of Contents

Other manuals for Mitsubishi FX1N Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1N Series and is the answer not in the manual?

Mitsubishi FX1N Series Specifications

General IconGeneral
BrandMitsubishi
ModelFX1N Series
CategoryController
LanguageEnglish

Related product manuals