C# 클래스 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
파일 보기 프로젝트 열기: parhansson/KMotionX

보호된 프로퍼티들

프로퍼티 타입 설명
_Controller KM_Controller
_ID int
_IOType IO_TYPE
_Name string

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
UpdateIOType ( ) : void

Uptdates the IO direction

메소드 상세

GetAnalogValue() 공개 메소드

Reads the digital expression of an analog value
public GetAnalogValue ( ) : int
리턴 int

GetDigitalValue() 공개 메소드

Gets the current status of a point of IO
public GetDigitalValue ( ) : bool
리턴 bool

KM_IO() 공개 메소드

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
리턴 System

SetAnalogValue() 공개 메소드

Sets the output level of an analog output
public SetAnalogValue ( int value ) : void
value int -2048...2047
리턴 void

SetDigitalValue() 공개 메소드

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
리턴 void

Toggle() 공개 메소드

Toggle a Digital Output Bit
public Toggle ( ) : void
리턴 void

UpdateIOType() 보호된 메소드

Uptdates the IO direction
protected UpdateIOType ( ) : void
리턴 void

프로퍼티 상세

_Controller 보호되어 있는 프로퍼티

KM_Controller Object for used for device access
protected KM_Controller _Controller
리턴 KM_Controller

_ID 보호되어 있는 프로퍼티

Bit Number
protected int _ID
리턴 int

_IOType 보호되어 있는 프로퍼티

Direction of IO Only Digital Input and Digital Output Are currently supported
protected IO_TYPE _IOType
리턴 IO_TYPE

_Name 보호되어 있는 프로퍼티

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