- 65 -
9.DESCRIPTION
OF
PULSE COUNTER
AND
DFL
COUNTER
COMMAND
9-1. Command Table
The HEX code is for the case where all the x bits are set to 0.
D D D D D D D D
HEX C0DE
COMMAND
NAME
EXECUTION TIME
7
6
5
4
3
2
1
0
0 0 0 0
00
PULSE COUNTER PRESET
MAX 200ns
× × × ×
0 0 0 1
01
PULSE COUNTER COMPARE REGISTER1 SET
MAX 200ns
× × × ×
0 0 1 0
02
PULSE COUNTER COMPARE REGISTER2 SET
MAX 200ns
× × × ×
0 0 1 1
03
PULSE COUNTER COMPARE REGISTER3 SET
MAX 200ns
× × × ×
0 1 0 0
04
PULSE COUNTER COMPARE REGISTER4 SET
MAX 200ns
× × × ×
0 1 0 1
05
PULSE COUNTER COMPARE REGISTER5 SET
MAX 200ns
× × × ×
0 1 1 0
06
DIFFERENTIAL COUNTER PRESET
MAX 200ns
× × × ×
0 1 1 1
07
DIFFERENTIAL COUNTER COMPARE REGISTER1 SET
MAX 200ns
× × × ×
1 0 0 0
08
DIFFERENTIAL COUNTER COMPARE REGISTER2 SET
MAX 200ns
× × × ×
9-2. PULSE COUNTER PRESET Command
COMMAND………
00
Function : Initializes the count value of the PULSE COUNTER to
H
a specified value.
Execution sequence
Preset data is specified in COUNTER DATA1 PORT, COUNTER DATA2 PORT
(Note) COUNTER DATA1
and COUNTER DATA3 PORT.
PORT WRITE
The order
may not
The contents of COUNTER DATA1 PORT to COUNTER DATA3 PORT are as follows.
COUNTER DATA2
be observed.
PORT WRITE
DATA1 PORT
DATA2 PORT
DATA3 PORT
7
0
7
0
7
0
D
D
D
D D
D
COUNTER DATA3
PORT WRITE
COUNTER COMMAND
PRESET DATA (0~FFFFFF )
H
00
WRITE
H
When preset data is negative, it is represented in 2's complement form.
Counter value is 0 at POWER ON/RESET.
・Setting example of preset data
PRESET DATA(decimal)
DATA1 PORT
DATA2 PORT
DATA3 PORT
H
H
H
+8,388,607
7F
FF
FF
H
H
H
+10
00
00
0A
H
H
H
±0
00
00
00
H
H
H
-10
FF
FF
F6
H
H
H
-8,388,607
80
00
01
Note: Note that the DATA and COMMAND PORTs described in this chapter are special ports for the counters
and their port addresses are different from that of the DRIVE PORTs.
For the port address,
refer to 4-1.
Summary of Contents for C-875
Page 98: ... 98 2 M TYPE 3 H TYPE ...