gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches

◆ GMessage()

String GMessage ( ) throws GclibJavaException
inline

Provides access to unsolicited messages from the controller.

To use this function, -s MG must be used in the GOpen() address string to subscribe to messages. Unsolicited bytes must be flagged by the high-bit setting, CW 1. The driver will automatically set this when subscribing to messages. The user should not overwrite this setting.

Unsolicited messages are data generated by the controller that are not in response to a command, a data record, or an interrupt.

GMessage() will block until a message is received, or the function times out.

Messages are unframed byte streams. There is no guarantee that the user will get complete messages or single messages in a call to GMessage().

Returns
the message received.
Exceptions
GclibJavaExceptionIf an error is generated by gclib.

Definition at line 235 of file GclibJava.java.