Exemple #1
0
 public DialogForm(ControlBoard controlBoard, SettingValues values, MemoryManager memoryManger)
 {
     m_ControlBoard = controlBoard;
     m_values       = values;
     m_memoryManger = memoryManger;
     InitializeComponent();
     SettingValuesToUI();
     InitialDialog();
 }
Exemple #2
0
        private void SettingInit()
        {
            m_settingValues = new SettingValues();
            m_settingValues.value_conveyorSpeed       = IniFileManager.GetSetting_ConveyerSpeed();
            m_settingValues.value_XAxisDistance       = IniFileManager.GetSetting_XXaisDistance();
            m_settingValues.value_ConvererRollerSpeed = IniFileManager.GetSetting_ConverterRollerSpeed();

            // set for machine
            //SendSettingValues(settingValues);
        }
Exemple #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));
 }