Exemplo n.º 1
0
        private void comboBox_converterRollerSpeed_SelectedIndexChanged(object sender, EventArgs e)
        {
            // m_values.value_ConvererRollerSpeed = comboBox_converterRollerSpeed.SelectedIndex + 1;
            int selectValue = comboBox_converterRollerSpeed.SelectedIndex + 1;

            m_ControlBoard.SendMessage(MessageGenerator.Meesage_Write(MessageProtocol.CMD_WRITE_ROLLERSPEED, (short)selectValue));
        }
Exemplo n.º 2
0
        private void comboBox_xXaisDistance_SelectedIndexChanged(object sender, EventArgs e)
        {
            // m_values.value_XAxisDistance = comboBox_xXaisDistance.SelectedIndex + 1;
            int selectValue = comboBox_xXaisDistance.SelectedIndex + 1;

            m_ControlBoard.SendMessage(MessageGenerator.Meesage_Write(MessageProtocol.CMD_WRITE_XXAISDISTANCE, (short)selectValue));
        }
Exemplo n.º 3
0
 private void SendSettingValues(SettingValues valueData)
 {
     m_ControlBoard.SendMessage(MessageGenerator.Meesage_Write(MessageProtocol.CMD_WRITE_BELTSPEED, (short)valueData.value_conveyorSpeed));
     m_ControlBoard.SendMessage(MessageGenerator.Meesage_Write(MessageProtocol.CMD_WRITE_XXAISDISTANCE, (short)valueData.value_XAxisDistance));
     m_ControlBoard.SendMessage(MessageGenerator.Meesage_Write(MessageProtocol.CMD_WRITE_ROLLERSPEED, (short)valueData.value_ConvererRollerSpeed));
 }