![Melec C-875 Скачать руководство пользователя страница 53](http://html1.mh-extra.com/html/melec/c-875/c-875_instruction-manual_1767048053.webp)
- 53 -
6-39.COUNTER READ
COMMAND………
None
Function : Reads the count data of the PULSE COUNTER or DIFFERENTIAL
COUNTER or ADDRESS COUNTER.(Note1)
Execution sequence
This function reads out the count data of the counter data from
DRIVE READ PORT after the PORT SELECT command. (Note1)
DATA1 PORT
(Note2)
READ
The contents of DRIVE DATA1 PORT to DRIVE DATA3 PORT are as follows.
DATA2 PORT
DATA1 PORT
DATA2 PORT
DATA3 PORT
7
0
7
0
7
0
READ
D
D
D
D D
D
DATA3 PORT
READ
COUNT DATA (0~FFFFFF )
H
When the count data is negative, it is represented in 2's complement
form.
・Example of count data
COUNT 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
Note1: The PULSE or DIFFERENTIAL or ADDRESS COUNTER select must be executed before count read by each
PORT SELECT Command.(6-36.)
Note2: Be sure to perform a DATA READ operation in the order of DRIVE DATA1 PORT, DRIVE DATA2 PORT and
DRIVE DATA3 PORT.
If this sequence is not observed, the data will not be guaranteed.
6-40.SPEED READ
COMMAND………
None
Function : Reads speed data of a drive currently taking place.
Execution sequence
After the SPEED PORT SELECT Command has been executed, this command is used
for reading current speed data from the DRIVE DATA1, 2 and 3 PORTs.
(Note1)
DRIVE=1 in
N
The contents of DRIVE DATA1 PORT to DRIVE DATA3 PORT are as follows.
STATUS1?
DATA1 PORT
DATA2 PORT
DATA3 PORT
7
0
7
0
7
0
Y
D
D
D
D D
D
(Note2)
DATA1 PORT
READ
DATA2 PORT
SPEED DATA (30 ~FFFFF8 )
H
H
READ
Using this the data obtained through this function,
DATA3 PORT
PULSE SPEED
pulse speed can be determined as follows:
READ
0 SET
160,000,000
PULSE SPEED=
(Hz)
V
V=READ DATA
(Example) When read data V=48(30 )
H
160,000,000
PULSE SPEED=
≒ 3.3(MHz)
48
Note1: DRIVE=1 may not be checked.
But, note that speed data immediately before the stop will be
continuously generated ever after the drive has been stopped.
Note2: Be sure to perform a DATA READ operation in the order of DRIVE DATA1 PORT, DRIVE DATA2 PORT and
DRIVE DATA3 PORT.
If this sequence is not observed, the data will not be guaranteed.
Содержание C-875
Страница 98: ... 98 2 M TYPE 3 H TYPE ...