
http://www.icpdas.com
應用程式函式庫
v2.0
184
B.3 Mode Register2: WR2
Each axis is with mode register WR2. The axis specified by NOP command
or the condition before decides which axis’ s register will be written.
WR2 can be used for setting: (1). external limit inputs, (2). driving pulse
types, (3). encoder signal types, and (4). the feedback signals from servo
drivers.
D0
SLMT+
Enable / disable setting for COMP+ register which is used as the +
direction software limit 1: enable, 0:
disable
Once it is enabled during the + direction driving, if the value of
logical / real position counter is larger
than that of COMP+, the decelerating stop will be performed. The D0
(SLMT+) bit of register RR2 will
become 1. Under this situation, further w direction driving
commands will not be executed.
Note: When a position counter variable ring is used, a software over
run limit cannot be used.
D1
SLMT
−
Enable / disable setting for COMP
−
register which is used as the
−
direction software limit 1: enable, 0:
disable
Once it is enabled during the
−
direction driving, if the value of
logical / real position counter is smaller
than that of COMP
−
, the decelerating stop will be performed. The D1
(SLMT
−
) bit of register RR2 will
become 1. Under this situation, further written
−
direction driving
commends will not be executed.
D2
LMTMD
The bit for controlling stop type when the hardware limits
(nLMTP and nLMTM input signals)
are
active
0: sudden stop, 1: decelerating stop
D3
HLMT+
Setting the logical level of + direction limit input signal (nLMTP) 0:
active on the Low level, 1: active on
the Hi level
D4
HLMT
−
Setting the logical level of
−
direction limit input signal (nLMTM)
0:active on the Low level, 1: active on
the Hi level
D5
CMPSL
Setting if real position counter or logical position counter is going to
be compared with COMP +/
−
register
0: logical position counter, 1 : real position counter
D6
PLSMD
Setting output pulse type 0: independent 2-pulse type, 1: 1-pulse
1-direction type