Mitsubishi QD51 Programming Manual page 362

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
11 - 192
• The maximum number of steps in the sequence program is determined by the
capacity set by the parameter. The allowable specification range for the starting
step count is as follows.
Sequence program
Setting value of T0
Setting value of T1
to
Setting value of T255
Setting value of C0
Setting value of C1
to
Setting value of C255
Step 0
Step 1
to
Step 30718
How to calculate the specified step:
(1) Starting step count when a timer setting value is specified
FE00
+ the device number of the timer (expressed in hexadecimal)
H
(2) Starting step count when the counter setting value is specified
FF00
+ the device number of the counter (expressed in hexadecimal)
H
(3) Starting step count when the sequence program itself is specified
0000
+ sequence program step count (expressed in hexadecimal)
H
• The maximum number of sequence program steps that can be read at one time
is 64 steps.
The entire program can be read by specifying the starting step count and the
number of steps to be read in units of 64 steps as follows.
Sequence program area
0
64
128
192
• The timer and counter setting values are stored using the values (hexadecimal)
shown in the table below.
Example of ladder steps in a program
K
T
K
C
D
T
D
C
How to calculate the setting values in BASIC How to calculate the setting values in
BASIC
(1) When set by a constant (K
(2) When set by data register (D
Specified step
&HFE00
&HFE01
to
&HFEFF
&HFF00
&HFF01
to
&HFFFF
&H0000
&H0001
to
&H77FE
Specify
%(3)=&H0,
Specify
%(3)=&H40,
Specify
%(3)=&H80,
Settings in a program
K0
K1
to
K9
K10
to
K32767
D0
D1
D2
to
D1023
)
• • • • • •
&H0000 + constant (hexadecimal)
)
• • • • • •
&H8000 + device number of data register x
2 (hexadecimal)
MELSEC-Q
%(4)=64.
%(4)=64.
%(4)=64.
Settings in BASIC
& H0000
& H0001
to
& H0009
& H000A
to
& H7FFF
& H8000
& H8002
& H8004
to
& H87FE
11 - 192

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents