Skip to main content

McomControl

BoardSupported
Host SystemYes
V4L2No
Clarity UHDNo
Concord PoENo
GenTLNo
GevIQNo
GigE VisionNo
IndioYes
Iris GTXYes
Radient eV-CLNo
Rapixo CLNo
Rapixo CoFNo
Rapixo CXPNo
USB3 VisionNo

Control an Industrial Communication context setting.

Syntax

void McomControl(
AIL_ID ComId, //out
AIL_INT64 ControlType, //in
AIL_DOUBLE ControlValue //in
)

Description

This function changes a setting of an Industrial Communication context.

Note: This function is only available if you have the Aurora Imaging Library Industrial & Robot Communications package, or another relevant update installed.

Parameters

ComId (out, AIL_ID)

Specifies the identifier of the Industrial Communication context.

ControlType (in, AIL_INT64)

Specifies the Industrial Communication setting to control.

ControlValue (in, AIL_DOUBLE)

Specifies the setting's new value.

Parameter Associations

For any type of Industrial Communication context

The following ControlType and ControlValue parameter settings can be specified for any type of Industrial Communication context:


M_COM_TIMEOUT

Sets the maximum amount of time to wait for a receiving function (for example, McomRead or McomWaitPositionRequest) to finish its execution.

ValueDescription
ValueSpecifies the maximum amount of time to wait, in msecs.

For an Industrial Communication context for use with a robot controller

The following ControlType and ControlValue parameter settings can be specified for an Industrial Communication context used to communicate with a robot controller:


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.

ValueDescription
"n.n.n.n"Specifies the IP address of the robot controller. Express the address as a string in dotted decimal notation, where each dotted decimal value (n) is a number between 0 and 255.

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.

ValueDescription
Value > 0Specifies the port on the robot controller.

M_COM_ROBOT_CONNECT

Connects to the robot controller.

ValueDescription
M_DEFAULTSpecifies the default behavior.

M_COM_ROBOT_CONNECT_RETRY

Sets the maximum number of times to attempt to reconnect to the robot controller.

ValueDescription
ValueSpecifies the maximum number of times to attempt to reconnect.

M_COM_ROBOT_CONNECT_RETRY_WAIT

Sets the amount of time to wait between attempts to connect to the robot controller.

ValueDescription
ValueSpecifies the amount of time to wait, in msecs.

M_COM_ROBOT_DISCONNECT

Disconnects from the robot controller.

ValueDescription
M_DEFAULTSpecifies the default behavior.
Copyright © 2026 Zebra Technologies.