Mitsubishi Electric MELSEC-Q/L Programming Manual page 455

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• Calculation of horizontal parity value
In 16-bit conversion mode, the shaded part in the following figure becomes the calculation target of the horizontal parity. The
number of ON (1) bits is calculated to determine the parity value which becomes ON (1) when the number of ON (1) bits is
finally odd or OFF (0) when it is finally even, and the horizontal parity value is stored in the device specified by (S)+1.
Device
b7 b6 b5 b4 b3 b2 b1 b0
Upper 8 bits of D0
0
1
Lower 8 bits of D0
0
1
Upper 8 bits of D1
0
0
Lower 8 bits of D1
0
1
Upper 8 bits of D2
1
1
Lower 8 bits of D2
1
1
Horizontal parity
0
1
■8-bit conversion mode (when SM772 is ON)
• For the n points of data (lower 8 bits only) starting from (S), the added data and horizontal parity data are stored in the
devices (D) and (D)+1 respectively. An example when n = 6 is shown below.
• Calculation of addition data value
In 8-bit conversion mode, added data is obtained by adding 6 bytes at the shaded positions in the following figure. Here,
added data is "03B2H" and accordingly "03B2H" is stored in the device specified by (D).
Hexadecimal
Device
Decimal
Upper bits Lower bits
D0
24932
61
H
D1
4219
10
H
D2
-1333
FA
H
D3
-1
FF
H
D4
32761
7F
H
D5
10000
27
H
• Calculation of horizontal parity value
In 8-bit conversion mode, the shaded part in the following figure becomes the calculation target of the horizontal parity. The
number of ON (1) bits is calculated to determine the parity value which becomes ON (1) when the number of ON (1) bits is
finally odd or OFF (0) when it is finally even, and the horizontal parity value is stored in the device specified by (S)+1.
Device
b7 b6 b5 b4 b3 b2 b1 b0
Lower 8 bits of D0
0
1
Lower 8 bits of D1
0
1
Lower 8 bits of D2
1
1
Lower 8 bits of D3
1
1
Lower 8 bits of D4
1
1
Lower 8 bits of D5
0
0
Horizontal parity
1
1
1
0
0
0
0
1
61
1
0
0
1
0
0
64
0
1
0
0
0
0
10
1
1
1
0
1
1
7B
1
1
1
0
1
0
7A
0
0
1
0
1
1
CB
0
1
1
1
1
1
5F
64
H
7B
H
CB
H
FF
H
F9
H
10
H
1
0
0
1
0
0
64
1
1
1
0
1
1
7B
0
0
1
0
1
1
CB
1
1
1
1
1
1
FF
1
1
1
0
0
1
F9
0
1
0
0
0
0
10
0
0
0
0
1
0
C2
H
H
H
H
H
H
This value is stored in
H
H
H
H
H
H
H
This value is stored in
H
D
+1.
+1.
D
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
7
453

Advertisement

Table of Contents
loading

Table of Contents