NOVA electronics Inc. MCX514 -
200
-
200
-
7.3
Commands for Writing Mode
Commands for writing mode is used for setting driving parameters such as multi-purpose register, automatic home search,
synchronous action and interpolation driving. When more than one axis is specified, it is possible to set the same data in specified
axes simultaneously. Interpolation mode setting does not need axis assignment.
The data length of commands for writing mode is all 2 bytes. Set an appropriate value in each bit of WR6 register and write a
command code in WR0 register. As a result, the data of WR6 register will be set in each mode setting register in the IC.
At reset, all the bits of each mode setting register in the IC are cleared to 0.
[Note]
•
It requires 125 nSEC (maximum) to access the command code when CLK=16MHz. Please do not write the next
command or data during the period of time.
7.3.1
Multi-Purpose Register Mode Setting
Code
Command
Symbol
Data Length (byte)
20
h
Multi-purpose register mode setting
MRM
2
“MRM” is the parameter setting the comparative object with multi-purpose register MR3~0 and the comparison condition. The
user can set the comparative object and comparison condition for each MR3~0 individually. Comparison result can be used for
comparative signal output, the factor of synchronous action activation and an interrupt.
WR6
D7
D6
D5
D4
H
L
D15
D14
D13
D12
D11
D10
D9
D8
D3
D2
D1
D0
M0T0
M0T1
M0C0
M0C1
M1T0
M1T1
M1C0
M2T0 M1C1
M2T1
M2C0
M2C1
M3T1 M3T0
M3C0
M3C1
MR0
comparative
object
MR0
comparison
condition
MR1
comparative
object
MR1
comparison
condition
MR2
comparative
object
MR2
comparison
condition
MR3
comparative
object
MR3
comparison
condition
D1,0 M0T1,0
Setting the comparative object with MR0.
D3,2 M0C1,0
Setting the comparison condition with MR0.
D5,4 M1T1,0
Setting the comparative object with MR1.
D7,6 M1C1,0
Setting the comparison condition with MR1
D9,8 M2T1,0
Setting the comparative object with MR2.
D11,10 M2C1,0
Setting the comparison condition with MR2.
D13,12 M3T1,0
Setting the comparative object with MR3.
D15,14 M3C1,0
Setting the comparison condition with MR3.
Regardless of the comparison condition (MnC1, 0 bits) set by multi-purpose register mode setting, the comparison result of large
or small the MR3~0 with each comparative object can be checked by RR4 register.
See chapter 2.4 for details of multi-purpose register.
[Note]
•
When the comparative object is set to “current drive speed value (CV)” and comparison condition is set to “comparative
object
=
MRm”, if the acceleration/deceleration exceeds 4,194,304 (400000h) pps/sec in acceleration/deceleration
driving, the comparison result may not become active.
When the comparative object is “current drive speed value (CV)” and the acceleration/deceleration is more than this
value, set the other conditions such as “comparative object
≧
M Rm” and not “comparative obje
=
MRm”.
D15~D0 will be set to 0 at reset.
MkT1 bit MkT0 bit
MRm comparative object
0
0
Logical position counter (LP)
0
1
Real position counter (RP)
1
0
Current drive speed value (CV)
1
1
Current timer value (CT)
MkC1 bit
MkC0 bit
MRm comparison condition
0
0
comparative object ≧ MR
m
0
1
comparative object
>
MRm
1
0
comparative object
=
MRm
1
1
comparative object
<
MRm
(
k:0
~
3
)
(
k:0
~
3
)