RMCLink COM Component

RMCLinkError Enumeration

These constants represent the values of the COM exceptions that can be thrown by the RMCLink COM component.

How errors are communicated back to the calling program varies by language. Visual Basic 5.0/6.0, VBA, and VBScript all invoke the current error handler which can be set up using the On Error statement and Err object. JScript throws a generic exception that can be handled using a try-catch block. LabVIEW returns the error in the error out node. See the Error Handling topic for details on handling errors.

NOTE: VBScript, JScript, and PHP do not support using enumerated constants, and therefore you will have to manually type in the numbers instead of the constant names for those languages.

NOTE: For JScript, the Number property of the Error object in the caught exception will not match the values below, but will have the value 2,146,828,288 subtracted from it. That is, instead of the value 5 for an out of memory condition, the Error.Number will be -2,146,828,283.

NOTE: For LabVIEW, the error out will not match the values below, but will have the value 2,146,828,288 subtracted from it. That is, instead of the value 5 for an out of memory condition, the error out will be -2,146,828,283.

 

Member Name

Description

rmcEOutOfMemory = 5

Out of memory.

rmcEInvalidArg = 7

Invalid argument or procedure call.

rmcEAlreadyLocked = 1001

Internal RMCLink locking error.

rmcEDisconnecting = 1002

Link is being disconnected by another thread.

rmcEBadType = 1003

Invalid type passed in for write data.

rmcEBadLength = 1004

Array length of write data does not match count parameter.

rmcEDisconnected = 1005

The link has not been connected.

rmcEAlreadyConnected = 1006

The link was already connected.

rmcEAlreadyDisconnected = 1007

The link was already disconnected.

rmcESocketInternal = 1008

Internal socket error.

rmcESocketConnectionFailure = 1009

Unable to connect over TCP/IP to requested device.

rmcECancelled = 1010

Operation cancelled by call to CancelRequest.

rmcETimeout = 1011

Operation timed out.

rmcESocketHostNameNotIPv4 = 1012

Host name did not resolve to an IPv4 address.

rmcESocketHostNameNotResolved = 1013

Host name did not resolve.

rmcESocketGracefullyClosed = 1014

TCP/IP connection closed by remote device.

rmcESocketReadError = 1015

Connection error while waiting for response from the remote device.

rmcESocketInvReadLen = 1016

Connection error while waiting for response from the remote device.

rmcESocketWriteError = 1017

Connection error while sending request to the remote device.

rmcESocketInvWriteLen = 1018

Connection error while sending request to the remote device.

rmcEPortAccessDenied = 1019

Access to serial port denied. Verify not in use by another application.

rmcEPortNotFound = 1020

Serial port not found.

rmcESerialIOE = 1021

Serial IOE error.

rmcESerialFramingError = 1022

Serial framing error.

rmcESerialBreak = 1023

Serial Break error.

rmcESerialOverrun = 1024

Serial overrun.

rmcESerialRxOverrun = 1025

Serial receive overrun.

rmcESerialParityError = 1026

Serial parity error.

rmcESerialTxFull = 1027

Serial transmitter full.

rmcEConnectionBroken = 1028

Connection broken.

rmcEPartialWrite = 1029

Unable to send full request to the remote device.

rmcEReadOnly = 1030

Attempt to write to read-only registers.

rmcEPrivateRange = 1031

Attempt to read/write from private registers.

rmcEBadAddress = 1032

Attempt to read beyond the end of a file.

rmcESocketHostnameInvalid = 1033

Invalid host name format.

rmcEWrongController = 1034

Remote device is the wrong controller type.

rmcENotSupported = 1035

Operation not supported on this controller type.

rmcEBuildImgTimeout = 1036

Timeout waiting for image to be built.

rmcEBuildImgError = 1037

Controller unable to build image.

rmcEBuildImgState = 1038

Unexpected state encountered while building image.

rmcEImageUploadFailed = 1039

Unable to upload completed image.

rmcEImageResetFailed = 1040

Unable to reset Image Area for download.

rmcEImageDownloadFailed = 1041

Unable to download controller image.

rmcEImageInvalid = 1042

Timeout applying downloaded image.

rmcEImageApplyTimeout = 1043

Image format is invalid.

rmcEImageApplyState = 1044

Unexpected state encountered while applying image.

rmcEImageApplyResetReq = 1045

Image not applied because restart required.

rmcEImageApplyFlashError = 1046

Error writing to flash memory while applying image.

rmcEImageApplyRunMode = 1047

Image cannot be applied without restart while in RUN mode.

rmcEImageApplyHWMismatch = 1048

Image not applied because of hardware mismatch.

rmcEUSBNoDrivers = 1049

Unable to access RMC USB driver. Please ensure that the driver has been properly installed.

rmcEUSBDeviceNotFound = 1050

The controller with the specified DeviceId was not found on any USB port.

rmcEUSBInternal1 = 1051

Internal USB driver error.

rmcEUSBInternal2 = 1052

Internal USB driver error.

rmcEUSBOperationAborted = 1053

Unsuccessful transfer of data between the PC and the controller. Ensure that the physical connection between the PC and controller is still intact.

rmcEUSBDisconnected = 1054

The controller appears to have been disconnected from the USB port. Ensure that the physical connection between the PC and controller is still intact.

rmcEUSBUnknownFailure = 1055

The requested RMC is plugged into a USB port, but cannot be accessed. Ensure that no other applications are using this RMC. If the problem persists, try unplugging and re-plugging the USB cable to this controller and retry.

rmcEUSBInUse = 1056

The requested RMC is plugged into a USB port, but cannot be accessed. Ensure that no other applications are using this RMC. If the problem persists, try unplugging and re-plugging the USB cable to this controller and retry.

rmcEUSBNoSetupAPI = 1057

Unable to access operating system functionality for connecting to USB devices.

rmcEFileNotFound = 1058

Unable the find the specified file.

rmcEPathNotFound = 1059

Unable the find the specified file path.

rmcEAccessDenied = 1060

Access denied to the file or path.

rmcEDriveNotReady = 1061

Removable drive not ready.

rmcEBuildImgNotAllowed = 1062

Controller unable to build upload image because copy protection is enabled.

rmcEUnknown = 1999

Unknown control error.

 

See Also

RMCLink COM Component | Enumeration Types | Error Handling


Send comments on this topic.

Copyright (c) 2024 Delta Computer Systems, Inc. dba Delta Motion