Other Convenient Instructions - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

2 INSTRUCTION TABLES

2.4.8 Other convenient instructions

Category
UDCNT1
Up/Down
Counter
UDCNT2
Teaching
TTMR
timer
Special
STMR
timer
Nearest
path
ROTC
control
Ramp
RAMP
RAMP
signal
Pulse
SPD
density
Pulse
PLSY
output
Pulse
width
PWM
modulation
Matrix
MTR
input
2 - 24
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Table 2.17 Other Convenient Instructions
Symbol
UDCNT1
S D
n
Current Cn value
Cn contact point
UDCNT2
S D
n
Current Cn value
Cn contact point
• (Time that TTMR is ON)
TTMR
D
n
• 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:
STMR
S
n
D
(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
• Rotates a rotary table with n1 divisions
from the stop position to the position
ROTC
S
n1
n2
D
designated by (S+1) by the nearest path.
• Changes device data designated by D1
n1 n2
D1 n3
D2
from n1 to n2 in n3 scans.
• Counts the pulse input from the device
designated by (S) for the duration of time
SPD
S
n
D
designated by n, and stores the count in
the device designated by (D).
(n1)Hz
PLSY
n1 n2 D
PWM
n1 n2 D
• Store 16 times of n lows in the device
MTR
S
D2 n
specified by (S).to the device specified by
D1
(D2) in sequence.
Processing Details
(S)+0
Up
Down
(S)+1
0
1 2 3 4
5
6 7 6 5
4
3 2 1 0 -1 -2 -3 -2 -1 0
(S)+0
(S)+1
0
1
2
3
4
5
4
3
2
1
n
n = 0:1, n = 1:10, n = 2:100
(D)
Output n2 times
n1
n2
(D)
MELSEC-Q/QnA
Execution
Condition
Up
4
6-113
4
6-115
0
-1
(D)
3
6-117
3
6-119
5
6-122
6
6-124
4
6-126
4
6-128
4
6-130
5
6-132
2 - 24

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents