C# Class KMotion_dotNet.KM_IO

IO class for KM_Controller Use to control a single point(bit) of IO Currently supported IO: Digital Input, Digital Output
Afficher le fichier Open project: parhansson/KMotionX

Protected Properties

Свойство Type Description
_Controller KM_Controller
_ID int
_IOType IO_TYPE
_Name string

Méthodes publiques

Méthode Description
GetAnalogValue ( ) : int

Reads the digital expression of an analog value

GetDigitalValue ( ) : bool

Gets the current status of a point of IO

KM_IO ( KM_Controller controller, int id, string name, IO_TYPE iotype ) : System

Primary Construtor for IO object

SetAnalogValue ( int value ) : void

Sets the output level of an analog output

SetDigitalValue ( bool value ) : void

Sets the value if the IOType is Digital output Otherwise will throw an exception

Toggle ( ) : void

Toggle a Digital Output Bit

Méthodes protégées

Méthode Description
UpdateIOType ( ) : void

Uptdates the IO direction

Method Details

GetAnalogValue() public méthode

Reads the digital expression of an analog value
public GetAnalogValue ( ) : int
Résultat int

GetDigitalValue() public méthode

Gets the current status of a point of IO
public GetDigitalValue ( ) : bool
Résultat bool

KM_IO() public méthode

Primary Construtor for IO object
public KM_IO ( KM_Controller controller, int id, string name, IO_TYPE iotype ) : System
controller KM_Controller
id int Bit Number
name string Call Name
iotype IO_TYPE Sets the IO direction
Résultat System

SetAnalogValue() public méthode

Sets the output level of an analog output
public SetAnalogValue ( int value ) : void
value int -2048...2047
Résultat void

SetDigitalValue() public méthode

Sets the value if the IOType is Digital output Otherwise will throw an exception
public SetDigitalValue ( bool value ) : void
value bool new value for IO point
Résultat void

Toggle() public méthode

Toggle a Digital Output Bit
public Toggle ( ) : void
Résultat void

UpdateIOType() protected méthode

Uptdates the IO direction
protected UpdateIOType ( ) : void
Résultat void

Property Details

_Controller protected_oe property

KM_Controller Object for used for device access
protected KM_Controller _Controller
Résultat KM_Controller

_ID protected_oe property

Bit Number
protected int _ID
Résultat int

_IOType protected_oe property

Direction of IO Only Digital Input and Digital Output Are currently supported
protected IO_TYPE _IOType
Résultat IO_TYPE

_Name protected_oe property

Call Name Use to describe what the IO controls i.e. Start Button, Clamp Pneumatic, etc...
protected string _Name
Résultat string