Mitsubishi Electric MELSEC Q Series Programming Manual page 63

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

4 ST PROGRAM EXPRESSIONS
CASE D0 OF
ST program
END_CASE;
LD=
AND=
MOV
List program
LD>=
AND<= D0
INC
[Remarks]
Since CJ, JMP, etc. need not be executed in a list unlike ST, only the times for the compared areas are
measured.
The time has been calculated on the assumption that the compared areas are conducting.
FOR D0 : = 0 T0 10 BY 1 D0
ST program
END_FOR;
FOR K10
List program
NEXT
[Remarks]
The above operation processing time is taken by the number of repeat times.
In a list, only the number of repeat times can be specified. In ST, repeat and other operation processing can be
performed by condition comparison.
4 - 23
(b) CASE conditional statement
1, 2:
D0 : = 100;
3..10:
D1 : = D1 + 1;
D0
K1
D0
K2
K100 D0
D0
K3
K10
D1
(c) FOR...DO statement
D1 : = D1 + 1;
LD SM400
INC D1
Operation Processing
Number of Steps
Time (Q25H)
29
16
Operation Processing
Number of Steps
Time (Q25H)
Initialization: 0.134
Repeat: 3.308
16
In this case, the
repeated area operates
10 times.
6
Operation Processing
Time (Q00J)
5.004
0.64
Operation Processing
Time (Q00J)
Initialization: 0.9
Repeat: 24.0
2.574
Unit ( µ s)
36.1
4.6
Unit ( µ s)
21.6
4 - 23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents