Click here to show toolbars of the Web Online Help System: show toolbars |
MIL_ID SysId, | //in |
MIL_INT64 ProtocolType, | //in |
MIL_CONST_TEXT_PTR DeviceDescription, | //in |
MIL_INT64 InitFlag, | //in |
MIL_INT64 InitValue, | //in |
MIL_ID *ComIdPtr | //out |
This function allocates an Industrial Communication context on the specified system. An Industrial Communication context allows you to communicate with a robot controller, with a generic controller that uses the specified industrial protocol (PROFINET, Modbus, or EtherNet/IP), or with a slave Modbus automation device.
For a context allocated to communicate using the PROFINET, Modbus, or EtherNet/IP protocol, a connection with the controller (or device) is established upon allocation of the context. As such, the protocol service must have been enabled and configured in MILConfig prior to allocating the context.
For a context allocated to communicate with a robot controller, you can choose to set the InitFlag parameter to M_COM_NO_CONNECT so that you do not connect automatically upon allocation. If this option is chosen, you must use McomControl() with M_COM_ROBOT_CONNECT to manually establish the connection with the robot controller.
This function is only available if you have the MIL Industrial Communication package, or another relevant update installed.
Specifies the system on which to allocate the Industrial Communication context. This parameter should be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description |
MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
![]() ![]() |
Specifies the default Host system of the current MIL application. |
‡ | a | t | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
‡ | a | t |
Specifies the type of protocol to use.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description |
MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
![]() ![]() |
Specifies an ABB robot controller protocol. |
‡ | a | t | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a DENSO robot controller protocol. |
‡ | a | t | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an Epson robot controller protocol. |
‡ | a | t | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an Ethernet/IP protocol. |
‡ | a | t | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a Fanuc robot controller protocol. |
‡ | a | t | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a KUKA robot controller protocol. |
‡ | a | t | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a Modbus protocol. |
‡ | a | t | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a Profinet protocol. |
‡ | a | t | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a Staubli robot controller protocol. |
‡ | a | t |
Specifies the description of the device with which to communicate. This parameter must be set to the following:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description |
MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
![]() ![]() |
Specifies to communicate with the default device described in MILConfig that uses the specified protocol. |
‡ | a | t | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the IP address or name and port on the robot controller to use to communicate with it. INQ |
‡ | a | t |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Specifies how to initialize the Industrial Communication context.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description |
MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
![]() ![]() |
Specifies the default behavior. |
‡ | a | t | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies not to automatically connect to the robot controller. |
‡ | a | t |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |