示例#1
0
        private void UserButton_Click_11(object sender, RoutedEventArgs e)
        {
            if (!m_bConnect || m_nAxis < 0 || mc_Acs.fn_GetStateMove(m_nAxis))
            {
                return;
            }

            m_dCmd = Convert.ToDouble(TextBox_Cmd.Text);
            m_dVel = Convert.ToDouble(TextBox_Vel.Text);
            m_dAcc = Convert.ToDouble(TextBox_Acc.Text);
            m_dDec = Convert.ToDouble(TextBox_Dec.Text);

            mc_Acs.fn_MoveRelativePosition(m_nAxis, m_dCmd, false, m_dVel, m_dAcc, m_dDec);
        }