11 - 289 11 - 289
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
• 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
(1) When set by a constant (K
)
• • • •
&H0000 + constant (hexadecimal)
(2) When set by data register (D
)
• • • •
&H8000 + device number of data register 2