11 - 192 11 - 192
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
• 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
Specified step
Setting value of T0
Setting value of T1
to
Setting value of T255
&HFE00
&HFE01
to
&HFEFF
Setting value of C0
Setting value of C1
to
Setting value of C255
&HFF00
&HFF01
to
&HFFFF
Step 0
Step 1
to
Step 30718
&H0000
&H0001
to
&H77FE
How to calculate the specified step:
(1) Starting step count when a timer setting value is specified
FE00
H
+ the device number of the timer (expressed in hexadecimal)
(2) Starting step count when the counter setting value is specified
FF00
H
+ the device number of the counter (expressed in hexadecimal)
(3) Starting step count when the sequence program itself is specified
0000
H
+ sequence program step count (expressed in hexadecimal)
• 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.
Specify %(3)=&H80, %(4)=64.
Specify %(3)=&H40, %(4)=64.
Specify %(3)=&H0, %(4)=64.
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
Settings in a program
Settings in BASIC
& H0000
& H0001
& H0009
& H000A
& H7FFF
& H8000
& H8002
& H8004
& H87FE
K0
K1
K9
K10
K32767
D0
D1
D2
D1023
T
K
C
K
T
D
C
D
to
to
to
to
to
to
How to calculate the setting values in BASIC How to calculate the setting values in
BASIC
(1) When set by a constant (K )
• • • • • •
&H0000 + constant (hexadecimal)
(2) When set by data register (D )
• • • • • •
&H8000 + device number of data register x
2 (hexadecimal)
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...