MIL_ID ComId, | //in |
MIL_INT64 ControlType, | //in |
MIL_DOUBLE ControlValue | //in |
This function changes a setting of an Industrial Communication context.
This function is only available if you have the MIL Industrial Communication package, or another relevant update installed.
Specifies the Industrial Communication setting to control.
See the Parameter associations section for possible values that can be specified.
Specifies the setting's new value.
See the Parameter associations section for possible values that can be specified.
The tables below list possible values for the ControlType and ControlValue parameters.
The following ControlType and ControlValue parameter settings can be specified for any type of Industrial Communication context:
For any type of Industrial Communication
context
|
|||||||||||||||||||||||||||||||||||||||
ControlType | Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_COM_TIMEOUT |
Sets the maximum amount of time to wait for a receiving function (for example, McomRead() or McomWaitPositionRequest()) to finish its execution. INQ (summarize)Sets the maximum amount of time to wait for a receiving function (for example, McomRead() or McomWaitPositionRequest()) to finish its execution. INQ (more details...) |
‡ | a | t U28 |
w U53 |
||||||||||||||||||||||||||||||||||
Value |
Specifies the maximum amount of time to wait, in msecs. |
‡ | a | t U28 |
w U53 |
The following ControlType and ControlValue parameter settings can be specified for an Industrial Communication context used to communicate with a robot controller:
For an Industrial Communication context for use with
a robot controller
|
||||||||||||||||||||||||||||||||||||||||||||
|
Description | MIL system-specific tooltip (‡) |
||||||||||||||||||||||||||||||||||||||||||
ControlValue | ||||||||||||||||||||||||||||||||||||||||||||
M_COM_REMOTE_ADDRESS |
Sets the IP address of a robot controller. If an IP address was specified upon context allocation (using McomAlloc() with "IPOrName:Port"), setting this control type will overwrite that address. Changing the value of this control type will have no effect until you call McomControl() with M_COM_ROBOT_CONNECT. If the Industrial Communication context was previously connected to a robot controller, you must first disconnect it from the robot controller using McomControl() with M_COM_ROBOT_DISCONNECT. INQ (summarize)Sets the IP address of a robot controller. INQ (more details...) |
‡ | a | t U28 |
w U53 |
|||||||||||||||||||||||||||||||||||||||
Casts the address of the string identifying the remote address, from a MIL_CONST_TEXT_PTR to a MIL_DOUBLE. (summarize)Casts the address of the string identifying the remote address, from a MIL_CONST_TEXT_PTR to a MIL_DOUBLE. (more details...) |
‡ | ‡ | a | t U28 |
w U53 |
a | t U28 |
w U53 |
||||||||||||||||||||||||||||||||||||
Parameters | ||||||||||||||||||||||||||||||||||||||||||||
This parameter specifies the string whose address to cast. |
||||||||||||||||||||||||||||||||||||||||||||
|
‡ | a | t U28 |
w U53 |
||||||||||||||||||||||||||||||||||||||||
M_COM_REMOTE_PORT |
Sets the port on the robot controller to use to communicate with it. If a port number was specified upon context allocation (using McomAlloc() with "IPOrName:Port"), setting this control type will overwrite that port number. Changing the value of this control type will have no effect until you call McomControl() with M_COM_ROBOT_CONNECT. If the Industrial Communication context was previously connected to a robot controller, you must first disconnect it from the robot controller using McomControl() with M_COM_ROBOT_DISCONNECT. INQ (summarize)Sets the port on the robot controller to use to communicate with it. INQ (more details...) |
‡ | a | t U28 |
w U53 |
|||||||||||||||||||||||||||||||||||||||
Value > 0 |
Specifies the port on the robot controller. |
‡ | a | t U28 |
w U53 |
|||||||||||||||||||||||||||||||||||||||
M_COM_ROBOT_CONNECT |
Connects to the robot controller. (summarize)Connects to the robot controller. (more details...) |
‡ | a | t U28 |
w U53 |
|||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default behavior. |
‡ | a | t U28 |
w U53 |
|||||||||||||||||||||||||||||||||||||||
M_COM_ROBOT_CONNECT_RETRY |
Sets the maximum number of times to attempt to reconnect to the robot controller. INQ (summarize)Sets the maximum number of times to attempt to reconnect to the robot controller. INQ (more details...) |
‡ | a | t U28 |
w U53 |
|||||||||||||||||||||||||||||||||||||||
Value |
Specifies the maximum number of times to attempt to reconnect. |
‡ | a | t U28 |
w U53 |
|||||||||||||||||||||||||||||||||||||||
M_COM_ROBOT_CONNECT_RETRY_WAIT |
Sets the amount of time to wait between attempts to connect to the robot controller. INQ (summarize)Sets the amount of time to wait between attempts to connect to the robot controller. INQ (more details...) |
‡ | a | t U28 |
w U53 |
|||||||||||||||||||||||||||||||||||||||
Value |
Specifies the amount of time to wait, in msecs. |
‡ | a | t U28 |
w U53 |
|||||||||||||||||||||||||||||||||||||||
M_COM_ROBOT_DISCONNECT |
Disconnects from the robot controller. (summarize)Disconnects from the robot controller. (more details...) |
‡ | a | t U28 |
w U53 |
|||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default behavior. |
‡ | a | t U28 |
w U53 |
Parameters
ComId See ComId of the main function for a description. ControlType See ControlType of the main function for a description. ControlValue See ControlValue of the main function for a description. |
Parameters
ComId See ComId of the main function for a description. ControlType See ControlType of the main function for a description. ControlValue See ControlValue of the main function for a description. |
Header | Include mil.h. |
Library | Use mil.lib; milcom.lib. |
DLL | Requires mil.dll; milcom.dll. |