2
Write the text on the right to the global
definitions.pmh.
•
To use the hardware-interpolated sinusoidal encoder posi-
tion
Sys.WpKey = $AAAAAAAA //Release write-pro
tect
//Default setting Sinusoidal Encoder*1
Gate3[0].EncClockDiv = 3
Gate3[0].AdcEncClockDiv = 3
Gate3[0].AdcEncCtrl = $3FFFC000
//Enable Sinusoidal Encoder
Gate3[0].Chan[0].AtanEna = 1
Motor[1].ServoCtrl = 1
//Setting Encoder table
EncTable[1].type = 1
EncTable[1].pEnc = Gate3[0].Chan[0].ServoCa
pt.a
EncTable[1].index1 = 0
EncTable[1].index2 = 0
EncTable[1].ScaleFactor = 1/4096
Motor[1].pEnc = EncTable[1].a
Motor[1].pEnc2 = EncTable[1].a
Sys.WpKey = $0 //Write-protect
*1. Do not change the setting by which Sinusoidal Encod-
er values can be received correctly.
3 Sinusoidal Encoder Connection Procedure
3-8
CK3M-series Startup Guide Sinusoidal Encoder (O048)