SERP
0
X1
D10
Search data
storage device
K10
END
20
D0
First matched
location
MOVP
* (Search result: transfer the number of matched data)
D1
Number of
matches
* (Search result: transfer location first matched location)
MOVP
D100
Head device of
searched data
A1
A0
SERP
0
X1
D10
Search data
storage device
K10
END
77
D0
First matched
location
MOVP
(Transfer the number of matched data)
D1
Number of
matches
(Transfer the first matched location found)
MOVP
D100
Head device of
searched data
SD718
First matched
location found
SD719
Number of
matched data
SD718
First matched
location found
SERP
D10
Search data
storage device
K10
D100
Head device of
searched data
D0
First matched
location
0
X1
Instruction
execution
condition
Instruction
execution
condition
Instruction
execution
condition
END
34
* Execute the search instruction: store the result in the accumulators (A0, A1).
* Execute the search instruction: store the result in SD718 and SD719, which are replacement for A0 and A1.
* Execute the search instruction: store the result in the specified devices (D0, D1).
ACPU program
(2) Search instruction
(
SER
)
Replacement QCPU program
Equivalent QCPU program in instruction format
1. Instead of the "$MOV" instruction, which has similar functionality, the ASCII code
conversion instruction "ASC" is replaced with "SM1255" as an unconvertible instruction.
Are the "$MOV" and "ASC" instructions the same?
2. The Transition Handbook (Fundamentals) lists $MOV as a conversion candidate for the
"ASC" instruction. Are there any precautions in this modification?
Frequently asked questions regarding the conversion of ACPU to QCPU program
(Inquiry example)
The "ASC" instruction in ACPU, and the "$MOV" instruction in QCPU are slightly different.
For this reason, "ASC" is replaced with "SM1255" as an unconvertible instruction. Check
the specifications and functions before changing to the "$MOV" instruction.
(Answer)
ASCII code conversion instruction is replaced with "SM1255" because it is an unconvertible instruction and its
specification is incompatible with QCPU. Modification in accordance with the specifications is needed. (For Basic
model QCPUs, it is replaced with "SM999".)
This section explains replacement of the ASCII code conversion instruction "ASC".
(1) Specifications of ASCII codes conversion instruction
The following are the ASCII code conversion instruction specifications for ACPU and QCPU
(1) ACPU (Instruction: ASC)
• Converts up to 8 characters.
• When there are 7 characters or less, it is converted and stored as 8 characters (4 words).
(space (20H) is stored until reaching 8 characters.)
• "P" is not appended to the instruction, however, the operation is only executed when the execution
condition pulses ON.
(2) QCPU (Instruction: $MOV)
• Converts up to 32 characters.
• Device points of storage destination may change (number of char 1 byte (rounded up in units of
word)).
• Execute the operation as long as the execution condition is ON.
(To execute the operation only when the condition for instruction execution pulses ON, change the
instruction to "$MOVP".)
7.1.2 ASCII code conversion instruction "ASC"
134
7.1 Replace instructions with different QCPU instruction format (excluding AnACPU/AnUCPU dedicated instructions)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание Artisan MELSEC-A
Страница 3: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 25: ...MEMO 22 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 26: ...PartⅠ Hardware 23 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 58: ...MEMO 55 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 90: ...MEMO 87 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 110: ...MEMO 107 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 124: ...MEMO 121 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 131: ...MEMO 128 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 132: ...Part Ⅱ Programming 129 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 160: ...Part Ⅲ Application 157 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 192: ...MEMO 189 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 194: ...MEMO 191 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 195: ...MEMO 192 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...