328
4
4 Instructions4.12.4 Other Peripheral Instructions
-> ones place -> thousands place in sequence. If the forward key (X13) is pressed, the switching
sequence is reversed. The cursor position is indicated by the LED indicator connected to the gating
pulse signal (Y004 to Y007).
3) Each time the increment key (X11) is pressed, the content pointed by the cursor is changed through
0 -> 1 -> 2 -> ……8 -> 9 -> 0 -> 1 in sequence. Each time the decrement key (X10) is pressed, the
content pointed by the cursor is changed through 0 -> 9 -> 8 -> 7 -> …… -> 1 -> 0 -> 9 in sequence.
The modied value takes effect immediately.
Usage:
If the user program has a short scan duration, use the constant scan mode, or start scanning at a xed
interval within a timing interrupt.
ABSD: Absolute cam control mode
◆
Overview
When driving conditions are met, the ABSD instruction compares a data table from head address S1 with
the current value of a selected counter (S2) to control the ON/OFF states of K bit elements from head
address D.
ABSD S1 S2 D n
Absolute cam
control mode
Applicable model:
H3U
S1
Data table head
address
Head address of word elements that store a
data table
16-bit instruction
(9 steps)
ABSD:
Continuous
execution
32-bit instruction
(17 steps)
DABSD:
Continuous
execution
S2 Counter C Number of a selected counter
D
Output bit element
head address
Head address of
n
consecutive output bit
elements (variable units) that store the
comparison result
n
Output bit element
count
Number of output bit elements, or number of
data entries of a table
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
Multi-segment comparison is performed for cam control. The data table and counter used by comparison
are congured in absolute mode. This instruction is executed during the scan process of the main program.
The comparison result is affected by scan delay. In 32-bit operation, S1, S2, and D point to 32-bit variables,
and n is calculated based on 32-bit variable width.