Redler Technologies Inc.

MotionComHelperGetCAN_Com Method

A factory method that construct a CAN motion com

Definition

Namespace: Redler.Motion.Communication.MotionCom
Assembly: Redler.Motion.Communication (in Redler.Motion.Communication.dll) Version: 0.0.0.0
C#
public static MotionCom GetCAN_Com(
	MotionComHelperProtocols protocol,
	int bitrate,
	int deviceIndex,
	string converterName,
	byte driverAddress = 127,
	byte hostAddress = 0,
	int channelIndex = 0
)

Parameters

protocol  MotionComHelperProtocols
The desired protocol. Must be either J1939 or CANOpen
bitrate  Int32
The desired bitraet
deviceIndex  Int32
The device index
converterName  String
The converter name. Must contain either "Kvaser" or "CANaltst-II"
driverAddress  Byte  (Optional)
The unit node id. Default: 0x7f
hostAddress  Byte  (Optional)
The host id. Default: 0
channelIndex  Int32  (Optional)
The channel index. Used for "CANalyst-II" converter. Default: 0

Return Value

MotionCom
The constructed motion communication object

Exceptions

ArgumentExceptionThrown when the converter name is incorrect

See Also