494
Instruction Execution Times and Number of Steps Section 10-5
10-5-31 Text String Processing Instructions
Note When a double-length operand is used, add 1 to the value shown in the length
column in the following table.
10-5-32 Task Control Instructions
Note When a double-length operand is used, add 1 to the value shown in the length
column in the following table.
Instruction Mnemonic Code Length
(steps)
(See
note.)
ON execution time (µs) Conditions
CPU6@H-R CPU6@HCPU4@HCPU4@ CJ1M
excluding
CPU11/21
CJ1M
CPU11/21
MOV STRING MOV$ 664 3 45.6 45.6 66.0 84.3 79.3 72.7 Transferring 1 char-
acter
CONCATENATE
STRING
+$ 656 4 86.5 86.5 126.0 167.8 152.0 137.0 1 character + 1
character
GET STRING
LEFT
LEFT$ 652 4 53.0 53.0 77.4 94.3 93.6 84.8 Retrieving 1 char-
acter from 2 char-
acters
GET STRING
RIGHT
RGHT$ 653 4 52.2 52.2 76.3 94.2 92.1 83.3 Retrieving 1 char-
acter from 2 char-
acters
GET STRING MID-
DLE
MID$ 654 5 56.5 56.5 84.6 230.2 93.7 84.0 Retrieving 1 char-
acter from 3 char-
acters
FIND IN STRING FIND$ 660 4 51.4 51.4 77.5 94.1 89.1 96.7 Searching for 1
character from 2
characters
STRING LENGTH LEN$ 650 3 19.8 19.8 28.9 33.4 33.8 30.1 Detecting 1 charac-
ter
REPLACE IN
STRING
RPLC$ 661 6 175.1 175.1 258.7 479.5 300.7 267.7 Replacing the first
of 2 characters with
1 character
DELETE STRING DEL$ 658 5 63.4 63.4 94.2 244.6 11.3 99.3 Deleting the leading
character of 2 char-
acters
EXCHANGE
STRING
XCHG$ 665 3 60.6 60.6 87.2 99.0 105.2 95.3 Exchanging 1 char-
acter with 1 charac-
ter
CLEAR STRING CLR$ 666 2 23.8 23.8 36.0 37.8 42.0 36.8 Clearing 1 charac-
ter
INSERT INTO
STRING
INS$ 657 5 136.5 136.5 200.6 428.9 204.0 208.0 Inserting 1 charac-
ter after the first of
2 characters
String Comparison
Instructions
LD, AND,
OR +=$
670 4 48.5 48.5 69.8 86.2 79.9 68.5 Comparing 1 char-
acter with 1 charac-
ter
LD, AND,
OR +<>$
671
LD, AND,
OR +<$
672
LD, AND,
OR +>$
674
LD, AND,
OR +>=$
675
Instruction Mnemonic Code Length
(steps)
(See
note.)
ON execution time (
µs) Conditions
CPU6@H-R CPU6@HCPU4@HCPU4@ CJ1M
excluding
CPU11/21
CJ1M
CPU11/21
TASK ON TKON 820 2 19.5 19.5 26.3 26.3 33.1 32.5 ---
TASK OFF TKOF 821 2 13.3 13.3 19.0 26.3 19.7 20.2 ---