2 INSTRUCTION TABLES
2.4 Basic Instructions
47
2
Other convenient instructions
Category Instruction
symbol
Symbol Processing details Execution
condition
Number
of basic
steps
Subset Reference
Up/Down
counter
UDCNT1 4 Page 334
UDCNT2 4 Page 336
Teaching
timer
TTMR 3 Page 338
Special
timer
STMR 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 and off delay
timer output
3 Page 340
Shortest
direction
control
ROTC • Rotates a rotary table with n1
divisions from the stop position
to the position designated by
(S+1) in the shortest direction.
5 Page 343
Ramp
signal
RAMP • Changes device data
designated by D1 from n1 to n2
in n3 scans.
6 Page 345
Pulse
density
SPD • 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 Page 347
Fixed cycle
pulse
output
PLSY • Outputs a pulse at a frequency
designated by n1 the number
of times designated by n2, to
the output number (Y)
designated by (D).
4 Page 349
Pulse width
modulation
PWM • Outputs the pulse of the cycle
set by n2, for the amount of
time ON designated by n1, to
the output number (Y)
designated by (D).
4 Page 351
Matrix input MTR • Reads data of 16 points n
rows from the devices starting
from the one specified by (S),
and stores them to the devices
starting from the one specified
by (D2).
5 Page 353
1 2 3 4 6 7 6 5 3 2 1 0 -1 -2 -3 -2 -1 0045
(S)+1
Up
Down
Up
(S)+0
Present
Cn
value
Cn
contact
12 4 5 4 3 10-10 3 2
(S)+1
(S)+0
Present
Cn
value
Cn
contact
TTMR nD
(Time that TTMR is ON)
n
(D)
n=0:1, n=1:10, n=2:100
RAMP D1 n3n1 n2 D2
MTR D2 nD1S