MC_Error

The errors of a function block.

Normal states

Name Value Meaning
mcNoError 0 The command succeeded.
mcBusy 1 The function or feature is busy.

API errors

Name Value Meaning
mcNullParameter 4096 The output is invalid because one of the parameter is a null pointer.
mcWrongParameter 4097 One of the parameters has been rejected.
mcSubsystemNotRunning 4098 The KINGSTAR Subsystem is not running.
mcLinkBusy 4099 The link with Windows is busy.
mcNoLicense 4100 No license for the feature.
mcWrongEnvironment 4101 The command can't be run in the current condition.
mcVariableUnavailable 4102 The variable is not mapped to PDO.
mcVariableSizeIncoherent 4103 The size given for the variable in the database does not make sense.
mcUserCancelled 4104 The command was cancelled by the user.
mcTimeout 4105 The command is sent but the system does't respond.
mcFeatureUnavailable 4106 The functionality is unavailable.
mcFunctionInUse 4107 The function is in use.
mcSlaveRejected 4108 The slave rejects the command.
mcNotDefined 4109 The object is not initialized.
mcWrongSubsystemState 4110

The current Subsystem state doesn't allow this command to be run.

mcWrongSlaveState 4111 The current slave state doesn't allow this command to be run.

Startup errors

Name Value Meaning
mcNoNicSelected 8192 No network interface card is selected.
mcNicNotFound 8193 No network interface card.
mcLinkDisconnected 8194 The network interface card is not connected to any hardware.
mcNoSlave 8195 No slave drives.
mcUnknownSlave 8196 The slave is unknown.
mcNoMemory 8197 The memory allocated for KINGSTAR is not enough.
mcNoFile 8198 IntervalZeroDevices database is not found.
mcIncorrectFormat 8199 The content of IntervalZeroDevices database doesn't use KINGSTAR's format.
mcWrongDeviceCount 8200 The number of devices on the bus does not match the number of devices scanned.
mcInitFailed 8201 An EtherCAT slave can't enter the Init state.
mcPreOpFailed 8202 An EtherCAT slave can't enter the Pre-Operational state.
mcSafeOpFailed 8203 An EtherCAT slave can't enter the Safe-Operational state.
mcOpFailed 8204 An EtherCAT slave can't enter the Operational state.
mcDcFailed 8205 An EtherCAT slave's distributed clock can't be configured.
mcMdpFailed 8206 Scanning the modules attached to a coupler on the network failed.
mcFailed 8207 The function failed.
mcFileVersionNotSupported 8208 The file was built with a different version of KINGSTAR and cannot be read.
mcThreadCreation 8209 Failed to create a thread.
mcCabling 8210 The cabling of EtherCAT hardware is incorrect.
mcPacketLost 8211 A critical packet was lost.
mcInvalidCycleTime 8212 The requested cycle time conflicts with the HAL period.
mcSystemOverload 8213 The system is overloaded.
mcWatchdog 8214 The watchdog timed out.
mcUnexpectedData 8215 An incoming packet contains unexpected data.
mcSlaveState 8216 A slave state is incorrect.
mcConfigurationMismatch 8217 The slaves on the bus don't match the configuration file.

Motion errors

Name Value Meaning
mcWrongControlMode 12288 The API function can't be used in this control mode.
mcCommandBufferFull 12289 The command buffer is full. The buffer can contain up to 512 commands.
mcInvalidHandle 12290 The specified handle doesn't correspond to any command in the Subsystem.
mcWrongAxisState 12291 The current axis state doesn't allow this command to be run.
mcNoSensorDefined 12292 The homing function is used without defining the home sensor.
mcFollowingError 12293 The maximum following error is reached. The motion is stopped and the axis is disabled.
mcMinimumLimit 12294 The maximum travel distance in the negative direction is reached. The motion is stopped.
mcMaximumLimit 12295 The maximum travel distance in the positive direction is reached. The motion is stopped.
mcCommandJump 12296 The new target position is too far from the previous target position. The motion is stopped and the axis is disabled.
mcWrongGroupState 12297 The current group state doesn't allow this command to be run.

mcUnstableTuning

12298

The tuning leads to an unstable state.

mcStaleTuning

12299

The tuning counts go over the limit before finding a suitable PID setting.

SDO errors

Name Value Meaning
mcSdoToggleBit 16384 Toggle bit not changed.
mcSdoTimeout 16385 SDO protocol timeout.
mcSdoCommandSpecifier 16386 Client/Server command specifier not valid or unknown.
mcSdoOutOfMemory 16387 Out of memory.
mcSdoUnsupportedAccess 16388 Unsupported access to an object.
mcSdoWriteOnly 16389 Attempt to read to a write-only object.
mcSdoReadOnly 16390 Attempt to write to a read-only object.
mcSdoSubindexReadOnly 16391 Subindex cannot be written. SI0 must be zero for write access.
mcSdoNoCompleteAccess 16392 SDO Complete Access not supported for objects of variable length such as enum object types.
mcSdoObjectTooLong 16393 Object length exceeds mailbox size.
mcSdoObjectInPdo 16394 Object mapped to RxPDO. SDO Download blocked.
mcSdoObjectNotExist 16395 The object doesn't exist in the object directory.
mcSdoNoPdoMapping 16396 The object can't be mapped into PDO.
mcSdoPdoLengthExceeded 16397 The number and length of the objects to be mapped would exceed the PDO length.
mcSdoParameterIncompatible 16398 General parameter incompatibility reason.
mcSdoInternalIncompatible 16399 General internal incompatibility in the device.
mcSdoHardwareError 16400 Access failed due to a hardware error.
mcSdoLengthIncorrect 16401 Data type doesn't match. Length of service parameter doesn't match.
mcSdoLengthTooHigh 16402 Data type doesn't match. Length of service parameter too high.
mcSdoLengthTooLow 16403 Data type doesn't match. Length of service parameter too low.
mcSdoSubindexNotExist 16404 Subindex doesn't exist.
mcSdoValueOutOfRange 16405 Value range of parameter exceeded (only for write access).
mcSdoValueTooHigh 16406 Value of parameter written too high.
mcSdoValueTooLow 16407 Value of parameter written too low.
mcSdoMaxBelowMin 16408 The maximum value is less than the minimum value.
mcSdoGeneralError 16409 General error.
mcSdoCannotTransfer 16410 Data can't be transferred or stored to the application.
mcSdoCannotTransferLocal 16411 Data can't be transferred or stored to the application because of local control.
mcSdoWrongState 16412 Data can't be transferred or stored to the application because of the present device state.
mcSdoDictionaryNotAvailable 16413 Object dictionary dynamic generation fails or no object dictionary is present.