MotionComHelperGetCAN_Com Method
A factory method that construct a CAN motion com
Namespace: Redler.Motion.Communication.MotionComAssembly: Redler.Motion.Communication (in Redler.Motion.Communication.dll) Version: 0.0.0.0
public static MotionCom GetCAN_Com(
MotionComHelperProtocols protocol,
int bitrate,
int deviceIndex,
string converterName,
byte driverAddress = 127,
byte hostAddress = 0,
int channelIndex = 0
)
- 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
MotionComThe constructed motion communication object