/// <summary> /// Guarda en el Equipo las unidades de representación de longitud /// </summary> /// <remarks></remarks> public new async Task WriteLengthUnitAsync(CLength.LengthUnit value) { // SyncLock ServiceStackJBC01_Lock if (connectErrorStatus != EnumConnectError.NO_ERROR) { return; } try { await m_hostService.SetStationLengthUnitAsync(m_hostStnUUID, (dc_EnumConstJBCdc_LengthUnit)value); Info_Station.Settings.LengthUnit = value; } catch (FaultException <faultError> faultEx) { RaiseEventError(faultEx, System.Reflection.MethodBase.GetCurrentMethod().Name); } catch (Exception ex) { RaiseEventError(ex, System.Reflection.MethodBase.GetCurrentMethod().Name); } // End SyncLock }
/// <summary> /// Guarda en el Equipo las unidades de representación de longitud /// </summary> /// <remarks></remarks> public void WriteLengthUnit(CLength.LengthUnit lengthUnits) { //Datos byte[] Datos = new byte[1]; Datos[0] = System.Convert.ToByte(lengthUnits); //Command byte Command = (byte)EnumCommandFrame_02_SF.M_W_LENGTHUNIT; SendMessage(Datos, Command); }
public void SetStationLengthUnits(CLength.LengthUnit units) { m_Frames_02.WriteLengthUnit(units); m_Frames_02.ReadLengthUnit(); }
public async Task SetStationLengthUnitsAsync(CLength.LengthUnit units) { await stack.WriteLengthUnitAsync(units); }