1219
CS/CJ/NSJ Series Instructions Reference Manual (W474)
4. Instruction Execution Times and Number of Steps
4-3 CS-series Instruction Execution Times and Number of Steps
4
4-3-30 Text String Processing Instructions
4-3-30 Text String Processing Instructions
*1 The instruction execution time is greatly affected by the amount to data. This will
affect the cycle time. To reduce the effect on the cycle time, background execu-
tion can be specified.
Loop Control LEND (exe-
cution condi-
tion)
1 7.7 8.4 10.9 10.9 Do not loop
(input condition
ON)
6.8 8.0 9.8 9.8 Loop (input con-
dition OFF)
Loop Control LEND (bit
address)
2 9.9 10.7 14.4 14.4 Do not loop (bit
ON)
8.9 10.3 13.0 13.0 Loop (bit OFF)
Loop Control LEND NOT
(bit address)
2 10.2 11.2 14.8 14.8 Do not loop (bit
OFF)
9.3 10.8 13.5 13.5 Loop (bit ON)
Instruction Mnemonic Length
(steps)
ON execution time (µs) Conditions
CS1H
CPU6@H
CS1G
CPU4@H
CS1H
CPU6@
CS1G
CPU4@
MOV STRING MOV$ 3 45.6 66.0 84.3 84.3
Transferring 1 character
*1
CO NCAT ENAT E
STRING
+$ 4 86.5 126.0 167.8 167.8
1 character + 1 character
*1
GET STRING LEFT LEFT$ 4 53.0 77.4 94.3 94.3 Retrieving 1 character from
2 characters
*1
GET STRING RIGHT RGHT$ 4 52.2 76.3 94.2 94.2 Retrieving 1 character from
2 characters
*1
GET STRING MIDDLE MID$ 5 56.5 84.6 230.2 230.2 Retrieving 1 character from
3 characters
*1
FIND IN STRING FIND$ 4 51.4 77.5 94.1 94.1 Searching for 1 character
from 2 characters
*1
STRING LENGTH LEN$ 3 19.8 28.9 33.4 33.4
Detecting 1 character
*1
REPLACE IN STRING RPLC$ 6 175.1 258.7 479.5 479.5 Replacing the first of
2 characters with 1 charac-
ter
*1
DELETE STRING DEL$ 5 63.4 94.2 244.6 244.6 Deleting the leading char-
acter of 2 characters
*1
EXCHANGE STRING XCHG$ 3 60.6 87.2 99.0 99.0 Exchanging 1 character
with 1 character
*1
CLEAR STRING CLR$ 2 23.8 36.0 37.8 37.8
Clearing 1 character
*1
INSERT INTO STRING INS$ 5 136.5 200.6 428.9 428.9 Inserting 1 character after
the first of 2 characters
*1
String Comparison
Instructions
=$ 4 48.5 69.8 86.2 86.2 Comparing 1 character
with 1 character
<>$
<$
+>$
+>=$
Instruction Mnemonic Length
(steps)
ON execution time (µs) Conditions
CS1H
CPU6@H
CS1G
CPU4@H
CS1H
CPU6@
CS1G
CPU4@