Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
15 Applied Instructions (External Device (optional device))
15.5 CCD / Check Code
405
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)
3. <8-bit conversion mode> When M8161=ON(M8161 is used commonly with RS, ASCI, HEX,
CRC instructions)
Of the data of n points (lower 8 bits only) starting from the device specified by , the addition data and the
horizontal parity data are stored in the device specified by .
M8161 is used commonly with RS, ASCI, HEX, CRC instructions. When using in 8 bits, you must keep always
ON.
M8161 is cleared when changed from RUN to STOP.
Example of 8-bit conversion
In the case of the program shown below, the conversion is executed as follows.
Cautions
1) The instruction is provided in the FXU PLC Ver. 3.07 or later.
The instruction is provided in the FX
0N PLC Ver. 1.20 or later.
2) Instructions of pulse operation type are not provided in the FX
0N PLC.
To execute pulse operation, make the instruction execution condition pulse type.
3) Some restrictions to applicable devices.
S1: The FX
3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S2: The FX
3U and FX3UC PLCs only are applicable.
Example of data content
D 100 K100 = 01100100
D 101 K111
= 0110111
D 102 K100 = 01100100
D 103 K 98 = 01100010
D 104 K123
= 0111101
D 105 K 66 = 01000010
D 106 K100 = 01100100
D 107 K 95
= 0101111
D 108 K210 = 11010010
D 109 K 88 = 01011000
Total K1091
Horizontal parity
1000010
When the number of "1" is an odd number, the horizontal
parity is 1.
When the number of "1" is an even number, the horizontal
parity is 0.
M8000
Head storage destination
device of calculated data
Command input
Head object device
Number of data
CCD
EN
s
n
ENO
d
16 bits
Source data
Ignored Lower 8 bits
8-bit mode
M8161
X010
CCD
EN
s
ENO
d
n
D100
K10
D0
M8000
8-bit mode
M8161
1100001000100000
D 0
1091 in BCD.
1010000100000000
D 1
Horizontal parity