2 - 24 2 - 24
MELSEC-Q/QnA
2 INSTRUCTION TABLES
2.4.8 Other convenient instructions
Table 2.17 Other Convenient Instructions
Category
Instruction
Symbols
Symbol Processing Details
Execution
Condition
Number of
Basic Steps
Subset
See for
Description
UDCNT1
UDCNT1 n
S
D
(S)+1
Up Down Up
(S)+0
urrent Cn value
Cn contact point
1 2 3 4 6 7 6 5 3 2 1 0 -1 -2 -3 -2 -1 00 45
4 6-113
Up/Down
Counter
UDCNT2
UDCNT2 nSD
(S)+0
(S)+1
Current Cn value
Cn contact point
12 45 43 10-10 3 2
4 6-115
Teaching
timer
TTMR
TTMR nD
• (Time that TTMR is ON)
n
(D)
n = 0:1, n = 1:10, n = 2:100
3 6-117
Special
timer
STMR
STMR nSD
• The 4 points from the bit device
designated by (D) operate as shown
below, depending on the ON/OFF status
of the input conditions for the STMR
instruction:
(D)+0: Off delay timer output
(D)+1: One shot after off timer output
(D)+2: One shot after on timer output
(D)+3: On delay timer output
3 6-119
Nearest
path
control
ROTC
ROTC n2n1SD
• Rotates a rotary table with n1 divisions
from the stop position to the position
designated by (S+1) by the nearest path.
5 6-122
Ramp
signal
RAMP
RAMP D1 n3n1 n2 D2
• Changes device data designated by D1
from n1 to n2 in n3 scans.
6 6-124
Pulse
density
SPD
SPD nSD
• Counts the pulse input from the device
designated by (S) for the duration of time
designated by n, and stores the count in
the device designated by (D).
4 6-126
Pulse
output
PLSY
PLSY n1 n2 D
(n1)Hz (D)
Output n2 times
4 6-128
Pulse
width
modulation
PWM
PWM
n1
n2 D
n1
n2
D
4 6-130
Matrix
input
MTR
MTR
D2
n
D1
S
• Store 16 times of n lows in the device
specified by (S).to the device specified by
(D2) in sequence.
5 6-132
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com