Search Results for

    Show / Hide Table of Contents

    Class MechanicalUnitServiceInterval

    Holds information about service intervals for a mechanical unit.

    Inheritance
    System.Object
    ReadOnlyObject
    ServiceInfo
    MechanicalUnitServiceInterval
    Implements
    System.Runtime.Serialization.IDeserializationCallback
    Inherited Members
    ReadOnlyObject.DemandWriteAccess()
    ReadOnlyObject.IDeserializationCallback.OnDeserialization(Object)
    ReadOnlyObject.IsReadOnly
    Namespace: ABB.Robotics.Controllers.MotionDomain
    Assembly: ABB.Robotics.Controllers.PC.dll
    Syntax
    public class MechanicalUnitServiceInterval : ServiceInfo, IDeserializationCallback

    Constructors

    MechanicalUnitServiceInterval()

    Initializes a new MechanicalUnitServiceInterval object.

    Declaration
    public MechanicalUnitServiceInterval()

    MechanicalUnitServiceInterval(TimeSpan, TimeSpan)

    Initializes a new MechanicalUnitServiceInterval object.

    Declaration
    public MechanicalUnitServiceInterval(TimeSpan calender, TimeSpan production)
    Parameters
    Type Name Description
    System.TimeSpan calender

    Calender time.

    System.TimeSpan production

    Production time.

    Properties

    CalenderTime

    Gets the service interval in calender time as a TimeSpan object.

    Declaration
    public TimeSpan CalenderTime { get; set; }
    Property Value
    Type Description
    System.TimeSpan
    Examples
    Controller c = new Controller();
    MotionSystem msystem = c.MotionSystem;
    MechanicalUnit munit = msystem.ActiveMechanicalUnit;
    MechanicalUnitServiceInfo info = munit.ServiceInfo;
    
    // Service interval in years, calender time
    int serviceIntervalCalender = Convert.ToInt32(info.ServiceInterval.CalenderTime.TotalDays / 365);

    ProductionTime

    Get the service interval in production time as a TimeSpan object.

    Declaration
    public TimeSpan ProductionTime { get; set; }
    Property Value
    Type Description
    System.TimeSpan
    Examples
    Controller c = new Controller();
    MotionSystem msystem = c.MotionSystem;
    MechanicalUnit munit = msystem.ActiveMechanicalUnit;
    MechanicalUnitServiceInfo info = munit.ServiceInfo;
    
    // Service interval in hours, production time
    int serviceIntervalProduction = Convert.ToInt32(info.ServiceInterval.ProductionTime.TotalHours);

    Implements

    System.Runtime.Serialization.IDeserializationCallback
    In This Article
    Back to top Copyright © 2025 ABB