Package com.galil
Class Gclib
java.lang.Object
com.galil.GclibConfig
com.galil.Gclib
- All Implemented Interfaces:
org.bytedeco.javacpp.tools.InfoMapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumReturned byController::connection_type().static classManages a connection to a controller.static classstatic classstatic classstatic classAn unsolicited interrupt.static classstatic classstatic classstatic classNested classes/interfaces inherited from class com.galil.GclibConfig
GclibConfig.Bitset, GclibConfig.MessageCallback -
Field Summary
Fields inherited from class com.galil.GclibConfig
ESTABLISHING_TCP, ESTABLISHING_UDP, GCLIB_ALL_AXES, GCLIB_ALL_AXES_MOTION_COMPLETE, GCLIB_ALL_DIGITAL_INPUTS, GCLIB_ALL_INTERRUPTS, GCLIB_AXIS_A, GCLIB_AXIS_B, GCLIB_AXIS_C, GCLIB_AXIS_D, GCLIB_AXIS_E, GCLIB_AXIS_F, GCLIB_AXIS_G, GCLIB_AXIS_H, GCLIB_COMMAND_DONE, GCLIB_CONTOUR, GCLIB_DIGITAL_INPUT_1, GCLIB_DIGITAL_INPUT_2, GCLIB_DIGITAL_INPUT_3, GCLIB_DIGITAL_INPUT_4, GCLIB_DIGITAL_INPUT_5, GCLIB_DIGITAL_INPUT_6, GCLIB_DIGITAL_INPUT_7, GCLIB_DIGITAL_INPUT_8, GCLIB_DIGITAL_INPUT_LOW, GCLIB_ETHERNET, GCLIB_EXCESS_POSITION_ERROR, GCLIB_FIND_EDGE, GCLIB_FIND_INDEX, GCLIB_HOME, GCLIB_LIMIT_SWITCH, GCLIB_LINEAR_MOVE, GCLIB_MOTION_COMPLETE, GCLIB_NO_AXES, GCLIB_NO_DIGITAL_INPUTS, GCLIB_NO_INTERRUPTS, GCLIB_NO_MOTION, GCLIB_PCI, GCLIB_POSITION_ABSOLUTE, GCLIB_POSITION_RELATIVE, GCLIB_PROGRAM_STOPPED, GCLIB_SERIAL, GCLIB_USER_INTERRUPT, GCLIB_VECTOR_MOVE, GCLIB_WATCHDOG_TIMER, HANDLE_FREE, TCP_MASTER, TCP_SLAVE, UDP_MASTER, UDP_SLAVE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String\brief Show address, model, and serial of detected controllers, where available.static voidstatic voidforceGcaps(boolean on) \brief Force future library calls to use either gcaps or direct connections.static StringInstalled gcaps version, as reported by current gcaps server.static long\privatestatic String\brief Show MAC address, model, and serial of all controllers requesting IP addresses.static StringList available gcaps servers separated by newline.static StringReturn name of local gcaps server, or an empty string if unpublished.static Stringserver()Current gcaps server, or an empty string if connected to the local gcaps server.static voidstatic voidsetPublished(String name) Publish local gcaps server asname, or unpublish ifnameis empty.static voidstatic voidUse a gcaps server as reported bylist_servers()for all future gcaps communications.static Stringversion()Installed gclib version.Methods inherited from class com.galil.GclibConfig
map
-
Constructor Details
-
Gclib
public Gclib()
-
-
Method Details
-
HUGE_BUFFER
@Namespace("gclib::internal") @MemberGetter @Cast("const size_t") public static long HUGE_BUFFER()\private -
version
Installed gclib version. -
addresses
\brief Show address, model, and serial of detected controllers, where available. Detected controllers are newline-separated. Each line is comma-separated. Available information by connection type: - Ethernet connections show address, model, and serial. - USB connections show address and model. - Serial and PCI connections show address only. Example output:192.168.0.40, DMC4040 Rev 1.3i, 10601 COM5, DMC-41x3 GALILPCI0- Returns:
std::stringNewline-separated info on detected controllers.
-
ipRequests
\brief Show MAC address, model, and serial of all controllers requesting IP addresses. Detected controllers are newline-separated. Useassign_ip()to assign an IP address to controllers returned by this method. Example output:00:50:4c:20:29:69, DMC4000, 10601 00:50:4c:58:12:34, DMC2105, 4660 -
assignIp
-
forceGcaps
@Namespace("gclib") @Name("force_gcaps") public static void forceGcaps(@Cast("bool") boolean on) \brief Force future library calls to use either gcaps or direct connections. The default behavior of gclib is to prefer gcaps, but fall back to direct operations when gcaps is not running. This method allows disabling the default behavior process-wide, but cannot be undone.- Parameters:
on- Iftrue, all future gclib calls will fail if gcaps not found, rather than falling back to direct operations. Iffalse, gcaps will not be used for any future gclib calls.
-
gcapsVersion
Installed gcaps version, as reported by current gcaps server. -
listServers
List available gcaps servers separated by newline. -
server
Current gcaps server, or an empty string if connected to the local gcaps server. -
setServer
Use a gcaps server as reported bylist_servers()for all future gcaps communications. Pass an empty string to use the local gcaps server. -
setServer
@Namespace("gclib") @Name("set_server") public static void setServer() -
published
Return name of local gcaps server, or an empty string if unpublished. -
setPublished
Publish local gcaps server asname, or unpublish ifnameis empty. -
setPublished
@Namespace("gclib") @Name("set_published") public static void setPublished()
-