329
4
4 Instructions 4.12.4 Other Peripheral Instructions
Example:
X10
〔ABSD D100 C20 M0 K4 〕
S1 S2 D n
X11
〔RST C20〕
〔C20 K400〕
M8013
Assume that related variables are assigned values as follows. When X10 = ON, the execution result is
shown in the following gure.
Rising point
D100=40
D102=100
D104=200
D106=240
Falling point
D101=180
D103=220
D105=60
D107=380
Comparison
output
M 0
M 1
M 2
M 3
40
180
100 220
200
60
240 380
400
Even address
Odd address
Comparison output status
C20
0
S1
n
D
S2
M 0
M 1
M 2
M 3
Usage:
• Before the ABSD instruction is executed, use the MOV instruction to assign values to variables of the related table.
• Even if the DABSD instruction uses a high-speed instruction, the comparison result D is affected by the scan delay
of the user program. The HSZ instruction for high-speed comparison can be used for applications that require
timely response.
INCD: Incremental cam control mode
◆
Overview
When driving conditions are met, the INCD instruction compares a data table from head address S1 with
the current value of a pair of selected counters (S2) to control the ON/OFF states of K bit elements from
head address D.
INCD S1 S2 D n
Incremental 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)
INCD: Continuous
execution
S2 Counter C
Numbers of two consecutive counters
(The adjacent
S2+1 unit indicates the number of counter reset
times after comparison.)
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