Справочник Пользователя для Mitsubishi Electronics QD64D2

Скачать
Страница из 154
5
FUNCTIONS
5.4 Using the Preset Function
5
 - 27
1
O
V
ER
VI
E
W
2
S
YST
EM
 
CONF
IGURA
T
ION
3
S
P
E
C
IF
ICA
T
IONS
4
P
R
O
C
EDURES
 AND 
S
E
T
T
INGS
 B
E
F
O
RE
 
OP
E
R
A
T
ION
5
F
UNCT
IONS
6
UT
IL
IT
Y
 P
A
CK
A
G
E
 (
G
X
 
C
onfi
gurato
r-C
T
)
7
P
R
OGRA
M
MING
8
TR
O
U
BL
ESHO
O
T
IN
G
5.4
Using the Preset Function
Use the preset function to rewrite the present value (Un\G12 and 13) to any value (preset 
value) and start counting pulses from the value.
The following two methods are available for presetting.
 • Turn ON the preset command (Y04) by the sequence program. 
 • Turn ON the preset input terminal (PRST) of external input.
In (1) and (2) below, I/O numbers (X/Y) and buffer memory addresses are listed for 
channel 1. For I/O numbers and buffer memory addresses used for channel 2 , refer to 
Section 3.3.1 and Section 3.4.1.
(1) Operation when turning ON the preset command (Y04) by the sequence 
program
Turn ON the preset command (Y04) by the sequence program to execute preset.
Figure 5.12 Operation example of the preset function by the sequence program
Table 5.10 Details of operation example of the preset function by the sequence program
Number
Description
1)
Write any value in the preset value setting (Un\G4 and 5) of the QD64D2 in 32-
bit binary format.
2)
At the rising edge (OFF 
ON) of the preset command (Y04), the preset value 
setting (Un\G4 and 5) is stored in the present value (Un\G12 and 13). 
The preset can be executed regardless of the ON/OFF status of the count 
enable command (Y06).
2001
2000
0
1067
1066
1065
1002
1001
1000
2000
1000
1)
1)
2)
2)
2002 2003 2004 2005
ON
OFF
ON
OFF
*t   2ms
t*
t*
0
Count enable command 
(Y06)
Counter input pulse
Preset value setting 
(Un\G4 and 5)
Preset command 
(Y04)
Present value 
(Un\G12 and 13)
to