Thank you for your help. The numbers of motor and channel were wrong. I have set them to #2 and #1, respectively.
The model name of G5 was wrong. It is R88D-KT01L.
I have another problem. The values of Motor[2].DesPos and Motor[2].Act.Pos keep increasing and the motor does not stop even though nothing is commanded, just by connecting ACC-24E3 and G5 analog servo. The servo cannot be enabled (Motor[2].AmpEna is false).
Where does the value of Motor[2].DesPos come from?
I also have questions about the encoder settings. Is the settings below correct?
EncTable[2].type=1
EncTable[2].index1=12
EncTable[2].index2=8
EncTable[2].ScaleFactor=0.001/1048576