![Nova Electronics MCX514 User Manual Download Page 50](http://html1.mh-extra.com/html/nova-electronics/mcx514/mcx514_user-manual_1710400050.webp)
NOVA electronics Inc.
MCX514 -
37
-
37
-
Table 2.4-1 Setting of Comparative Object
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)
Table 2.4-2 Setting of Comparison Condition
MkC1 bit
MkC0 bit
MRm Comparative Object
0
0
Comparative object
≧
MRm
0
1
Comparative object
>
MRm
1
0
Comparative object
=
MRm
1
1
Comparative object
<
MRm
[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 linear and
S-curve acceleration/deceleration driving, the comparison result may not become TRUE (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
≧
MRm
”
and not
“
comparative object
=
MRm
”
.
■
Example: Comparison with Logical Position Counter
When the logical position counter value of X axis is larger than 500,000 and if the user wants the comparison result is TRUE, set
as follows.
WR6 ← A120h
WR7 ← 0007h
MR0
:
Set 500,000
WR0 ← 0110h
W
R6 ← 0000h
D3,D2
:
0,0 Comparison condition
:
≧
D1,D0
:
0,0 Comparative object
:
Logical position counter (LP)
WR0 ← 0120h
Writes multi-purpose register mode setting
500000
Comparative object, Condition
:
Logical position counter
≧
MR0
MR0
:
500000
Comparison condition is met
→
Comparison result
:
True
Comparison condition is not met
→
Comparison result
:
False
400000
600000
450000
550000
Logical position counter (LP)
[LP
<
500000]
[LP
≧
500000]
Fig. 2.4-2 Comparison Example of Multi-Purpose Register with Logical Position Counter
2.4.2
Usage of Comparison Result
The user can use the comparison result of comparative object with a multi-purpose register as a comparison output signal,
synchronous action activation and interruption factor. The functions to use the comparison result and actions are as follows.
Table 2.4-3 Usage of Comparison Result and Actions
Function
Object
Action
Comparison output signal
nPIO7
~
4 Output signals
When comparison result is TRUE, output signal
is Hi.
Synchronous action activation
Synchronous action SYNC3
~
0 When comparison result changes to TRUE,
synchronous action is activated.
Interruption factor
Interrupt function
When comparison result changes to TRUE,
interrupt occurs.
(
k:0
~
3
)
(
n:0
~
3
)
Set the value to MR0
Set comparative object and comparison
condition of MR0