EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Check Code

Mitsubishi Electric MELSEC-Q/L
1084 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
Loading...
452
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
Check code
CCD(P)
Processing details
Performs addition of the data stored in the devices specified by (S) to (S)+(n)-1 and calculates the horizontal parity, and
stores the added data in the device specified by (D) and the horizontal parity in the device specified by (D)+1. These
instructions support two modes, 16-bit conversion mode and 8-bit conversion mode, used for calculation. The two
conversion modes can be selected by SM772 ON/OFF. The operation in each conversion mode is outlined below.
16-bit conversion mode (when SM772 is OFF)
Eight-bit data each above and below the n points of data starting from (S) is added, and 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 16-bit conversion mode, added data is obtained by adding 6 bytes at the shaded positions in the following figure. Here,
added data is "0315H" and accordingly "0315H" is stored in the device specified by (D).
QnUDVCPU, LCPU: The serial number (first five digits) is "16112" or later.
(S): Start number of target word device (BIN 16 bits)
(D): Start number of word device in which calculated data is to be stored (BIN 16 bits)
n: Number of data blocks (setting range: 1 to 256) (BIN 16 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S) 
(D)  
n  
Basic
High
performance
Process
Redundant
Universal
Ver.
LCPU
Ver.
CCD
CCDP
n
n
S D
S D
CCD
CCDP
Command
Command
Device Decimal
Hexadecimal
Upper bits Lower bits
61
H 64H
10H 7BH
FAH CBH
FFH FFH
7FH F9H
27H 10H
D0 24932
D1 4219
D2 -1333
D3 -1
D4 32761
D5 10000

Table of Contents

Related product manuals