Instruction times on Micro PLCs. Schneider Electric PL7 Micro/Junior/Pro - Appendices
Anuncio
Anuncio
Instruction times
6.2
Instruction times on Micro PLCs
At a Glance
Aim of this section
What's in this
Section?
This section describes the time taken by instructions executed on Micro PLCs.
This Section contains the following Maps:
Topic
Boolean instruction performance characteristics
Instruction times for the function blocks
Integer and floating point arithmetic
Instructions on the program and monitoring structures
Digital conversions
Instructions on a string of bits
Instructions on tables of words, double words and floating points
Time management instructions
Instructions on strings of characters
Application-specific and Orphee functions
Explicit input/output instructions
Page
128
TLX DR PL7 xxE
Instruction times
Boolean instruction performance characteristics
Performance characteristics
LD IL
The table below shows the performance characteristics of the boolean instructions.
ST Objects Execution time (
µ s)
37 05/
08/10
37 20
RAM
37 20 card
0,25 0,13 0,19
Size
In word s
1
P
N
LD
LDN
LDR,
LDF
%M1 (1)
%M1[%MW2]
%MW0:X0 (2)
%IWi.j:Xk (3)
%MW0[%MW8]:X0
%KW0[%MW8]:X0
%M1
%M1[%MW2]
0,25
13.10
6.06
77.04
16.29
87.27
0.50
13.01
0,13
12.85
5.75
69.25
15.55
79.05
0.25
12.75
0,19
12.85
5.75
69.25
15.55
79.05
0.38
12.75
2
7
8
12
4
8
1
7
AND,
ANDN , AND (, AND (N , idem OR idem LD,LDN
ANDR, ANDF, AND (R, AND (F, idem OR idem LDR,LDF
P
N
TLX DR PL7 xxE
XOR
XORN
XORR,
XORF
%M1
%M1[%MW2]
%MW0:X0
%IWi.j:Xk
%MW0[%MW8]:X0
%KW0[%MW8]:X0
%M1
%M1[%MW2]
1.25
26.94
12.86
83.84
0.63
26.08
11.88
75.38
33.33
31.48
104.31
94.98
2.25
27.28
1.13
26.13
0.94
26.26
12.06
75.56
31.66
95.16
1.69
26.44
14
18
9
19
5
13
10
14
129
Instruction times
LD IL ST Objects
Operate block
Horizontal comparison block
ST
STN
S
R
%M1 (1)
%M1[%MW2]
S
%MW0:X0
%NW{i}.j:Xk (3)
R
%MW0[%MW8]:X0
Multiple coils on ladder, «cost» of the second and subsequent coils
[ action]
[ LD
[comparison]] block executed
Not executed
0.50
13.10
5.88
76.86
16.41
0.25
0.74
5.55
Additional comparison time 0.00
between 2 %MWi 12.38
Vertical operate block
Convergence
Untracked divergence of a convergence
[ )]
[ ]
[ )] block executed
Ladder, 1 divergence
0.25
0.25
[MPS, MPP,
MRD]
List MPS+MPP
List MRD
0.75
0.25
Execution time (
µ s)
37 05/
08/10
37 20
RAM
37 20 card
0.25
12.85
5.60
69.10
15.65
0.13
0.75
5.40
0.00
11.85
0.13
0.13
0.38
0.13
0.38
12.85
5.60
69.10
15.65
0.19
0.75
5.40
0.00
11.85
0.19
0.19
0.56
0.19
4
1
1
3
1
1
1
0
8
1
4
8
2
7
Size
In word s
Legend
1. This applies to all forcible object bits: %I, %Q, %X, %M, %S,
2. other objects of the same kind: Output bits of function block %Tmi.Q …, Extract bits of system words %SWi:Xj
3. other objects of the same kind: Extract bits of shared words %NW{i}j:Xk, extract bits of I/O %IWi.j.Xk, %QWi.j.Xk words, extract bits of %KW, error bits %Ii.j.ERR.
130
TLX DR PL7 xxE
Instruction times
Instruction times for the function blocks
IEC timer The table below describes the instruction times for the IEC timer function block
LD IL ST Condition s
Execution time (
µ s)
3705/08/10 3720 start timer 43.39
41.11
Size
(words)
3 rising edge on IN falling edge on IN
IN =1
IN =0
IN %TM1
(rising edge)
START
%TM1
IN %TM1
(falling edge)
DOWN
%TM1
IN %TM1
(=1)
IN %TM1
(=0) stop timer 17.47
timer active timer inactive
18.74
17.40
17.01
17.99
16.67
PL7-3 timer The table below describes the instruction times for the PL7-3 timer function block
LD IL ST Condition s
Execution time (
µ s)
3705/08/10 3720
Size
(words)
E =0
START
%T1
STOP
%T1
RESET
%T1 start stop reset
12.63
12.94
12.15
12.15
3 timer active timer inactive
17.55
17.00
TLX DR PL7 xxE
131
Instruction times
Upcounter/ downcounter
Monostable
Register
The table below describes the instruction times for the upcounter/downcounter function block
LD IL ST Condition s
Execution time (
µ s)
3705/08/10 3720
Size
(words) reset, R=1 R %C8 (=1) RESET
%C8 preset, S=1 S %C9 (=1) PRESET
%C9 rising edge on CU
CU %C8
(rising edge) reset preset
UP %C8 up rising edge on CD inactive inputs
CD %C9
(rising edge)
R/S/CU/CD inactive bit
DOWN
%C9 down no action
18.69
20.42
19.92
19.92
13.27
17.92
19.73
19.10
19.10
12.81
3
The table below describes the instruction times for the monostable function block
LD rising edge on S
S=1
IL
S %MN0, rising edge
S %MN0,
S =1/0
ST
START
%MN0
Conditions Execution time (
µ s)
3705/08/10 3720 start 35.08
33.16
active monostable
11.64
11.17
Size
(words)
3
The table below describes the instruction times for the register function block
LD edge on I
IL ST Conditions Execution time (
µ s)
21.90
21.27
Size
(words)
3 edge on O
R=1 inactive inputs
I %R2
(edge)
O %R2
(edge)
R %R1
(=1)
I/O/R, inactive bit
PUT %R2 store
GET %R2 remove from
RESET
%R2 storage reset no action
21.90
16.90
12.61
21.27
16.02
12.19
132
TLX DR PL7 xxE
Drum
Instruction times
The table below describes the instruction times for the drum
LD edge on U
R=1
IL
U %DR0
R %DR1
ST
UP %DR1
RESET
%DR2
Conditions up, fixed per command bit reset, fixed
Execution time (
µ s) Size
(words)
181.37
169.13
3
19.30
19.30
174.15
162.03
inactive inputs
R/U, inactive bit per command bit
19.30
no action, fixed 175.92
19.30
164.00
per command bit
19.30
19.30
TLX DR PL7 xxE
133
Instruction times
Integer and floating point arithmetic
Corrections according to object type
The following time and size pages are given for objects of type %MW0, %MD0 or
%MF0.
The table below gives corrections which should be applied to the values given in the arithmetic instruction times table if different types of objects are used.
Type of Object Object position
Single length immediate value
-
Type of correction
Execution time (
µ s)
3705/08/10 3720
1.10
Size in word s
0
Double length immediate value
Words, double
Words or indexed floating points
-
After the := sign
Value to be subtracted from value mentioned for %MW
Value to be subtracted from value mentioned for %MD or
%MF
Value to be added
Value to be added
1.20
0.75
10.52
11.20
1
10.05
10.60
0
4
5 First operation, when the first operand is not indexed, or assignment
Second operand if the first operand is equally indexed
-
Value to be added
Value to be added
13.37
70.98
12.60
63.50
5
2 %KWi,
%KWi[%MWj]
%KDi, %KFi shared words, input/output words
134
TLX DR PL7 xxE
Instruction times
Correction according to the context of the operation
This table describes the corrections to be made to the values given in the arithmetic instruction times table according to the context of the operation.
Context of the operation
Type of Object Type of correction
Execution time (
µ s)
3705/08/10 3720
Size
37xx
The operation is in at least the second position in the statement
E.g: %MW2 in:=%MW0*%MW1*
%MW2
Operation with result of an operation in parentheses or more urgent
E.g:
%MW0+%MW2+(...)
%MW Value to be added to value mentioned for
%MW
%MD or %MF Value to be added to value mentioned for
%MD or %MF
%MW Value to be added to value mentioned for
%MW
%MD or %MF Value to be added to value mentioned for
%MD or %MF
0.69
0.99
2.86
3.60
0.55
0.75
2.55
3.15
0
0
1
1
TLX DR PL7 xxE
135
Instruction times
Table of instruction times
The table below shows the arithmetic instruction times.
ST Objects Conditions Execution time (
µ s)
3705/08/10 3720 object after the := sign
%MW0
%MD0,%MF0
/
:= %MW0
%MD0 and %MF0
=, <>, <=, <, >, >= %MW0
%MD0
%MF0
AND, OR, XOR %MW0
+, -
*
/, REM
%MD0
%MW0
%MD0
%MF0
%MW0
%MD0
%MF0
%MW0
ABS, -object
NOT
SQRT
INC, DEC
%MD0
%MF0
%MW0
%MD0
%MF0
%MW0
%MD0
%MW0
%MD0
%MF0
%MW0
%MD0
4.81
6.45
4.46
5.15
4.50
5.70
4.30
4.85
9.75
39.63
58.26
10.69
205.21
62.47
7.20
9.97
8.94
10.71
29.06
7.29
9.21
7.29
9.21
62.83
13.01
6.69
7.80
17.02
85.73
165.04
4.86
5.20
9.10
36.50
56.90
10.08
201.38
60.25
6.95
9.53
8.50
10.26
28.39
6.90
8.55
6.90
8.55
61.20
12.50
6.45
7.40
16.70
85.25
158.40
4.40
4.75
3
3
3
3
3
3
3
3
3
3
3
3
4
3
4
4
2
2
3
3
3
3
3
3
2
2
2
2
Size
(words)
37xx
136
TLX DR PL7 xxE
TLX DR PL7 xxE
ST Objects
SHL, SHR, ROL,
ROR
%MW0
%MD0
LN
LOG
EXP
EXPT
TRUNC
COS
SIN
TAN
ACOS
ASIN
ATAN
DEG_TO_RAD
RAD_TO_DEG
%MF0
%MF0
%MF0
%MF0
%MF0
%MF0
%MF0
%MF0
%MF0
%MF0
%MF0
%MF0
%MF0
Instruction times
Conditions for 1 bit for 1 bit per supplementary bit
Execution time (
µ s)
3705/08/10 3720
17.74
20.58
0.063
1371.60
1458.00
1155.60
2988.00
204.00
2829.60
2840.40
2937.60
4082.40
4082.40
2786.40
852.00
720.00
17.05
19.15
1270.00
1350.00
1070.00
2490.00
170.00
2620.00
2630.00
2720.00
3780.00
3780.00
2580.00
710.00
600.00
3
3
3
3
3
3
3
3
3
3
3
3
3
5
5
Size
(words)
37xx
137
Instruction times
Instructions on the program and monitoring structures
Instruction time on the program
The table below shows the instruction time on the program.
ST Execution time (
µ s)
3705/08/10 3720
Jump %Li
Maskevt
Unmaskevt
SRi
Return
41.93
12.21
40.27
48.68
42.18
38.20
10.80
37.10
42.88
38.33
3
1
1
3
3
Size (words)
37xx
138
TLX DR PL7 xxE
Instruction times
Performance of the monitoring structures
The table below shows the instruction times of the monitoring structure type.
ST
<cond>
Execution time (
µ s)
3705/08/10 condition evaluation
3720
Size (words)
37xx forcible bit comparison if <cond > then
<action> end_if; condition true condition false
(jump) see LD %M1 boolean instruction see comparisons =,<,> etc.
the times and sizes below should be added to those of the action contained in the structure
3.60
5.55
If <cond> then <action1> else <action2> end_if; condition true 9.15
3.30
5.40
8.70
2
4
5.40
condition false 5.55
while <cond> do.<action> end_while go into the loop with loop iteration exiting the loop
9.15
5.55
repeat <action> until <cond> end_repeat go into the loop with loop iteration
5.55
last entry 3.60
for <word1:=word2>to <word3> do <action> end_for
8.58
input in the for, executed only once go into the loop with loop iteration exit the loop
29.38
20.42
8.70
5.40
5.40
3.30
8.25
27.35
19.40
2
2
15
TLX DR PL7 xxE
139
Instruction times
Digital conversions
Performance times
The table below shows the digital conversion instruction times.
ST
BCD_TO_INT
INT_TO_BCD
GRAY_TO_INT
INT_TO_REAL
DINT_TO_REAL
REAL_TO_INT
REAL_TO_DINT
DBCD_TO_DINT
DBCD_TO_INT
DINT_TO_DBCD
INT_TO_DBCD
Execution time (
µ s)
3705/08/10 3720 RAM
25.03
21.66
24.55
21.15
36.98
40.90
33.32
58.75
36.55
40.75
32.55
58.55
44.59
1 324.85
1 265.54
1 124.85
564.85
44.05
1 065.15
925.70
825.15
445.15
3720 card
24.55
21.15
36.55
40.75
32.55
58.55
44.05
1 134.70
986.15
879.10
474.40
5
5
3
5
5
3
3
3
3
3
3
Size (words)
37xx
140
TLX DR PL7 xxE
Instruction times
Instructions on a string of bits
Initializing a table of bits
This table shows the instruction times of a table of bits.
ST
%M30:8:= 0
%M30:16:= 1
%M30:24:= 2
%M30:32:= 2
Size (bit)
8
16
24
32
Execution time (
µ s)
3705/08/10 3720
RAM
19.38
20.38
18.88
19.88
24.25
25.25
23.35
24.35
3720 card
Size (words)
37xx
18.88
19.88
23.35
24.35
6
6
6
6
Copying a table of bits into a table of bits
This table shows the instruction times for copying a table of bits into another table of bits.
ST Size (bit)
%M30:8:= %M20:8 8
%M30:16:= %M20:16 16
%M30:24:= %M20:24 24
%M30:32:= %M20:32 32
%M30:16:=
COPY_BIT(%M20:16)
16
32
128
Execution time (
µ s)
3705/08/10 3720
RAM
25.54
26.16
33.41
35.91
281.63
440.82
1261.22
24.79
25.41
32.26
34.76
230.00
360.00
3720 card
24.79
25.41
32.26
34.76
244.95
383.40
1030.00
1096.95
Size
(words)
37xx
6
6
6
6
9
9
9
TLX DR PL7 xxE
141
Instruction times
Logic instructions on a table of bits
ST
The table below shows the logic instruction times on a table of bits.
Size
(bits)
Execution time (
µ s)
3705/08/10 3720 RAM 3720 card
AND_ARX, OR_ARX, XOR_ARX
%M0:16:= AND_ARX(%M30:16,%M50:16)
%M0:32:= AND_ARX(%M30:32,%M50:32)
%M0:128:=
AND_ARX(%M30:128,%M50:128)
NOT_ARX
%M0:16:= NOT_ARX(%M30:16)
16
32
128
16
32
128
397.42
620.97
1 887.74
281.63
440.82
1261.22
320.00
500.00
1 520.00
230.00
360.00
1030.00
340.80
532.50
1 618.80
244.95
383.40
1096.95
12
12
12
9
9
9
Size
(words)
37xx
Copying a table of bits into a table of words
ST
The table below shows the instruction times for copying a table of bits into a table of words.
%MW1:= %M30:8
%MW1:= %M30:16
%MD2:= %M30:24
%MD2:= %M30:32
%MW1:4:= BIT_W(%M40:80,0,17,2)
%MD1:4:= BIT_D(%M30:80,0,33,0)
Size
(bits)
8
16
24
32
17
33
Execution time (
µ s)
3705/08/10 3720 RAM 3720 card
14.84
16.34
14.54
16.04
501.43
379.53
14.36
15.86
14.23
15.73
390.00
530.00
14,36
15.86
14.23
15.73
415.35
564.45
5
5
5
16
16
Size
(words)
37xx
5
142
TLX DR PL7 xxE
Instruction times
Copying a table of words into a table of bits
ST
This table shows the instruction times for copying a table of words into a table of bits.
%M30:8:= %MW1
%M30:16:= %MW2
%M30:24:= %MD1
%M30:32:= %MD3
%M30:32:= W_BIT(%MW200:2,0,2,0)
%M30:32:= D_BIT(%MD0:1,0,2,0)
Size
(bits)
8
16
24
32
32
32
Execution time (
µ s)
3705/08/10 3720 RAM 3720 card
19.28
20.28
21.20
22.20
488.68
567.33
18.68
19.68
20.37
21.37
370.00
460.00
18.68
19.68
20.37
21.37
394.05
489.90
5
5
5
Size
(words)
37xx
5
16
16
TLX DR PL7 xxE
143
Instruction times
Instructions on tables of words, double words and floating points
Initializing a table of words with one word
The table below shows the instruction times for initializing a table of words with one word.
ST
%MW0:10:= %MW100
%MD0:10:= %MD100
Size (of the table of words)
10 words
Execution time (
µ s)
3705/08/10 3720
RAM
47,46 42,15 per word 0,34
10 double words 81,27 per double word
0,20
74,45
2,87
3720 card
Size
(words)
37xx
42,15
0,20
74,45
2,65
7
7
2,65
Copying a table of words into a table of words
This table shows the instruction times for copying a table of words into another table of words.
ST Size (of the table of words)
Execution time (
µ s)
3705/08/10 3720
RAM
%MW0:10:=%MW20:10; 10 words per word
95,80
0,77
%MD0:10:=%MD20:10; 10 double words 111,13 per double word 1,54
85,35
0,50
97,65
1,00
3720 card
Size
(words)
37xx
85,35
0,50
97,65
1,00
9
9
144
TLX DR PL7 xxE
Instruction times
Arithmetic and logic instructions between 2 tables of words
The table below shows the arithmetic and logic instruction times between two tables of words.
ST Size (of the table of words)
Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
Size
(words)
37xx
+, -
%MW0:10:=
%MW10:10 + %MW20:10;
%MD0:10:=
%MD10:10+%MD20:10;
10 words per word
10 double words per double word
*
%MW0:10:=
%MW10:10 * %MW20:10;
%MD0:10:=
%MD10:10 * %MD20:10;
10 words per word
10 double words per double word
/, REM
%MW0:10:=
%MW10:10 / %MW20:10;
%MD0:10:=
%MD10:10 / %MD20:10;
10 words per word
10 double words per double word
AND, OR, XOR
%MW0:10:=%MW10:10
AND %MW20:10;
%MD0:10:=%MD10:10 AND
%MD20:10;
10 words per word
10 double words per double word
168,04
7,13
239,17
13,84
189,32
9,27
710,35
61,64
151,95
6,35
214,40
175,40
8,70
603,80
147,40
5,85
215,90
12,40
151,95
6,35
214,40
12,25
175,40
8,70
603,80
51,20
147,40
5,85
215,90
12,40
14
14
14
14
224,76 181,40 181,40 14
13,14 9,30 9,30
2 192,38 2 157,35 2 157,35 14
209,16
163,69
6,66
240,14
13,94
12,25
51,20
206,55 206,55
14
14
TLX DR PL7 xxE
145
Instruction times
Arithmetic and logic instructions between 1 table of words and 1 word
The table below shows the arithmetic and logic instruction times between 1 table of words and 1 word.
ST Size (of the table of words)
Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
Size
(words
)
37xx
+, -
%MW0:10:=%MW10:10 +
%MW20; or %MW0:10:= %MW20 +
%MW10:10
%MD0:10:=%MD10:10 +
%MD20;
10 words 119,12 per word 2,87
10 double words per double word
159,68
6,57
108,55
2,65
147,45
6,25
108,55
2,65
147,45
6,25
12
12
*
%MW0:10:=
%MW20*%MW10:10;
10 words 166,86 per word 7,94
132,45
5,05
132,45
5,05
12
%MD0:10:=
%MD20*%MD10:10;
10 double words per double word
587,01
49,18
522,95
43,80
522,95
43,80
12
/, REM
%MW0:10:=%MW10:10 /
%MW30;
10 words 196,69 per word 10,86
155,85
7,30
155,85
7,30
15
%MD0:10:=
MD10:10 / %MD30
AND, OR, XOR
%MW0:10:=%MW10:10 AND
%MW20;
%MD0:10:=%MD20 AND
%MD10:10;
10 words 117,20 per word 2,64
10 double words per double word
587,01
6,47
NOT
10 double words per double word
2 230,17 2 173,95 2 173,95 12
213,66 208,90 208,90
106,45
2,40
522,95
6,15
106,45
2,40
522,95
6,15
12
12
146
TLX DR PL7 xxE
Instruction times
ST Size (of the table of words)
%MW0:10:=NOT(%MW10:10); 10 words
Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
110,28 per word 2,96
100,25
2,75
100,25
2,75
Size
(words
)
37xx
9
%MD0:10:=NOT(%MD10:10) 10 double words per double word
126,39
4,50
114,00
4,05
114,00
4,05
9
Addition function on the table
The table below shows the instruction times for addition on a table.
ST
%MW20:=SUM(%MW0:10);
Size (of the table of words)
10 words
Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
74,30 69,00 69,00
Size
(words
)
37xx
10
2,35
76,90
2,35
76,90 10 %MD20:=SUM(%MD0:10); per word 2,44
10 double words
83,58
3,17 per double word
%MF20:=SUM_ARR(%MF0:10); 10 double words per double word
1634
2,95
1257
2,95
1257 10
TLX DR PL7 xxE
147
Instruction times
Table comparison function
Find function
The table below shows the instruction times for table comparison.
ST Size (of the table of words)
Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
%MW20:=
EQUAL(%MW0:10;%MW10:10);
10 words 103,78 per word 1,13
93,50
0,90
93,50
0,90
Size
(words
)
37xx
11
103,40 11 %MD20:=
EQUAL(%MD0:10;%MD10:10);
10 double words per double word
%MF20:=
EQUAL_ARR(%MF0:10;%MF10:
10);
10 double words per double word
116,17
2,23
741
103,40
1,75
570
1,75
607 11
The table below shows the instruction times for finding in a table.
ST Size (of the table of words)
Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
340,00 250,00 266,25
Size
(words
)
37xx
15 %MW20:=
FIND_EQW(%MW0:10,%KW0)
%MD20:=
FIND_EQD(%MD0:10, %KD0)
%MF20:=
FIND_EQR(%MF0:10,%KF0)
%MF20:=
FIND_EQRP(%MF0:10, %KF0)
%MD20:=
FIND_GTR(%MF0:10, %KF0)
%MD20:=
FIND_LTR(%MF0:10, %KF0)
10 words max poss
10 double words, max poss
10 double words
10 double words
10 double words
10 double words
350,00
833
845
836
836
260,00
648
650
643
643
276,90
690,12
692,25
684,79
684,79
16
15
15
15
15
148
TLX DR PL7 xxE
Finding highest and lowest values
Instruction times
This table describes the instruction times for finding the highest and lowest values in a table.
ST
%MW20:=
MAX_ARW(%MW0:10)
Size (of the table of words)
Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
10 words 350,00 260,00 276,90
Size
(words)
37xx
9
%MD20:=
MAX_ARD(%MD0:10)
10 double words
%MF20:=MAX_ARR(%MF0:10); 10 double words
%MF20:=MIN_ARR(%MF0:10) 10 double words
410,00 300,00
1366
1270
1051
977
319,50
1119,31
1040,50
9
9
9
Calculating the number of occurrences
This table shows instruction times for the number of occurrences of a value in a table of words.
ST Size (of the table of words)
Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
Size
(words
)
37xx
250,00 266,25 15 %MW20:=
OCCUR_ARW(%MW0:10,
%KW0)
10 words
%MD20:=
OCCUR_ARD(%MD0:10, %KD0)
10 double words
%MF20:=
OCCUR_ARR(%MF0:10, %KF0)
10 double words
350,00
370,00
1265
270,00
973
287,55 16
1036,24 16
TLX DR PL7 xxE
149
Instruction times
Rotate shift The table below shows the rotate shift instruction times.
ST
ROL_ARW(word or value,%MWj:10)
Size (of the table of words)
10 words
Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
550,00 400,00 426,00
Size
(words
)
37xx
9
ROL_ARD(%MDi,%MDj:10)
ROL_ARR(%MFi,%MFj:10)
10 double words
10 double words
590,00
585
430,00
450
457,95
479,25
9
9
Sort instruction The table below shows the instruction times for sorting the elements in a table.
ST Size (of the table of words)
Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
Size
(words
)
37xx
SORT_ARW(%MWi,%MWj:10)
SORT_ARD(%MDi,%MDj:10)
SORT_ARR(%MFi,%MFj:10)
10 words max poss
5 double words, max poss
10 double words
970,00
610,00
1863
700,00
450,00
1433
745,50
479,25
9
9
1526,14 9
150
TLX DR PL7 xxE
Instruction times
Time management instructions
Instructions on date, hour and period management
The table below shows the date, hour and period instruction times.
ST
%MW2:4:= ADD_DT(%MW2:4,%MD8)
Execution time (
3705/08/10
4 400.00
µ s) Size
(words)
3720 RAM 3720 card 37xx
3 300.00
3 514.50
13
%MD2:= ADD_TOD(%MD2,%MD8)
%MB2:11:=
DATE_TO_STRING(%MD40)
%MW5:= DAY_OF_WEEK()
2 100,00
1 370,00
220,00
1 550,00 1 650,75 9
900,00 958,50 9
280,00 298,20 5
%MD10:= DELTA_D(%MD2, %MD4)
%MD10:=
DELTA_DT(%MD2:4,%MW6:4)
1 520,00
3 170,00
%MD10:=
DELTA_TOD(%MD2,%MD4)
%MB2:20:=
DT_TO_STRING(%MW50:4)
2 330,00
2 050,00
%MW2:4:= SUB_DT(%MW2:4,%MD8) 4 750,00
%MD2:= SUB_TOD(%MD2,%MD8) 2 330,00
1 560,00 %MB2:15:=
TIME_TO_STRING(%MD40)
%MB2:9:=
TOD_TO_STRING(%MD40)
%MD100:= TRANS_TIME(%MD2)
1 270,00
500,00
1 130,00 1 203,45 9
2 300,00 2 449,50 13
1 700,00 1 810,50 9
1 450,00 1 544,25 11
3 500,00 3 727,50 13
1 700,00 1 810,50 9
1 200,00 1 278,00 9
800,00
500,00
852,00
532,50
9
7
TLX DR PL7 xxE
151
Instruction times
Real-time clock access
The table below shows the real time clock instruction times.
ST
RRTC(%MW0:4)
WRTC(%MW0:4)
PTC(%MW0:5)
SCHEDULE(%MW0,%MW1,%MW2,%
MD10,%MD12,%M0)ÿ
Execution time (
3705/08/10
93,60
µ s) Size
(words)
3720 RAM 3720 card 37xx
84,80 84,80 5
248,61
97,98
1430
230,85
88,60
1100
230,85
88,60
1171,5
5
5
5
152
TLX DR PL7 xxE
Instruction times
Instructions on strings of characters
Assigning and copying strings of characters
The table below shows the instruction times for assigning and copying strings of characters
ST
%MB0:8:=%MB10:8
Size
(characters)
Execution time (
µ s)
3705/08/10 3720 RAM 3720 card
Size
(words)
37xx
9
%MB0:8:=’abcdefg’
8 characters 105.16
per character 1.65
8 characters 120.72
per character 4.15
93.80
1.30
110.20
3.85
93.80
1.30
110.20
3.85
11
0.5
Word conversions<-> strings of characters
This table describes the instruction times for converting words and strings of characters.
ST Execution time (
µ s)
3705/08/10 3720 RAM 3720 card
97.69
91.95
91.95
Size
(words)
37xx
7 %MW1:=
STRING_TO_INT(%MB0:7)
%MB0:7:=
INT_TO_STRING(%MW0)
104.36
96.70
96.70
7
Double word conversions<-> strings of characters
This table describes the instruction times for converting double words and strings of characters.
ST Execution time (
µ s)
3705/08/10 3720 RAM 3720 card
1 070.53
965.62
965.62
Size
(words)
37xx
7 %MD1:=
STRING_TO_DINT(%MB0:13)
%MB0:13:=
DINT_TO_STRING(%MD0)
322.29
295.35
295.35
7
TLX DR PL7 xxE
153
Instruction times
Floating point conversions<-> strings of characters
This table describes the instruction times for converting for floating points into strings of characters.
ST
%MF1:=
STRING_TO_REAL(%MB0:15)
Execution time (
µ s)
3705/08/10 3720 RAM 3720 cards
1 783.70
1 634.53
1 634.53
7
Size
(words)
37xx
%MB0:15:=
REAL_TO_STRING(%MF0)
741.75
681.20
681.20
7
Character string manipulation instructions
This table describes the instruction times for manipulating strings of characters
ST Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
1 170.00
770.00
820.05
Size
(words)
37xx
15 %MB10:20:=
CONCAT(%MB30:10,%MB50:10)
%MB10:20:= DELETE(%MB10:22,2,3); 950.00
600.00
639.00
15
860.00
520.00
553.80
13 %MW0:=
EQUAL_STR(%MB10:20,%MB30:20); (the fifth character differs)
%MW0:= FIND(%MB10:20,%MB30:10);
%MB10:20:=
INSERT(%MB30:10,%MB50:10,4);
%MB10:20:= LEFT(%MB30:30,20);
%MW0:= LEN(%MB10:20);
%MB10:20:= MID(%MB30:30,20,10);
%MB10:20:=
REPLACE(%MB30:20,%MB50:10,10,10);
%MB10:20:= RIGHT(%MB30:30,20);
1 610.00
1 270.00
920.00
770.00
1 080.00
1 450.00
1 480.00
1 000.00
1 065.00
800.00
852.00
570.00
340.00
700.00
870.00
950.00
607.05
362.10
745.50
926.55
1 011.75
13
17
13
9
15
19
13
154
TLX DR PL7 xxE
Instruction times
Application-specific and Orphee functions
Communication functions
The table below shows the communication function instruction times.
ST Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
2182 1818 1936 SEND_REQ(%KW0:6,15,%MW0:1,
%MW10:10,%MW30:4)
SEND_TLG(%KW0:6,1,%MW0:5,%MW30:) 1636 1364 1452
Size
(words)
37••
21
15
Operator dialog function
The table below shows the operator dialog instruction times.
ST Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
SEND_MSG(ADR#1.0,%MW0:2,%MW10:2) 2 240
SEND_ALARM(ADR#1.0,%MW0:2,%MW10
:2)
2 240
2 000
2 000
2208
2208
GET_MSG(ADR#1.0,%MW0:2,%MW10:2)
GET_VALUE(ADR#1.0,%MW0,%MW10:2)
ASK_MSG(ADR#1.0,%MW0:2,%MW10:2,%
MW20:2)
ASK_VALUE(ADR#1.0,%MW0,%MW10:2,
%MW20:2)
DISPLAY_ALRM(ADR#1.0,%MW0,%MW10
:2)
2 240
1 120
2 240
2 240
1 120
2 000
1 000
2 000
2 000
1 000
2 208
1 104
2 208
2 208
1 104
DISPLAY_GRP(ADR#1.0,%MW0,%MW10:
2)
DISPLAY_MSG(ADR#1.0,%MW0,%MW10:
2)
CONTROL_LEDS(ADR#1.0,%MW0:2,%M
W10:2)
ASSIGN_KEYS(ADR#1.0,%MW0:2,%MW1
0:2)
PANEL_CMD(ADR#1.0,%MW0:2,%MW10:
2)
1 120
1 120
2 240
2 240
2 240
1 000
1 000
2 000
2 000
2 000
1 104
1 104
2 208
2 208
2 208
19
17
23
Size
(words)
37••
19
19
21
17
17
17
19
19
19
TLX DR PL7 xxE
155
Instruction times
Process control function
The table below shows the process control function instruction times.
ST Condition Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
Size
(words)
37••
1100 1172 24 PID("PIDS1",’Unit’,%IW3.5,%M
W12,%M16,%MW284:43) deval_mm i=0 deval_mm i=1
1320
1080
600 PWM(%MW11,%Q2.1,%MW385
:5)
SERVO(%MW12,%IW3.6,%Q2.
2,%Q2.3,
%MW284:43,%MW390:10)
PID_MMI(ADR#0.0.4,%M1,%M2
:5, %MW410:62)
EN=1
960
1140
900
500
800
950
958,5
532,5
852
1012
11
19
20
Data storage The table below shows the instruction times for the data storage functions.
ST Execution time (
µ s)
SET_PCMCIA (for 1600 words)
WRITE_PCMCIA (for 1600 words)
READ_PCMCIA (for 1600 words)
3705/08/
10
3720
RAM
1000
2000
2000
3720 card
24
24
24
Size
(words)
37••
156
TLX DR PL7 xxE
Instruction times
Orphee function The table below shows the process control function instruction times.
ST
DSHR_RBIT(%MD102,16,%M
D204,%MD206)
DSHRZ_C(%MD102,16,%MD
204,%MD206)
WSHL_RBIT(%MW102,8,%M
W204,%MW206)
WSHR_RBIT(%MW102,8,%M
W204,%MW206)
Condition Execution time (
µ s)
3705/08/
10
3720 RAM 3720 card
660 480 511
Size
(words)
37••
13 write 10 words request to copy 10 words exchange
10 words
20 bytes
410
300
390
310
220
280
330
234
298
13
13
13
WSHRZ_C(%MW102,8,%MW
204,%MW206)
SCOUNT(%M100,%MW100,%
M101,%M102,%MW101,
%MW102,%M200,%M201,%M
W200,%MW201)
20 bytes
20 bytes
300
510
220
410
234
437
13
25
TLX DR PL7 xxE
157
Instruction times
Explicit input/output instructions
Performance times
This table shows the explicit input/output instruction times.
ST Execution time (
µ s)
3705/08/10 3720 RAM 3720 card
Size
(words)
37xx
Read_Sts %CHi.MOD
Any application except the processor communication channel
Read_Sts %CHi
Analog input
Analog output
Counting module CTZ
Write_Param %CHi
Analog input
Counting module CTZ
Read_Param %CHi
Analog input
Counting module CTZ
Save_Param %CHi
Analog input
Counting module CTZ
Restore_Param %CHi
Analog input
Counting module CTZ
Write_Cmd %CHi
Discrete output
30
180
90
110
790
1127
260
338
1234
1370
550
1160
50
30
180
70
95
570
1080
290
295
1220
1220
510
1080
47
32
216
74
104
790
1083
316
300
1240
1240
535
1097
52
2
6
6
6
6
6
6
158
TLX DR PL7 xxE
Descargar
Anuncio