![Nova Electronics MCX514 User Manual Download Page 51](http://html1.mh-extra.com/html/nova-electronics/mcx514/mcx514_user-manual_1710400051.webp)
NOVA electronics Inc.
MCX514 -
38
-
38
-
■
Comparison Output Signal
The user can output the comparison result of a multi-purpose register as a comparison output signal. When the comparison result
of a multi-purpose register meets a specified comparison condition, the comparison output signal outputs Hi level, and when does
not meet it, the comparison output signal outputs Low level.
The comparison results of multi-purpose registers (MR3~0) are output to each corresponding comparison output signal nPIO7
~
4.
nPIO7~4 signals share the other signals such as the general purpose input / output signals. To use them as comparative output pins,
the user needs to set the function of nPIO7
~
4 signals to the comparison output signal by using PIO signal setting 1 command
(21h) in advance.
Table 2.4-4 Comparison output signal and Bit corresponding to Multi-purpose Register
Multi-purpose
register
Comparison
output signal
PIO signal setting 1 command (21h)
Setting bit of WR6 register
MR0
nPIO4
WR6/D9 ,8
:
1,1
MR1
nPIO5
WR6/D11,10
:
1,1
MR2
nPIO6
WR6/D13,12
:
1,1
MR3
nPIO7
WR6/D15,14
:
1,1
For more details of the general purpose nPIOm signal, see chapter 2.8.
■
Example: Comparison Output Signal
When the current drive speed exceeds 5,000pps during the driving of X axis, Hi is output to XPIO5 output signal and when it is
5,000pps or less, Low is output to XPIO5 output signal.
WR6 ← 1388h
WR7 ← 0000h
MR1
:
Set 5,000
WR0 ← 0111h
WR6 ← 0060h
D7,D6
:
0,1
Comparison condition
:>
D5,D4
:
1,0
Comparative object
:
Current drive speed (CV)
WR0 ← 0120h
Writes multi-purpose register mode setting
WR6 ← 0C00h
D11,D10
:
1,1 XPIO5 Function
:
MR1 comparison output
WR0 ← 0121h
Writes PIO signal setting 1
■
Synchronous Action Activation
Synchronous action can be activated according to the comparison result of a multi-purpose register. When the comparison result of
a multi-purpose register changes to meet a specified comparison condition, the synchronous action is activated. If it already meets
the comparison condition when the synchronous action is enabled, the synchronous action is not activated at that time. After it
returns to False, if the comparison result of a multi-purpose register again changes to meet a specified comparison condition, the
synchronous action will be activated.
The synchronous action activation according to the comparison result of multi-purpose register MR3~0 can be set as the activation
factor of each corresponding synchronous action set SYNC3~0. To use the comparison result of a multi-purpose register as the
activation factor of a synchronous action, first set the activation factor of a synchronous action set which the user wants to use to
“MRm comparison changed to True” (activation factor code
:
01h) by synchronous action SYNC0
,
1
,
2
,
3 setting commands(26h,
27h, 28h, 29h), and then enable the synchronous action set by using synchronous action enable setting command (81h
~
8Fh).
Table 2.4-5 Synchronous Action Set and Setting Command Corresponding to Multi-purpose Register
Multi-purpose
Register
Synchronous
Action Set
Synchronous Action Setting Command to set Activation Factor
MR0
SYNC0
Synchronous action SYNC0 setting command (26h)
MR1
SYNC1
Synchronous action SYNC1 setting command (27h)
MR2
SYNC2
Synchronous action SYNC2 setting command (28h)
MR3
SYNC3
Synchronous action SYNC3 setting command (29h)
In addition to the activation factor, synchronous action SYNC0
,
1
,
2
,
3 setting commands set other actions and repeat behavior for
Set the value to MR1
Set comparative object and comparison
condition of MR1
Set the function of XPIO5 signal