public void OnGetPrinterSetting(ref SPrinterSetting ss, ref PeripheralExtendedSettings ex) { bool bMoveSettingChang = false; //zAixsSetting1.OnGetPrinterSetting(ref ss, ref bMoveSettingChang); uvSetting1.OnGetPrinterSetting(ref ss, ref ex); }
public void OnGetPrinterSetting(ref SPrinterSetting ss) { ss.sBaseSetting.nSpotColor1Mask = this.spotColorMaskSetting1.SpotColorMask; ss.sBaseSetting.nSpotColor2Mask = this.spotColorMaskSetting2.SpotColorMask; ss.sBaseSetting.multipleWriteInk = (byte)this.cbo_MultipleInk.SelectedIndex; ss.sExtensionSetting.multipleVanishInk = (byte)this.cbo_MultipleVavishInk.SelectedIndex; if (this.checkBox14plTo42pl.Checked) { ss.sBaseSetting.bitRegion |= 1; } else { ss.sBaseSetting.bitRegion &= 0xfffe; } ss.sExtensionSetting.bGreyRip = (byte)(radioButtonRip.Checked ? 1 : 0); if (colorNum > 0) { ss.sExtensionSetting.ColorGreyMask = new byte[CoreConst.MAX_COLOR_NUM]; for (int i = 0; i < colorNum; i++) { byte val1 = (byte)(NumericUpDownGreyList[i].Value * 255 / 100); if (0 < val1 && val1 < 255) { val1 += 1; } ss.sExtensionSetting.ColorGreyMask[i] = val1; } } }
public void OnPrinterSettingChange(SPrinterSetting ss, SPrinterProperty sp) { this.manualCleanSetting.OnPrinterSettingChange(ss, sp); if (bDocanTextile) { this.docanManualCleanSetting1.OnPrinterSettingChange(ss, sp); } if (bColorJet) { if (bSsystem) { colorjetManualCleanSettingS.OnPrinterSettingChange(ss, sp); } else { colorjetManualCleanSettingA1.OnPrinterSettingChange(ss, sp); } } if (bGzGmaHead) { this.gmaCleanSetting1.OnPrinterSettingChange(ss); } if (bIsHLC) { this.hlcCleanSetting1.OnPrinterSettingChange(ss); } if (bIsPQ) { this.pqCleanSetting1.OnPrinterSettingChange(ss); } }
public void OnGetPrinterSetting(ref SPrinterSetting ss) { ss.sExtensionSetting.WorkPosList[0] = (int)(UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numPos1.Value)) * _printerProperty.fPulsePerInchAxis4); ss.sExtensionSetting.WorkPosList[1] = (int)(UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numPos2.Value)) * _printerProperty.fPulsePerInchAxis4); int enable = 0; if (cbxEnable1.Checked) { enable = enable | 1; } if (cbxEnable2.Checked) { enable = enable | (1 << 1); } ss.sExtensionSetting.WorkPosEnable = (byte)enable; EpsonLCD.SetWorkPosInfo(ss); LogWriter.WriteLog( new string[] { string.Format("[JianRui]WorkPos1:{0},JianRui]WorkPos2:{1}", ss.sExtensionSetting.WorkPosList[0], ss.sExtensionSetting.WorkPosList[1]) }, true); }
public void OnGetPrinterSetting(ref SPrinterSetting ss, ref PeripheralExtendedSettings ex) { ss.UVSetting.fShutterOpenDistance = UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numericUpDownShutterDis.Value)); int mask = 0x00; #if !DOUBLE_SIDE_PRINT_HAPOND ss.UVSetting.fLeftDisFromNozzel = UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numericUpDownLeftDis.Value)); ss.UVSetting.fRightDisFromNozzel = UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numericUpDownRightDis.Value)); mask |= (this.checkBox1Leftprinton.Checked ? 0x2 : 0); mask |= (this.checkBox1Rightprinton.Checked ? 0x1 : 0); mask |= (this.checkBox2Leftprinton.Checked ? 0x8 : 0); mask |= (this.checkBox2Rightprinton.Checked ? 0x4 : 0); // mask |= (this.m_checkBoxVisableLeft.Checked? 0x1:0); // mask |= (this.m_checkBoxVisableRight.Checked?0x4:0); #else ss.UVSetting.fLeftDisFromNozzel = UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numericUpDownRightDis.Value)); ss.UVSetting.fRightDisFromNozzel = UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numericUpDownLeftDis.Value)); mask |= (this.checkBox2Leftprinton.Checked ? 0x1 : 0); mask |= (this.checkBox2Rightprinton.Checked ? 0x2 : 0); mask |= (this.checkBox1Leftprinton.Checked ? 0x4 : 0); mask |= (this.checkBox1Rightprinton.Checked ? 0x8 : 0); // mask |= (this.m_checkBoxVisableLeft.Checked? 0x1:0); // mask |= (this.m_checkBoxVisableRight.Checked?0x4:0); #endif ss.UVSetting.iLeftRightMask = (uint)mask; ss.UVSetting.eUvLightType = (byte)this.cmb_UvLightType.SelectedIndex; if (PubFunc.IsSupportUVOffsetDistance()) { ex.UVOffsetDis = GetUVOffsetFromUI(); } }
public static void LogSetPrinterSetting(SPrinterSetting ss, bool bprinting, string source) { int passnum = 0; int step = 0; if (bprinting) { SPrtFileInfo jobInfo = new SPrtFileInfo(); if (CoreInterface.Printer_GetJobInfo(ref jobInfo) > 0) { passnum = jobInfo.sFreSetting.nPass; if (ss.nKillBiDirBanding != 0) { step = ss.sCalibrationSetting.nPassStepArray[(passnum + 1) / 2 - 1]; } else { step = ss.sCalibrationSetting.nPassStepArray[passnum - 1]; } } } else { passnum = ss.sFrequencySetting.nPass; if (ss.nKillBiDirBanding != 0) { step = ss.sCalibrationSetting.nPassStepArray[(ss.sFrequencySetting.nPass + 1) / 2 - 1]; } else { step = ss.sCalibrationSetting.nPassStepArray[ss.sFrequencySetting.nPass - 1]; } } LogWriter.WriteLog(new string[] { string.Format("SetPrinterSetting[source={0}];setted value[passnum={1},stepPerhead={2},fixstep={3}]", source, passnum, ss.sCalibrationSetting.nStepPerHead, step) }, true); }
public void OnGetPrinterSetting(ref SPrinterSetting ss) { if (bColorJet) { //ColorJet 通用参数 _manualCleanParamData.nXStartPos = (uint)Math.Round((UIPreference.ToInchLength(m_CurrentUnit, (float)m_NumericUpDownXStartPos.Value)) * m_sPrinterProperty.fPulsePerInchX); _manualCleanParamData.bySwapHeaders = (byte)(m_ComboBoxHeaderNumPerTime.SelectedIndex + 1); _manualCleanParamData.nFlag = BitConverter.ToUInt32(System.Text.Encoding.ASCII.GetBytes("CJCA"), 0); //ColorJet A+系统参数 { _manualCleanParamData.OriginOffset = (byte)(this.numericOriginOffset.Value); _manualCleanParamData.ySpeedHz = Decimal.ToUInt16(this.numericSpeed.Value); _manualCleanParamData.yZeroDelay = Decimal.ToUInt16(this.numericDelayTime.Value); _manualCleanParamData.DisableFlag = (byte)(checkBoxFunctionOn.Checked ? 0 : 1); } //_manualCleanParamData.cleanBeltOutTime = (uint) ((float)numCleanBeltTime.Value*1000f); this.m_ButtonStartClean.Enabled = bCanCleanFlg = true; if (EpsonLCD.SetManualCleanParam(_manualCleanParamData) == false) { string info = ResString.GetEnumDisplayName(typeof(UIError), UIError.SetCleanParamFail); MessageBox.Show(info, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); this.m_ButtonStartClean.Enabled = bCanCleanFlg = false; } } }
public void OnGetPrinterSetting(ref SPrinterSetting ss) { ss.sMoveSetting.nXMoveSpeed = Decimal.ToByte(m_NumericUpDownMoveXSpeed.SelectedIndex + 1); ss.sMoveSetting.nYMoveSpeed = Decimal.ToByte(m_NumericUpDownMoveYSpeed.SelectedIndex + 1); ss.sMoveSetting.nZMoveSpeed = Decimal.ToByte(m_ComboBoxZspeed.SelectedIndex + 1); ss.sMoveSetting.n4MoveSpeed = Decimal.ToByte(m_ComboBox4speed.SelectedIndex + 1); }
public void OnPrinterSettingChange(SPrinterSetting ss) { bool bsupportwhite = (spp.nWhiteInkNum & 0x0F) > 0; bool bsupportVarnish = (spp.nWhiteInkNum >> 4) > 0; if (ss.sBaseSetting.nSpotColor1Mask == 0) { ss.sBaseSetting.nSpotColor1Mask = (ushort)0xFF00; } if (ss.sBaseSetting.nSpotColor2Mask == 0) { ss.sBaseSetting.nSpotColor2Mask = (ushort)0xFF00; } this.spotColorMaskSetting1.SpotColorMask = ss.sBaseSetting.nSpotColor1Mask; this.spotColorMaskSetting2.SpotColorMask = ss.sBaseSetting.nSpotColor2Mask; UIPreference.SetSelectIndexAndClampWithMax(this.cbo_MultipleInk, ss.sBaseSetting.multipleWriteInk); UIPreference.SetSelectIndexAndClampWithMax(this.cbo_MultipleVavishInk, ss.sExtensionSetting.multipleVanishInk); this.checkBox14plTo42pl.Checked = (ss.sBaseSetting.bitRegion & 1) != 0; radioButtonRip.Checked = ss.sExtensionSetting.bGreyRip == 1 ? true : false; for (int i = 0; i < colorNum && i < ss.sExtensionSetting.ColorGreyMask.Length; i++) { NumericUpDownGreyList[i].Value = ss.sExtensionSetting.ColorGreyMask[i] * 100 / 255; } this.isDirty = false; }
public void OnGetPrinterSetting(ref SPrinterSetting ss) { this.manualCleanSetting.OnGetPrinterSetting(ref ss); this.docanManualCleanSetting1.OnGetPrinterSetting(ref ss); if (bColorJet) { if (bSsystem) { colorjetManualCleanSettingS.OnGetPrinterSetting(ref ss); } else { colorjetManualCleanSettingA1.OnGetPrinterSetting(ref ss); } } if (bGzGmaHead) { this.gmaCleanSetting1.OnGetPrinterSetting(ref ss); } if (bIsHLC) { this.hlcCleanSetting1.OnGetPrinterSetting(ref ss); } if (bIsPQ) { this.pqCleanSetting1.OnGetPrinterSetting(ref ss); } }
public void OnGetPrinterSetting(ref SPrinterSetting ss) { _docanTextileParam.xStartPos = Convert.ToInt32(this.numericUpDown_xStartPos.Value); _docanTextileParam.zCLeanPos = Convert.ToInt32(this.numericUpDown_zCLeanPos.Value); _docanTextileParam.PressInkTime = Convert.ToUInt16(this.numericUpDown_PressInkTime.Value); _docanTextileParam.ZSensorErrRange = Convert.ToUInt16(this.numericUpDown_ZSensorErrRange.Value); _docanTextileParam.ZSensorCurVal = Convert.ToUInt16(this.numericUpDown_ZSensorCurVal.Value); }
public void OnPrinterSettingChange(SPrinterSetting ss) { UIPreference.SetSelectIndexAndClampWithMax(m_NumericUpDownMoveXSpeed, ss.sMoveSetting.nXMoveSpeed - 1); UIPreference.SetSelectIndexAndClampWithMax(m_NumericUpDownMoveYSpeed, ss.sMoveSetting.nYMoveSpeed - 1); UIPreference.SetSelectIndexAndClampWithMax(m_ComboBoxZspeed, ss.sMoveSetting.nZMoveSpeed - 1); UIPreference.SetSelectIndexAndClampWithMax(m_ComboBox4speed, ss.sMoveSetting.n4MoveSpeed - 1); this.isDirty = false; }
public void OnPrinterSettingChange(SPrinterSetting ss) { SZSetting zseting = ss.ZSetting; // this.numericUpDownMesureXCoor.Value = new decimal( UIPreference.ToDisplayLength(m_CurrentUnit,zseting.fMesureXCoor)); // this.numericUpDown7.Value = new decimal( UIPreference.ToDisplayLength(m_CurrentUnit,zseting.fMesureYCoor)); this.zAixsSetting1.OnPrinterSettingChange(ss); }
public void OnPrinterSettingChange(SPrinterSetting ss, SPrinterProperty sp) { m_PrinterSetting = ss; //Printer Setting backup if (bColorJet) { if (EpsonLCD.GetManualCleanParam(ref _manualCleanParamData) == false) { string info = ResString.GetEnumDisplayName(typeof(UIError), UIError.ManualCleanNotSupport); MessageBox.Show(info, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); } } //色序初始化 panelColorMask.SuspendLayout(); panelColorMask.Controls.Clear(); if (bColorJet) { for (int n = 0; n < sp.nColorNum / Math.Abs(sp.nOneHeadDivider); n++) { RadioButton colorBox = new RadioButton(); colorBox.Text = string.Format("CH{0}", n + 1); //((ColorEnum_Short) sp.eColorOrder[n]).ToString(); colorBox.TextAlign = ContentAlignment.MiddleLeft; colorBox.AutoSize = true; panelColorMask.Controls.Add(colorBox); } } else { for (int n = 0; n < sp.nColorNum; n++) { CheckBox colorBox = new CheckBox(); colorBox.Text = string.Format("CH{0}", n + 1); //((ColorEnum_Short) sp.eColorOrder[n]).ToString(); colorBox.TextAlign = ContentAlignment.MiddleLeft; colorBox.AutoSize = true; panelColorMask.Controls.Add(colorBox); } } panelColorMask.ResumeLayout(false); if (bColorJet) { //ColorJet 通用参数 UIPreference.SetValueAndClampWithMinMax(this.m_NumericUpDownXStartPos, m_CurrentUnit, _manualCleanParamData.nXStartPos / m_sPrinterProperty.fPulsePerInchX); m_ComboBoxHeaderNumPerTime.Items.Clear();//每次清洗喷头数初始化 for (int n = 1; n <= sp.nHeadNumPerGroupY; n++) { m_ComboBoxHeaderNumPerTime.Items.Add(n); } m_ComboBoxHeaderNumPerTime.SelectedIndex = 0; //ColorJet A+系统参数 { UIPreference.SetValueAndClampWithMinMax(this.numericOriginOffset, _manualCleanParamData.OriginOffset); UIPreference.SetValueAndClampWithMinMax(this.numericSpeed, _manualCleanParamData.ySpeedHz); UIPreference.SetValueAndClampWithMinMax(this.numericDelayTime, _manualCleanParamData.yZeroDelay); checkBoxFunctionOn.Checked = _manualCleanParamData.DisableFlag == 0; } //UIPreference.SetValueAndClampWithMinMax(this.numCleanBeltTime, _manualCleanParamData.cleanBeltOutTime/1000f); } }
public void OnGetPrinterSetting(ref SPrinterSetting ss) { _hlcCleanParam.XPressInkPos = Convert.ToInt32(UIPreference.ToInchLength(m_CurrentUnit, (float)this.numXPressInkPos.Value) * _sp.fPulsePerInchX); _hlcCleanParam.YCleanPos = Convert.ToInt32(UIPreference.ToInchLength(m_CurrentUnit, (float)this.numYCleanPos.Value) * _sp.fPulsePerInchY); _hlcCleanParam.ZCleanPos = Convert.ToInt32(UIPreference.ToInchLength(m_CurrentUnit, (float)this.numZCleanPos.Value) * _sp.fPulsePerInchZ); _hlcCleanParam.YCleanSpeed = (int)numYCleanSpeed.Value; _hlcCleanParam.PressInkTime = (int)numPressInkTime.Value; _hlcCleanParam.RecoveryInkTime = (int)numRecoveryInkTime.Value; }
/// <summary> /// 更新note数据,电压和脉宽参数 /// </summary> public void UpdateNoteTextAndImage(SPrinterSetting ss) { realNoteText = string.Empty; realNoteText = GetRealNoteText(this, ss); Rectangle size = GetBound(this); NoteImageFileName = string.Empty; this.CreatNoteImage(size.Width, realNoteText, GetNoteFont(), this.NotePosition == 0 || this.NotePosition == 2); }
public void OnGetPrinterSetting(ref SPrinterSetting ss) { if (bALLWIN) { _allwinData.xPos = Convert.ToUInt32(this.numericXAxisPos.Value); _allwinData.yPos = Convert.ToUInt32(this.numericBladeYMobileDistance.Value); _allwinData.zPos = Convert.ToUInt32(this.numericScrapPlatformZPos.Value); _allwinData.CleanPumpTime = Convert.ToUInt16(this.numericBladeCleanDuration.Value); } }
public void OnPrinterSettingChange(SPrinterSetting ss) { UIPreference.SetValueAndClampWithMinMax(this.numPos1, m_CurrentUnit, (float)ss.sExtensionSetting.WorkPosList[0] / _printerProperty.fPulsePerInchAxis4); UIPreference.SetValueAndClampWithMinMax(this.numPos2, m_CurrentUnit, (float)ss.sExtensionSetting.WorkPosList[1] / _printerProperty.fPulsePerInchAxis4); cbxEnable1.Checked = (ss.sExtensionSetting.WorkPosEnable & 1) == 1 ? true : false; cbxEnable2.Checked = (ss.sExtensionSetting.WorkPosEnable >> 1 & 1) == 1 ? true : false; }
public void OnPrinterSettingChange(SPrinterSetting ps) { this.numericUpDownXCnt.Minimum = 1; this.numericUpDownXCnt.Maximum = new Decimal(ps.sBaseSetting.fPaperWidth); this.numericUpDownYCnt.Minimum = 1; this.numericUpDownYCnt.Maximum = Decimal.MaxValue; this.numericUpDownXDis.Minimum = 0; this.numericUpDownXDis.Maximum = new Decimal(ps.sBaseSetting.fPaperWidth); this.numericUpDownYDis.Minimum = 0; this.numericUpDownYDis.Maximum = Decimal.MaxValue; }
public void OnPrinterSettingChange(SPrinterSetting ss) { if (m_bNewXaar382) { this.xaarTempertureSetting1.OnPrinterSettingChange(ss); } else { m_KonicTemperatureSetting1.OnPrinterSettingChange(ss); } }
public void OnGetPrinterSetting(ref SPrinterSetting ss) { _gmaCleanParam.XStartPos = Convert.ToInt32(UIPreference.ToInchLength(m_CurrentUnit, (float)this.numxStartPos.Value) * _sp.fPulsePerInchX); _gmaCleanParam.XDistance = Convert.ToInt32(UIPreference.ToInchLength(m_CurrentUnit, (float)this.numxDistance.Value) * _sp.fPulsePerInchX); _gmaCleanParam.ScraperPos = Convert.ToInt32(this.numScraperPos.Value); _gmaCleanParam.ZCleanPos = Convert.ToInt32(UIPreference.ToInchLength(m_CurrentUnit, (float)this.num_zCLeanPos.Value) * _sp.fPulsePerInchZ); _gmaCleanParam.CleanRowNum = (byte)(this.numcleanRowNum.Value); _gmaCleanParam.CleanTime = (byte)numcleanTimes.Value; _gmaCleanParam.YCarryCleanPos = Convert.ToInt32(UIPreference.ToInchLength(m_CurrentUnit, (float)this.numYCarryCleanPos.Value) * _sp.fPulsePerInchY); _gmaCleanParam.ZCarryCleanPos = Convert.ToInt32(UIPreference.ToInchLength(m_CurrentUnit, (float)this.numZCarryCleanPos.Value) * _sp.fPulsePerInchZ); }
public void OnPrinterSettingChange(SPrinterSetting ss, SPrinterProperty sp) { m_PrinterSetting = ss; if (EpsonLCD.GetDocanTextileCleanParam(ref _docanTextileParam)) { numericUpDown_xStartPos.Value = _docanTextileParam.xStartPos; numericUpDown_zCLeanPos.Value = _docanTextileParam.zCLeanPos; numericUpDown_PressInkTime.Value = _docanTextileParam.PressInkTime; numericUpDown_ZSensorErrRange.Value = _docanTextileParam.ZSensorErrRange; numericUpDown_ZSensorCurVal.Value = _docanTextileParam.ZSensorCurVal; } }
public void StartListening( ) { // Establish the local endpoint for the socket. // Dns.GetHostName returns the name of the // host running the application. LogWriter.WriteLog(new string[] { string.Format("StartListening") }, true); Socket hSocket; IPEndPoint localEndPoint = new IPEndPoint(m_TcpIpPortParam.m_address, m_TcpIpPortParam.m_port); // Create a TCP/IP socket. hSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); // Bind the socket to the local endpoint and // listen for incoming connections. try { hSocket.Bind(localEndPoint); hSocket.Listen(10); // Start listening for connections. while (true) { LogWriter.WriteLog(new string[] { string.Format("Waiting for a connection...") }, true); Console.WriteLine("Waiting for a connection..."); // Program is suspended while waiting for an incoming connection. ///?????????????????????????????????????????????should this how to control it close m_hAcceptSocket = hSocket.Accept(); LogWriter.WriteLog(new string[] { string.Format("Socket Connect") }, true); SPrinterSetting ss = m_IPrinterChange.GetAllParam().PrinterSetting; m_IPrinterChange.GetAllParam().PrinterProperty.SynchronousCalibrationSettings(ref ss); LogWriter.WriteLog(new string[] { string.Format("SCalibrationSetting.nStepPerHead={0}", ss.sCalibrationSetting.nStepPerHead) }, true); // An incoming connection needs to be processed. //while (true) ThreadStart myThreadStart = new ThreadStart(ReceiveDataThread); Thread pRecvThread = new Thread(myThreadStart); pRecvThread.IsBackground = true; //pRecvThread.Join(); pRecvThread.Start(); } } catch (Exception e) { Console.WriteLine(e.ToString()); } Console.WriteLine("\nHit enter to continue..."); //Console.Read(); }
public void OnPrinterSettingChange(SPrinterSetting ss) { _printerSetting = ss; //if (SPrinterProperty.IsSurportCapping()) { WetParam wetParam = new WetParam(); if (EpsonLCD.GetWetParam(ref wetParam)) { // 回保湿位置 checkBoxEnableCappingPosX.Checked = (wetParam.PosMask & 1) != 0; checkBoxEnableCappingPosY.Checked = (wetParam.PosMask & 2) != 0; checkBoxEnableCappingPosZ.Checked = (wetParam.PosMask & 4) != 0; checkBoxsalverPos.Checked = (wetParam.PosMask & 8) != 0; checkBoxEnableAutoCapping.Checked = wetParam.Enable != 0; if (m_sPrinterProperty.fPulsePerInchX > 0) { UIPreference.SetValueAndClampWithMinMax(numCappingPosX, m_CurrentUnit, wetParam.XPos / m_sPrinterProperty.fPulsePerInchX); } if (m_sPrinterProperty.fPulsePerInchY > 0) { UIPreference.SetValueAndClampWithMinMax(numCappingPosY, m_CurrentUnit, wetParam.YPos / m_sPrinterProperty.fPulsePerInchY); } if (m_sPrinterProperty.fPulsePerInchZ > 0) { UIPreference.SetValueAndClampWithMinMax(numCappingPosZ, m_CurrentUnit, wetParam.ZPos / m_sPrinterProperty.fPulsePerInchZ); } numCappingDelayTime.Value = (decimal)(wetParam.WaitTime / 1000f); // 回默认位置 checkBoxXHomePos.Checked = (wetParam.DefaultBackPosMask & 1) != 0; checkBoxYHomePos.Checked = (wetParam.DefaultBackPosMask & 2) != 0; checkBoxEnableHomeDelay.Checked = wetParam.DefaultBackDelayEnable != 0; if (m_sPrinterProperty.fPulsePerInchX > 0) { UIPreference.SetValueAndClampWithMinMax(numHomePosX, m_CurrentUnit, wetParam.DefaultBackXPos / m_sPrinterProperty.fPulsePerInchX); } if (m_sPrinterProperty.fPulsePerInchY > 0) { UIPreference.SetValueAndClampWithMinMax(numHomePosY, m_CurrentUnit, wetParam.DefaultBackYPos / m_sPrinterProperty.fPulsePerInchY); } numAutoHomeDelay.Value = (decimal)(wetParam.BackDefaultPosWaitTime / 1000f); numSalverPos.Value = wetParam.cover4Place; } } this.isDirty = false; }
public void OnPrinterSettingChange(SPrinterSetting ss) { _ss = ss; GZClothMotionParam cc = new GZClothMotionParam(); DOUBLE_YAXIS doubleYaxis = new DOUBLE_YAXIS(); if (EpsonLCD.GetGZClothMotionParam(ref cc) && EpsonLCD.GetDoubleYAxis_Info(ref doubleYaxis)) { rollingMotorCheckBox.Checked = cc.enable != 0; comboBoxMotorMode.SelectedIndex = (cc.mode - 1); numericUpDownMotorSpeed.Value = cc.speed; numericUpDownDoubeYRatio.Value = (decimal)doubleYaxis.DoubeYRatio; } }
public void OnPrinterSettingChange(AllParam allParam) { try { SPrinterSetting ss = allParam.PrinterSetting; EpsonExAllParam epsonAllparam = allParam.EpsonAllParam; if (allParam.PrinterProperty.EPSONLCD_DEFINED) { m_epsonBaseSetting.OnPrinterSettingChange(ss, epsonAllparam); } else { m_BaseSetting.OnPrinterSettingChange(ss); } m_BaseSetting.OnExtendedSettingsChange(allParam.ExtendedSettings); if (this.m_TabControlSetting.TabPages.Contains(this.m_TabPageCaliSetting)) { m_CalibrationSetting.OnPrinterSettingChange(allParam); } m_SeviceSetting.OnPrinterSettingChange(ss, epsonAllparam.sCaliConfig); m_SeviceSetting.OnServiceSettingChange(allParam.SeviceSetting, epsonAllparam.sCaliConfig); //m_RealTimeSetting.OnPrinterSettingChange(ss); m_MoveSetting.OnPrinterSettingChange(ss); spotColorSetting1.OnPrinterSettingChange(ss); spotColorSetting1.OnExtendedSettingsChange(allParam.ExtendedSettings); this.doublePrintSetting1.OnScorpionSettingsChanged(allParam.DoubleSidePrint); this.m_Printer3DSetting.OnPrinterSettingChange(allParam); this.userExtensionSetting.OnPrinterSettingChange(allParam); defineUVPowerLevel1.OnPrinterSettingChange(allParam); closeColorNozzle1.OnPrinterSettingChange(allParam); customCloseNozzle1.OnPrinterSettingChange(ss); if (SPrinterProperty.IsJianRui()) { workposSetting1.OnPrinterSettingChange(allParam.PrinterSetting); } if (PubFunc.SupportDebugQuality()) { debugQuality1.OnPrinterSettingChange(allParam); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void OnGetPrinterSetting(ref SPrinterSetting ss) { //if (SPrinterProperty.IsSurportCapping()) { WetParam wetParam = new WetParam(); wetParam.ActiveLen = 18; // 回保湿位置 wetParam.PosMask = (byte)(checkBoxEnableCappingPosX.Checked ? 1 : 0); // xyz都启用 if (checkBoxEnableCappingPosY.Checked) { wetParam.PosMask |= (1 << 1); } if (checkBoxEnableCappingPosZ.Checked) { wetParam.PosMask |= (1 << 2); } if (checkBoxsalverPos.Checked) { wetParam.PosMask |= (1 << 3); } wetParam.Enable = (byte)(checkBoxEnableAutoCapping.Checked ? 1 : 0); wetParam.XPos = (int)(UIPreference.ToInchLength(m_CurrentUnit, (float)numCappingPosX.Value) * m_sPrinterProperty.fPulsePerInchX); wetParam.YPos = (int)(UIPreference.ToInchLength(m_CurrentUnit, (float)numCappingPosY.Value) * m_sPrinterProperty.fPulsePerInchY); wetParam.ZPos = (int)(UIPreference.ToInchLength(m_CurrentUnit, (float)numCappingPosZ.Value) * m_sPrinterProperty.fPulsePerInchZ); wetParam.WaitTime = (uint)((float)numCappingDelayTime.Value * 1000f); //回缺省位置 wetParam.DefaultBackPosMask = (byte)(checkBoxXHomePos.Checked ? 1 : 0); // xyz都启用 if (checkBoxYHomePos.Checked) { wetParam.DefaultBackPosMask |= (1 << 1); } wetParam.DefaultBackDelayEnable = (byte)(checkBoxEnableHomeDelay.Checked ? 1 : 0); wetParam.DefaultBackXPos = (int)(UIPreference.ToInchLength(m_CurrentUnit, (float)numHomePosX.Value) * m_sPrinterProperty.fPulsePerInchX); wetParam.DefaultBackYPos = (int)(UIPreference.ToInchLength(m_CurrentUnit, (float)numHomePosY.Value) * m_sPrinterProperty.fPulsePerInchY); wetParam.BackDefaultPosWaitTime = (uint)((float)numAutoHomeDelay.Value * 1000f); wetParam.cover4Place = (int)numSalverPos.Value; if (!EpsonLCD.SetWetParam(wetParam)) { MessageBox.Show("Set Capping parametas fail!"); } } }
public void OnGetPrinterSetting(ref SPrinterSetting ss, ref bool bzsettingchang) { // float temp = UIPreference.ToInchLength(m_CurrentUnit,Decimal.ToSingle(this.numericUpDownMesureXCoor.Value)); // if(temp != ss.ZSetting.fMesureXCoor) // { // ss.ZSetting.fMesureXCoor = temp; // bzsettingchang = true; // } // temp = UIPreference.ToInchLength(m_CurrentUnit,Decimal.ToSingle(this.numericUpDown7.Value)); // if(temp != ss.ZSetting.fMesureYCoor) // { // ss.ZSetting.fMesureYCoor = temp; // bzsettingchang = true; // } this.zAixsSetting1.OnGetPrinterSetting(ref ss, ref bzsettingchang); }
public void OnPrinterSettingChange(SPrinterSetting ss, SPrinterProperty sp) { m_PrinterSetting = ss; //Printer Setting backup if (bALLWIN) { EpsonLCD.GetALLWINCleanParam(ref _allwinData); } if (bColorJet) { if (EpsonLCD.GetManualCleanParam(ref _manualCleanParamData) == false) { string info = ResString.GetEnumDisplayName(typeof(UIError), UIError.ManualCleanNotSupport); MessageBox.Show(info, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); } } //色序初始化 panelColorMask.SuspendLayout(); panelColorMask.Controls.Clear(); for (int n = 0; n < sp.nColorNum; n++) { if (bColorJet) { RadioButton colorBox = new RadioButton(); colorBox.Text = string.Format("CH{0}", n + 1);//((ColorEnum_Short) sp.eColorOrder[n]).ToString(); colorBox.TextAlign = ContentAlignment.MiddleLeft; colorBox.AutoSize = true; panelColorMask.Controls.Add(colorBox); } else { CheckBox colorBox = new CheckBox(); colorBox.Text = string.Format("CH{0}", n + 1);//((ColorEnum_Short) sp.eColorOrder[n]).ToString(); colorBox.TextAlign = ContentAlignment.MiddleLeft; colorBox.AutoSize = true; panelColorMask.Controls.Add(colorBox); } } panelColorMask.ResumeLayout(false); if (bALLWIN) { UIPreference.SetValueAndClampWithMinMax(this.numericXAxisPos, _allwinData.xPos); UIPreference.SetValueAndClampWithMinMax(this.numericBladeYMobileDistance, _allwinData.yPos); UIPreference.SetValueAndClampWithMinMax(this.numericScrapPlatformZPos, _allwinData.zPos); UIPreference.SetValueAndClampWithMinMax(this.numericBladeCleanDuration, _allwinData.CleanPumpTime); } }
public void OnPrinterSettingChange(SPrinterSetting ss, CaliConfig cc) { int PassListNum = ss.sFrequencySetting.nPass; m_CheckedListBoxPass.Items.Clear(); string spass = ResString.GetDisplayPass(); for (int i = 0; i < PassListNum; i++) { string dispPass = (i + 1).ToString() + " " + spass; m_CheckedListBoxPass.Items.Add(dispPass); m_CheckedListBoxPass.SetItemChecked(i, true); } //CoreInterface.GetSeviceSetting(ref sSeviceSet); //OnServiceSettingChange(sSeviceSet,cc); //this.isDirty = false; }