ASC
0
M0
D0
END
28
ABCD1234
ASC
14
M1
D10
XYZ789
* Up to 8 characters of ASCII codes are stored in D0 to D3.
* Up to 8 characters of ASCII codes are stored in D10 to D13.
* 5 characters are specified. Higher byte of D12: 20H, D13: 2020H.
0
M0
SM1255
END
6
3
M1
SM1255
(Unconvertible instructions are replaced with SM1255)
* Conversion to character string instruction, ASC, is unconvertible and replaced with "SM1255".
* Conversion to character string instruction, ASC, is unconvertible and replaced with "SM1255".
D0
Device
D1
D3
D2
ACPU
QCPU
3231 (H)
3433 (H)
2020 (H)
2041 (H)
3231 (H)
3433 (H)
No change
0041 (H)
D4
No change
No change
D0
Device
D1
D3
D2
ACPU
QCPU
3231 (H)
3433 (H)
4443 (H)
4241 (H)
3231 (H)
3433 (H)
4443 (H)
4241 (H)
D4
No change
0000 (H)
8 characters are specified, and ASCII codes are stored in D0 to D3.
Since "00H" is added after the last character, "0000H" is stored in D4.
When the program is replaced, make sure that D4 is not used elsewhere for other purposes.
Stores ASCII code of up to 32 characters in D10.
The last occupied device is D25 when 32 characters are specified.
However, "0000H" is stored in D26 because "00H" is added after the last character.
0
END
203
103
$MOVP
M1
D10
"1234567890123456"
$MOVP
M0
D0
"ABCD1234"
ACPU "ASC" instruction program
Replacement QCPU program
Modified QCPU program using "$MOV" instruction
(2) Occupied device points
The "ASC" instruction in ACPU occupies 4 words. The number of device points occupied by the "$MOV"
instruction in QCPU may change according to the number of cha1 byte.
When replacing an "ASC" instruction that specifies 8 characters with the "$MOV" instruction in QCPU, the
number of occupied points increases because the stored ASCII code occupies 4 d 1 word (delimiter
"00H"). If the additional device was being used for other purposes, its content will clear to "0000H".
Modification is necessary when the devices used by the "ASC" instr1 are used for other operations.
(Example of stored data)
(1) 5 characters
ACPU: (ASC 1234A D0)
QCPU: ($MOV "1234A" D0)
(2) 8 characters
ACPU: (ASC 1234ABCD D0)
QCPU: ($MOV "1234ABCD" D0)
(3) Program replacement example
137
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