Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
ChangeState ( FanucSocketState newState ) : void | ||
ReadIn_ClipBlock ( |
Crops the data in the DC2-DC4 bounds
|
|
ReadIn_GetData ( |
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 ( |
Parses the data and keeps a state
|
|
ReadIn_ToCRLF ( |
Converts LF to CR+LF
|
|
SafeToProceed ( ) : bool |
Check all threads and tasks and confirm there is nothing preventing a task from running
|
|
WriteOut_ChunkData ( |
||
WriteOut_GetCode ( ) : int | ||
WriteOut_Main ( string data, FanucSocketOptions options ) : void | ||
WriteOut_Prepare ( |
||
WriteOut_Sanitize ( string &data, FanucSocketOptions options ) : void |
Santizes data before sending it out. Needs some work
|
|
WriteOut_SendChunk ( |
||
WriteOut_ToLF ( string &data ) : void |
public Connect ( string hostName, int port ) : void | ||
hostName | string | The hostname of the device. |
port | int | The port number to connect to. |
return | void |
public FanucSocket ( int bufferSize, int baudRate ) : System | ||
bufferSize | int | |
baudRate | int | |
return | System |
public ReadIn ( FanucSocketOptions options ) : void | ||
options | FanucSocketOptions | |
return | void |
public WriteOut ( string data, FanucSocketOptions options ) : void | ||
data | string | |
options | FanucSocketOptions | |
return | void |