NOVA electronics Inc. MCX514 -
212
-
212
-
7.4
Commands for Reading Data
Commands for reading data are used to read the internal register.
After a data reading command is written into register WR0, this data will be set in registers RR6 and RR7.
The user can obtain a specified data by reading the registers RR6 and RR7. When the data length is 2 bytes, the data will be set in
register RR6 and when it is 4 bytes, the data will be set in registers RR6 and RR7.
Reading data is binary and 2's complement is used for negative numbers.
[Note]
•
It requires 125 nSEC (maximum) to access the command code of data reading where CLK = 16MHz. After the
command is written and passed that time, read registers RR6 and 7.
•
The unit described in each speed parameter and timer value is for when input clock (CLK) is 16MHz. Please see
Appendix B for parameter calculation formula when input clock (CLK) is other than 16MHz.
•
The axis assignment should be only 1 axis.
7.4.1
Logical Position Counter Reading
Code
Command
Symbol
Data Range
Data Length
(byte)
30
h
Logical position counter reading
LP
-2,147,483,648
~
+2,147,483,647
4
The current value of logical position counter is set in read registers RR6 and RR7.
7.4.2
Real Position Counter Reading
Code
Command
Symbol
Data Range
Data Length
(byte)
31
h
Real position counter reading
RP
-2,147,483,648
~
+2,147,483,647
4
The current value of real position counter is set in read registers RR6 and RR7.
7.4.3
Current Drive Speed Reading
Code
Command
Symbol
Data Range
Data Length
(byte)
32
h
Current drive speed reading
CV
0
~
8,000,000
4
The value of current drive speed is set in read registers RR6 and RR7.
When the driving stops, the value becomes 0. The unit of the setting value is pps which is the same as Drive speed setting (DV).
During interpolation driving, calculated pulse speed of the main axis can be read, other axes cannot be read.