All BASIC commands
Arguments
•
mode
The mode parameter specifies the registration input and event for
use and the signal edge the registration event occurs. The mode
parameter also specifies the use of the windowing function and filter-
ing.
The mode parameter differs between MECHATROLINK-II and
Encoder Interface. The function of each bit in the mode parameter is
explained in the tables below.
/i
Bit
Note: secondary registration only supported by Accurax G5
1, 0
Primary registration occurs for:
•
00: Z-mark of the encoder
•
01: EXT1 input
•
10: EXT2 input
•
11: EXT3 input
2
Set this bit to use primary registration event
3
Not used
5, 4
Secondary registration occurs for:
•
00: Z-mark of the encoder
•
01: EXT1 input
•
10: EXT2 input
•
11: EXT3 input
6
Set this bit to use secondary registration event
7
Not used
9, 8
Windowing function choice:
•
00: No windowing
•
01: Inclusive windowing
•
11: Exclusive windowing
10
Not used
/i
Bit
1, 0
Primary registration occurs for:
•
00: Z-mark of the encoder
•
01: REG 0 input
•
10: REG 1 input
2
Set this bit to use primary registration event
3
Primary registration event occurs on signal:
•
0: rising edge
•
1: falling edge
5, 4
Secondary registration occurs for:
•
00: Z-mark of the encoder
•
01: REG 0 input
•
10: REG 1 input
6
Set this bit to use secondary registration event
7
Secondary registration event occurs on signal:
•
0: rising edge
•
1: falling edge
Function (MECHATROLINK-II)
Function (Encoder Interface)
Section 4-2
227