3-4
Various Controller Settings and
Checking Operation
Perform the settings for connecting the Controller to the Serial Encoder.
1
Open the global definitions.pmh under
PMAC Script Language – Global
Includes in the Solution Explorer.
2
Write the text shown on the right to the
global definitions.pmh.
The settings are based on the following
conditions.
•
Phase frequency: 8 kHz
•
Servo period: 2 kHz
Startup Guide for Serial Encoder BiSS-C/EnDAT 2.1/2.2/1S Motor (O051)
3 Serial Encoder Connection Procedures
Sys.WpKey = $AAAAAAAA
Gate3[1].PhaseFreq=8000
Gate3[1].ServoClockDiv=3
Sys.ServoPeriod=1/2
EncTable[1].type = 1
EncTable[1].pEnc = Gate3[0].Chan[0].SerialEncData
A.a
EncTable[1].ScaleFactor = 1
Motor[1].ServoCtrl = 1
Motor[1].pEnc = EncTable[1].a
Motor[1].pEnc2 = EncTable[1].a
Gate3[0].Chan[0].SerialEncEna = 1
3
3-7