![Melec C-875 Скачать руководство пользователя страница 36](http://html1.mh-extra.com/html/melec/c-875/c-875_instruction-manual_1767048036.webp)
- 36 -
6-6. ADDRESS INITIALIZE Command
COMMAND………
03
Function : Defines the current position as the specified
H
absolute address and stores it into memory.
Execution sequence
ADDRESS is specified in DRIVE DATA1 PORT, DRIVE DATA2 PORT and
DRIVE DATA3 PORT.
N
BUSY=0 in
The contents of DRIVE DATA1 to DRIVE DATA3 are as follows.
STATUS1?
DATA1 PORT
DATA2 PORT
DATA3 PORT
7
0
7
0
7
0
Y
D
D
D
D D
D
DATA1 PORT
WRITE
DATA2 PORT
The order
ABSOLUTE ADDRESS (0~FFFFFF )
H
WRITE
may not
be observed.
When ADDRESS is negative, it is represented in 2's complement form.
DATA3 PORT
WRITE
・Setting example of ADDRESS
ADDRESS(decimal)
DATA1 PORT
DATA2 PORT
DATA3 PORT
H
H
H
H
COMMAND 03
+8,388,607
7F
FF
FF
H
H
H
WRITE
+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
6-7. ADDRESS READ Command
COMMAND………
04
Function : Reads the current position of MOTOR as ABSOLUTE ADDRESS.
H
Execution sequence
ABSOLUTE ADDRESS is read out from DRIVE DATA1 PORT, DRIVE DATA2 PORT and
DRIVE DATA3 PORT.
The contents of DRIVE DATA1 to DRIVE DATA3 are as follows.
N
BUSY=0 in
STATUS1?
DATA1 PORT
DATA2 PORT
DATA3 PORT
7
0
7
0
7
0
D
D
D
D D
D
Y
H
COMMAND 04
WRITE
ABSOLUTE ADDRESS (0~FFFFFF )
H
N
BUSY=0 in
When ADDRESS is negative, it is represented in 2's complement form.
STATUS1?
・Output example of ADDRESS
ADDRESS(decimal)
DATA1 PORT
DATA2 PORT
DATA3 PORT
H
H
H
Y
+8,388,607
7F
FF
FF
H
H
H
DATA1 PORT
(Note)
+10
00
00
0A
H
H
H
READ
±0
00
00
00
H
H
H
-10
FF
FF
F6
H
H
H
DATA2 PORT
-8,388,607
80
00
01
READ
This command is provided for command compatibility with conventional products.
DATA3 PORT
The address data to be read are same as the count data (see 6-39.) of the
READ
ADDRESS COUNTER. Apply the COUNT DATA for general use.
Note: Data must be read in the order of DRIVE DATA1 to DRIVE DATA3 PORT. Usually, DRIVE DATA 1 PORT, DRIVE
DATA2 PORT and DRIVE DATA3 PORT are ports exclusively used for read out the counter value of the PULSE
COUNTER. The port functions of these ports are switched by writing the ADDRESS READ command and then
used for reading address data. The address data reading port functions are recovered to the original
port functions by reading DRIVE DATA3 PORT.
Accordingly, when the ADDRESS READ command has been written, be sure to perform a READ operation
for DRIVE DATA3 PORT.
Содержание C-875
Страница 98: ... 98 2 M TYPE 3 H TYPE ...