D1-N Series Servo Drive User Manual          Servo Drive Configuration 
5-62     HIWIN MIKROSYSTEM Corp. 
  Parameters 
Table 5.7.2 
PT Parameter  Definition 
Unit 
PT.StartPosition  Start position of PT signal  0  count  2
31
 - 1  - 2
31
 
PT.EndPosition  End position of PT signal  0  count  2
31
 - 1  - 2
31
 
PT.Interval  Interval of PT signal output  0  count  2
31
 - 1  1 
PT.PulseWidth  Width of PT output pulse  100  25 ns  4,000  1 
PT.Polarity 
0: Normal low 
1  -  1  0 
PT.Status 
0: Disable PT function 
0  -  1  0 
  Conditions for enabling and disabling PT function 
(1)  Conditions for enabling PT function (The following conditions must be satisfied.) 
•  With digital encoder (AqB) 
•  Homing completes. 
•  Enable PT function (Set PT.Status to 1.). 
(2)  Conditions for disabling PT function (Either of the following conditions must be satisfied.) 
•  When PT.EndPosition is reached, PT function is disabled automatically. 
•  Disable PT function (Set PT.Status to 0.). 
Note: 
User can execute “call _PT_OUTPUT;” to let the servo drive output one PT signal for 1 ms for function testing. 
  Example 
Homing must be completed before using PT function. The encoder resolution is 1 count = 1 um. The 
start position of the first PT pulse output is 25 mm. Then one PT pulse will be output every 1 mm. 
The polarity of pulse is normal low. The width of pulse is 2.5 us. The end position of the last PT pulse 
output is 100 mm. The program codes are as below. 
_SetPT: 
PT.StartPosition =25000; 
PT.EndPosition = 100000; 
PT.Polarity = 0; 
PT.PulseWidth = 100; 
PT.Interval = 1000; 
PT.Status = 1; 
ret;