C# 클래스 JurmanMetrics.FanucSocket

상속: IDisposable
파일 보기 프로젝트 열기: gregjurman/conduit 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Closes the socket.

Connect ( string hostName, int port ) : void

Dispose ( ) : void

Disposes of the FanucSocket

FanucSocket ( ) : System

Constructor

FanucSocket ( int bufferSize, int baudRate ) : System

Constructor

ReadIn ( FanucSocketOptions options ) : void

Begin a task reading data from the Fanuc Device

StopOperation ( ) : void
WriteOut ( string data, FanucSocketOptions options ) : void

Begin a task reading data from the Fanuc Device

비공개 메소드들

메소드 설명
ChangeState ( FanucSocketState newState ) : void
ReadIn_ClipBlock ( FanucChunk &chunk ) : void

Crops the data in the DC2-DC4 bounds

ReadIn_GetData ( FanucChunk &chunk ) : void

Gets data from socket and puts it in the chunk

ReadIn_Main ( FanucSocketOptions options ) : void

Locks access to the socket and does a read operation. If data has arrived, it is checked for Fanuc control codes and saved to memory.

ReadIn_ParseData ( FanucChunk &chunk, FanucSocketOptions options ) : void

Parses the data and keeps a state

ReadIn_ToCRLF ( FanucChunk &chunk ) : void

Converts LF to CR+LF

SafeToProceed ( ) : bool

Check all threads and tasks and confirm there is nothing preventing a task from running

WriteOut_ChunkData ( FanucChunk &chunks, string data ) : void
WriteOut_GetCode ( ) : int
WriteOut_Main ( string data, FanucSocketOptions options ) : void
WriteOut_Prepare ( FanucChunk &chunks, string &data, FanucSocketOptions options ) : void
WriteOut_Sanitize ( string &data, FanucSocketOptions options ) : void

Santizes data before sending it out. Needs some work

WriteOut_SendChunk ( FanucChunk chunk ) : void
WriteOut_ToLF ( string &data ) : void

메소드 상세

Close() 공개 메소드

Closes the socket.
public Close ( ) : void
리턴 void

Connect() 공개 메소드

public Connect ( string hostName, int port ) : void
hostName string The hostname of the device.
port int The port number to connect to.
리턴 void

Dispose() 공개 메소드

Disposes of the FanucSocket
public Dispose ( ) : void
리턴 void

FanucSocket() 공개 메소드

Constructor
public FanucSocket ( ) : System
리턴 System

FanucSocket() 공개 메소드

Constructor
public FanucSocket ( int bufferSize, int baudRate ) : System
bufferSize int
baudRate int
리턴 System

ReadIn() 공개 메소드

Begin a task reading data from the Fanuc Device
public ReadIn ( FanucSocketOptions options ) : void
options FanucSocketOptions
리턴 void

StopOperation() 공개 메소드

public StopOperation ( ) : void
리턴 void

WriteOut() 공개 메소드

Begin a task reading data from the Fanuc Device
public WriteOut ( string data, FanucSocketOptions options ) : void
data string
options FanucSocketOptions
리턴 void