4. Instruction Execution Times and Number of Steps
Instruction
Loop Control
Loop Control
Loop Control
4-3-30 Text String Processing Instructions
Instruction
MOV STRING
CONCATENATE
STRING
GET STRING LEFT
GET STRING RIGHT
GET STRING MIDDLE
FIND IN STRING
STRING LENGTH
REPLACE IN STRING
DELETE STRING
EXCHANGE STRING
CLEAR STRING
INSERT INTO STRING
String Comparison
Instructions
1196
Mnemonic
Length
(steps)
LEND (exe-
1
7.7
cution condi-
tion)
6.8
LEND (bit
2
9.9
address)
8.9
LEND NOT
2
10.2
(bit address)
9.3
Mnemonic
Length
(steps)
CS1H
CPU6@H
MOV$
3
45.6
+$
4
86.5
LEFT$
4
53.0
RGHT$
4
52.2
MID$
5
56.5
FIND$
4
51.4
LEN$
3
19.8
RPLC$
6
175.1
DEL$
5
63.4
XCHG$
3
60.6
CLR$
2
23.8
INS$
5
136.5
=$
4
48.5
<>$
<$
+>$
+>=$
*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.
ON execution time ( s)
CS1H
CS1G
CS1H
CPU6@H
CPU4@H
CPU6@
8.4
10.9
8.0
9.8
10.7
14.4
10.3
13.0
11.2
14.8
10.8
13.5
ON execution time ( s)
CS1G
CS1H
CPU4@H
CPU6@
66.0
84.3
126.0
167.8
77.4
94.3
76.3
94.2
84.6
230.2
77.5
94.1
28.9
33.4
258.7
479.5
94.2
244.6
87.2
99.0
36.0
37.8
200.6
428.9
69.8
86.2
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Conditions
CS1G
CPU4@
10.9
Do not loop
(input condition
ON)
9.8
Loop (input con-
dition OFF)
14.4
Do not loop (bit
ON)
13.0
Loop (bit OFF)
14.8
Do not loop (bit
OFF)
13.5
Loop (bit ON)
Conditions
CS1G
CPU4@
84.3
Transferring 1 character
167.8
1 character + 1 character
94.3
Retrieving 1 character from
*1
2 characters
94.2
Retrieving 1 character from
*1
2 characters
230.2
Retrieving 1 character from
*1
3 characters
94.1
Searching for 1 character
*1
from 2 characters
33.4
Detecting 1 character
479.5
Replacing the first of
2 characters with 1 charac-
*1
ter
244.6
Deleting the leading char-
acter of 2 characters
99.0
Exchanging 1 character
*1
with 1 character
37.8
Clearing 1 character
428.9
Inserting 1 character after
the first of 2 characters
86.2
Comparing 1 character
with 1 character
*1
*1
*1
*1
*1
*1
Need help?
Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?