Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
15 Applied Instructions (External Device (optional device))
15.5 CCD / Check Code
403
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
15.5 CCD / Check Code
Outline
This instruction calculates the horizontal parity value or check sum value of error check method used in
communication or the like. The error check method also includes cyclic redundancy check (CRC). Use the
CRC instruction when determining the CRC value.
As for CRC instruction, refer to section 24.4.
As for complementary number [NEG instruction], refer to section 9.10.
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
Function and operation explanation
1. 16-bit operation(CCD/CCDP)
The addition data and horizontal parity of the data stored in the device specified by are calculated, and
the addition data and the horizontal parity are stored in the device specified by .
In this instruction, the mode usable when calculating includes 16-bit mode and 8-bit mode. As for the
operation of each mode, refer to the following pages.
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
CCD 16 bits Continuous CCD(EN, s, n, d);
CCDP 16 bits Pulse CCDP(EN, s, n, d);
Variable Description Data type
Input
variable
EN Execution condition Bit
Head object device ANY16
Number of data (n=1 to 256) ANY16
Output
variable
ENO Execution state Bit
Head storage destination device of calculated data (2 points occupied)
ARRAY [0..1]
OF ANY16
Operand
type
Bit Devices Word Devices Others
System User Digit designation System User
Special
Unit
Index
Con
stant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifierK H E
""
P
z z z z zzz
S1 S2
z
z
S1
zz
z z z zzz
S1
z
CCD
EN
s
ENO
d
n
CCDP
EN
s
ENO
d
n
CCD
EN
s
n
ENO
d
Command input
Head object device
Number of data
Head storage destination
device of calculated data