/// <summary>
        /// 主軸鬆刀
        /// </summary>
        public static void UnClampTool()
        {
            short  setValue     = 0;
            uint   Size         = 2;
            IntPtr nTargetValue = Marshal.AllocHGlobal(2);

            Marshal.WriteInt16(nTargetValue, setValue);
            MCCL.MCC_EcatCoeSdoDownload(0, 0x2213, 0, nTargetValue, Size);
        }
예제 #2
0
        public void SpindleOff()
        {
            short  setValue     = 1;
            uint   Size         = 2;
            IntPtr nTargetValue = Marshal.AllocHGlobal(2);

            Marshal.WriteInt16(nTargetValue, setValue);
            MCCL.MCC_EcatCoeSdoDownload(0, 0x2215, 0, nTargetValue, Size);
        }