Look at the O20000 program in the s-libg file in the install folder. The comments are in Chinese, but they can be translated. The eng file has all the parameters in English as well (hidden ones too). I am currently trying to implement a Tool turret on my lathe, so I am trying to figure this out as well