12 High-speed Comparison and High-speed Capture
12.1 High-speed Comparison and High-speed Capture
A DVP-20PM series motion controller sets and reads values by means of the instructions FROM and
TO. The use of FROM/TO to set high-speed comparison and high-speed capture, and to read values is
described below.
Control
X0
TO K253 K1
S
N
Control
register
numbe
Initial
device
numbe
Module
number
Data
length
Device Control
Resetting output
devices
Setting a range
which is masked
S Initial group number n (n=0~7) 0 0
S
+1
0 1 2
(S
+3
, S
+2
) Control register whose group number is n
(S
+5
, S
+4
) Data registers whose group numbers are n
(S
+7
, S
+6
) Control register whose group number is n+1
(S
+9
, S
+8
) Data registers whose group numbers are n+1
: :
(S
+31
, S
+30
) Control register whose group number is n+7
(S
+33
, S
+32
) Data registers whose group numbers are n+7
N
Data length=2+m*4
m=number of groups (8 groups at most can be used.)
Reading
X0
K253 K1
S
N
Control
register
number
Initial
device
number
Module
number
Data
length
FROM
Device Reading the values in counters
Reading the states of output
devices/Enabling capture
S Initial group number n (n=0~7) 0
S
+1
0 1
(S
+3
, S
+2
) Control register whose group number is n States of output devices
(S
+5
, S
+4
) Data registers whose group numbers are n Enabling capture (8 bits)
(S
+7
, S
+6
) Control register whose group number is n+1
(S
+9
, S
+8
) Data registers whose group numbers are n+1
: :
(S
+31
, S
+30
) Control register whose group number is n+7
(S
+33
, S
+32
) Data registers whose group numbers are n+7
N
Data length=2+m*4
m=number of groups (8 groups at most can be used.)
Control/Reading
(1) The format of a control register in a high-speed comparison mode is described below.
01234567891011
1213
1415
Comparison source
Comparison result
Bit
Item
Condition
Output
action
DVP-20PM Application Manual
12-1