Copyright information banner added to header and updated to PI_GCS2_2013_04_09.tgz

This commit is contained in:
Ron Sluiter
2013-04-24 21:24:22 +00:00
parent f1e107c0de
commit c21d381b28
20 changed files with 501 additions and 133 deletions
+12 -5
View File
@@ -1,14 +1,21 @@
/*
* PIC702Controller
*
* Author: sra
*/
FILENAME... PIC702Controller.cpp
USAGE...
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
/*
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
Created: January 2011
*/
#include "PIC702Controller.h"
+15 -4
View File
@@ -1,8 +1,19 @@
/*
* PIC702Controller.h
*
* Author: sra
*/
FILENAME... PIC702Controller.h
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
*/
#ifndef PIC702CONTROLLER_H_
#define PIC702CONTROLLER_H_
+11 -7
View File
@@ -1,15 +1,19 @@
/*
* PIGCSPiezoController
*
* Created on: 15.12.2010
* Author: sra
*/
/*
FILENAME... PIGCSPiezoController
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
Created: 15.12.2010
*/
#include "PIE517Controller.h"
+11 -7
View File
@@ -1,15 +1,19 @@
/*
* PIGCScontroller.h
*
* Created on: 15.12.2010
* Author: sra
*/
/*
FILENAME... PIGCScontroller.h
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
Created: 15.12.2010
*/
#ifndef PIE517CONTROLLER_H_
+10 -6
View File
@@ -1,14 +1,18 @@
/*
* PIE755Controller
*
* Author: sra
*/
/*
FILENAME... PIE755Controller.cpp
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
*/
#include "PIE755Controller.h"
+10 -6
View File
@@ -1,14 +1,18 @@
/*
* PIE755Controller.h
*
* Author: sra
*/
/*
FILENAME... PIE755Controller.h
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
*/
#ifndef PIE755CONTROLLER_H_
+11 -7
View File
@@ -1,15 +1,19 @@
/*
* PIGCSController.cpp
*
* Created on: 15.12.2010
* Author: sra
*/
/*
FILENAME... PIGCSController.cpp
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
Created: 15.12.2010
*/
#include <asynOctetSyncIO.h>
+10 -6
View File
@@ -1,15 +1,19 @@
/*
* PIGCScontroller.h
*
* Created on: 15.12.2010
* Author: sra
*/
FILENAME... PIGCScontroller.h
/*
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
Created: 15.12.2010
*/
#ifndef PIGCSCONTROLLER_H_
+11 -7
View File
@@ -1,15 +1,19 @@
/*
* PIGCSMotorController.cpp
*
* Created on: 15.12.2010
* Author: sra
*/
/*
FILENAME... PIGCSMotorController.cpp
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
Created: 15.12.2010
*/
#include "PIGCSMotorController.h"
+11 -7
View File
@@ -1,15 +1,19 @@
/*
* PIGCScontroller.h
*
* Created on: 15.12.2010
* Author: sra
*/
/*
FILENAME... PIGCSMotorController.h
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
Created: 15.12.2010
*/
#ifndef PIGCSMOTORCONTROLLER_H_
+11 -7
View File
@@ -1,15 +1,19 @@
/*
* PIGCSPiezoController
*
* Created on: 15.12.2010
* Author: sra
*/
/*
FILENAME... PIGCSPiezoController.cpp
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
Created: 15.12.2010
*/
#include "PIGCSPiezoController.h"
+11 -7
View File
@@ -1,15 +1,19 @@
/*
* PIGCScontroller.h
*
* Created on: 15.12.2010
* Author: sra
*/
/*
FILENAME... PIGCScontroller.h
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
Created: 15.12.2010
*/
#ifndef PIGCSPIEZOCONTROLLER_H_
+10 -6
View File
@@ -1,14 +1,18 @@
/*
* PIE755Controller
*
* Author: sra
*/
/*
FILENAME... PIHexapodController.cpp
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
*/
#include "PIHexapodController.h"
+10 -6
View File
@@ -1,14 +1,18 @@
/*
* PIE755Controller.h
*
* Author: sra
*/
/*
FILENAME... PIHexapodController.h
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
*/
#ifndef PIHEXAPODCONTROLLER_H_
+11 -7
View File
@@ -1,17 +1,21 @@
/*
FILENAME... PIasynController.cpp
USAGE... Simulated Motor Support.
FILENAME... PIasynController.cpp
USAGE...
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Based on drvMotorSim.c
Mark Rivers
December 13, 2009
Original Author: Steffen Rau
Based on drvMotorSim.c, Mark Rivers, December 13, 2009
*/
@@ -26,12 +30,12 @@ December 13, 2009
#include <epicsMutex.h>
#include <ellLib.h>
#include <iocsh.h>
#include <epicsExport.h>
#include <motor_interface.h>
#include "PIasynAxis.h"
#include "PIasynController.h"
#include "PIGCSController.h"
#include <epicsExport.h>
//#undef asynPrint
//#define asynPrint(user,reason,format...) 0
+12 -9
View File
@@ -1,19 +1,22 @@
/*
FILENAME... PIasynController.cpp
USAGE... PI GCS Motor Support.
FILENAME... PIasynAxis.h
USAGE... PI GCS Motor Support.
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Based on drvMotorSim.c
Original Author: Steffen Rau
Created: January 2011
Mark Rivers
December 13, 2009
Steffen Rau,
January 2011
Based on drvMotorSim.c, Mark Rivers, December 13, 2009
*/
+14 -7
View File
@@ -1,16 +1,22 @@
/*
FILENAME... PIasynController.cpp
USAGE... PI GCS2 Motor Support.
FILENAME... PIasynController.cpp
USAGE... PI GCS2 Motor Support.
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
Created: January 2011
Based on drvMotorSim.c
from Mark Rivers, December 13, 2009
Steffen Rau, Physik Instrumente (PI) GmbH & Co KG
Based on drvMotorSim.c, Mark Rivers, December 13, 2009
*/
@@ -27,6 +33,7 @@ Steffen Rau, Physik Instrumente (PI) GmbH & Co KG
#include <epicsMutex.h>
#include <ellLib.h>
#include <iocsh.h>
#include <epicsExport.h>
#include <asynOctetSyncIO.h>
#include <motor_interface.h>
#include <ctype.h>
@@ -34,7 +41,6 @@ Steffen Rau, Physik Instrumente (PI) GmbH & Co KG
#include "PIasynController.h"
#include "PIGCSController.h"
#include "PIasynAxis.h"
#include <epicsExport.h>
//#undef asynPrint
@@ -55,6 +61,7 @@ PIasynController::PIasynController(const char *portName, const char* asynPort, i
1, // autoconnect
priority, stackSize)
, m_pGCSController( NULL )
, movesDeferred( 0 )
{
createParam(PI_SUP_POSITION_String, asynParamFloat64, &PI_SUP_POSITION);
createParam(PI_SUP_TARGET_String, asynParamFloat64, &PI_SUP_TARGET);
+7 -2
View File
@@ -1,6 +1,11 @@
/*
FILENAME... PIasynController.cpp
USAGE... Simulated Motor Support.
FILENAME... PIasynController.cpp
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
+86 -11
View File
@@ -1,14 +1,20 @@
// PIControllerErrors.h
//
// This file defines symbols for each error code used in C/C++ programs.
//
// This file is automagically generated from the central error code list.
// DO NOT ADD ERROR CODES IN THIS FILE! Use the error list and the generation tool instead!
//
// after generation open file in VS and create the constants with numbers.
// This can be done by performing 2 search/replace actions with regulyr expression activetad:
// search for "\#define:b{:i}:b*{:z}L" replace with "#define \1__\2 \2L\n#define \1 \2L"
// search for "\#define:b{:i}:b*-{:z}L" replace with "#define \1__MINUS\2 -\2L\n#define \1 -\2L"
/*
FILENAME... picontrollererrors.h
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau, January 2011
*/
#ifndef __PI_CONTROLLER_ERROS_H__
#define __PI_CONTROLLER_ERROS_H__
@@ -715,6 +721,51 @@
#define PI_CNTR_SERVO_LOOP_UNSTABLE__506 506L
#define PI_CNTR_SERVO_LOOP_UNSTABLE 506L /**< \ingroup err
Servo loop was unstable due to wrong parameter setting and switched off to avoid damage. */
#define PI_CNTR_NODE_DOES_NOT_EXIST__530 530L
#define PI_CNTR_NODE_DOES_NOT_EXIST 530L /**< \ingroup err
A command refers to a node that does not exist */
#define PI_CNTR_PARENT_NODE_DOES_NOT_EXIST__531 531L
#define PI_CNTR_PARENT_NODE_DOES_NOT_EXIST 531L /**< \ingroup err
A command refers to a node that has no parent node */
#define PI_CNTR_NODE_IN_USE__532 532L
#define PI_CNTR_NODE_IN_USE 532L /**< \ingroup err
Attempt to delete a node that is in use */
#define PI_CNTR_NODE_DEFINITION_IS_CYCLIC__533 533L
#define PI_CNTR_NODE_DEFINITION_IS_CYCLIC 533L /**< \ingroup err
Definition of a node is cyclic */
#define PI_CNTR_NODE_CHAIN_INVALID__534 534L
#define PI_CNTR_NODE_CHAIN_INVALID 534L /**< \ingroup err
The node chain does not end in the \"0\" node */
#define PI_CNTR_NODE_DEFINITION_NOT_CONSISTENT__535 535L
#define PI_CNTR_NODE_DEFINITION_NOT_CONSISTENT 535L /**< \ingroup err
The definition of a coordinate transformation is erroneous */
#define PI_CNTR_HEXAPOD_IN_MOTION__536 536L
#define PI_CNTR_HEXAPOD_IN_MOTION 536L /**< \ingroup err
Transformation cannot be defined as long as Hexapod is in motion */
#define PI_CNTR_TRANSFORMATION_TYPE_NOT_SUPPORTED__537 537L
#define PI_CNTR_TRANSFORMATION_TYPE_NOT_SUPPORTED 537L /**< \ingroup err
Transformation node cannot be activated */
#define PI_CNTR_NODE_TYPE_DIFFERS__538 538L
#define PI_CNTR_NODE_TYPE_DIFFERS 538L /**< \ingroup err
A node can only be replaced by a node of the same type */
#define PI_CNTR_NODE_PARENT_IDENTICAL_TO_CHILD__539 539L
#define PI_CNTR_NODE_PARENT_IDENTICAL_TO_CHILD 539L /**< \ingroup err
A node cannot be linked to itself */
#define PI_CNTR_NODE_DEFINITION_INCONSISTENT__540 540L
#define PI_CNTR_NODE_DEFINITION_INCONSISTENT 540L /**< \ingroup err
Node definition is erroneous or not complete (replace or delete it) */
#define PI_CNTR_ZERO_NODE_CANNOT_BE_CHANGED_OR_REPLACED__541 541L
#define PI_CNTR_ZERO_NODE_CANNOT_BE_CHANGED_OR_REPLACED 541L /**< \ingroup err
0 is the root node and cannot be modified */
#define PI_CNTR_NODES_NOT_IN_SAME_CHAIN__542 542L
#define PI_CNTR_NODES_NOT_IN_SAME_CHAIN 542L /**< \ingroup err
The nodes are not part of the same chain */
#define PI_CNTR_NODE_MEMORY_FULL__543 543L
#define PI_CNTR_NODE_MEMORY_FULL 543L /**< \ingroup err
Unused nodes must be deleted before new nodes can be stored */
#define PI_CNTR_PIVOT_POINT_FEATURE_NOT_SUPPORTED__544 544L
#define PI_CNTR_PIVOT_POINT_FEATURE_NOT_SUPPORTED 544L /**< \ingroup err
With some transformations pivot point usage is not supported */
#define PI_CNTR_UNKNOWN_ERROR__555 555L
#define PI_CNTR_UNKNOWN_ERROR 555L /**< \ingroup err
BasMac: unknown controller error */
@@ -733,6 +784,9 @@
#define PI_CNTR_INPUT_OUT_OF_RANGE__606 606L
#define PI_CNTR_INPUT_OUT_OF_RANGE 606L /**< \ingroup err
Maximum value of input signal has been exceeded */
#define PI_CNTR_NO_INTEGER__607 607L
#define PI_CNTR_NO_INTEGER 607L /**< \ingroup err
Value is not integer */
#define PI_CNTR_TOO_MANY_NESTED_MACROS__1000 1000L
#define PI_CNTR_TOO_MANY_NESTED_MACROS 1000L /**< \ingroup err
Too many nested macros */
@@ -793,6 +847,9 @@
#define PI_CNTR_PROFILE_UNKNOWN_CLUSTER_IDENTIFIER__1073 1073L
#define PI_CNTR_PROFILE_UNKNOWN_CLUSTER_IDENTIFIER 1073L /**< \ingroup err
Unknown cluster identifier */
#define PI_CNTR_TOO_MANY_TCP_CONNECTIONS_OPEN__1090 1090L
#define PI_CNTR_TOO_MANY_TCP_CONNECTIONS_OPEN 1090L /**< \ingroup err
There are too many open tcpip connections */
#define PI_CNTR_ALREADY_HAS_SERIAL_NUMBER__2000 2000L
#define PI_CNTR_ALREADY_HAS_SERIAL_NUMBER 2000L /**< \ingroup err
Controller already has a serial number */
@@ -865,6 +922,24 @@
#define PI_CNTR_AXIS_NOT_CONFIGURED__5200 5200L
#define PI_CNTR_AXIS_NOT_CONFIGURED 5200L /**< \ingroup err
Axis must be configured for this action */
#define PI_CNTR_SENSOR_ABS_INVALID_VALUE__6000 6000L
#define PI_CNTR_SENSOR_ABS_INVALID_VALUE 6000L /**< \ingroup err
Invalid preset value of absolute sensor */
#define PI_CNTR_SENSOR_ABS_WRITE_ERROR__6001 6001L
#define PI_CNTR_SENSOR_ABS_WRITE_ERROR 6001L /**< \ingroup err
Error while writing to sensor */
#define PI_CNTR_SENSOR_ABS_READ_ERROR__6002 6002L
#define PI_CNTR_SENSOR_ABS_READ_ERROR 6002L /**< \ingroup err
Error while reading from sensor */
#define PI_CNTR_SENSOR_ABS_CRC_ERROR__6003 6003L
#define PI_CNTR_SENSOR_ABS_CRC_ERROR 6003L /**< \ingroup err
Checksum error of absolute sensor */
#define PI_CNTR_SENSOR_ABS_ERROR__6004 6004L
#define PI_CNTR_SENSOR_ABS_ERROR 6004L /**< \ingroup err
General error of absolute sensor */
#define PI_CNTR_SENSOR_ABS_OVERFLOW__6005 6005L
#define PI_CNTR_SENSOR_ABS_OVERFLOW 6005L /**< \ingroup err
Overflow of absolute sensor position */
//
// End of Controller Errors
//////////////////////////////////////////////////
+217 -9
View File
@@ -1,17 +1,18 @@
/*
* TranslateErrors.c
*
*
* This file is automagically generated from the central error code list.
* DO NOT ADD ERROR CODES IN THIS FILE! Use the error list and the generation tool instead!
*
*/
/*
FILENAME... translateerror.c
*************************************************************************
* Copyright (c) 2011-2013 Physik Instrumente (PI) GmbH & Co. KG
* This file is distributed subject to the EPICS Open License Agreement
* found in the file LICENSE that is included with this distribution.
*************************************************************************
Version: $Revision$
Modified By: $Author$
Last Modified: $Date$
HeadURL: $URL$
Original Author: Steffen Rau
*/
#include <stdio.h>
@@ -2120,6 +2121,141 @@ BOOL TranslatePIError(const int error, char* szBuffer, const int maxlen)
}
break;
}
case(PI_CNTR_NODE_DOES_NOT_EXIST): /* 530 */
{
if (strlen("A command refers to a node that does not exist")<maxlen)
{
sprintf(szBuffer, "A command refers to a node that does not exist");
return TRUE;
}
break;
}
case(PI_CNTR_PARENT_NODE_DOES_NOT_EXIST): /* 531 */
{
if (strlen("A command refers to a node that has no parent node")<maxlen)
{
sprintf(szBuffer, "A command refers to a node that has no parent node");
return TRUE;
}
break;
}
case(PI_CNTR_NODE_IN_USE): /* 532 */
{
if (strlen("Attempt to delete a node that is in use")<maxlen)
{
sprintf(szBuffer, "Attempt to delete a node that is in use");
return TRUE;
}
break;
}
case(PI_CNTR_NODE_DEFINITION_IS_CYCLIC): /* 533 */
{
if (strlen("Definition of a node is cyclic")<maxlen)
{
sprintf(szBuffer, "Definition of a node is cyclic");
return TRUE;
}
break;
}
case(PI_CNTR_NODE_CHAIN_INVALID): /* 534 */
{
if (strlen("The node chain does not end in the \"0\" node")<maxlen)
{
sprintf(szBuffer, "The node chain does not end in the \"0\" node");
return TRUE;
}
break;
}
case(PI_CNTR_NODE_DEFINITION_NOT_CONSISTENT): /* 535 */
{
if (strlen("The definition of a coordinate transformation is erroneous")<maxlen)
{
sprintf(szBuffer, "The definition of a coordinate transformation is erroneous");
return TRUE;
}
break;
}
case(PI_CNTR_HEXAPOD_IN_MOTION): /* 536 */
{
if (strlen("Transformation cannot be defined as long as Hexapod is in motion")<maxlen)
{
sprintf(szBuffer, "Transformation cannot be defined as long as Hexapod is in motion");
return TRUE;
}
break;
}
case(PI_CNTR_TRANSFORMATION_TYPE_NOT_SUPPORTED): /* 537 */
{
if (strlen("Transformation node cannot be activated")<maxlen)
{
sprintf(szBuffer, "Transformation node cannot be activated");
return TRUE;
}
break;
}
case(PI_CNTR_NODE_TYPE_DIFFERS): /* 538 */
{
if (strlen("A node can only be replaced by a node of the same type")<maxlen)
{
sprintf(szBuffer, "A node can only be replaced by a node of the same type");
return TRUE;
}
break;
}
case(PI_CNTR_NODE_PARENT_IDENTICAL_TO_CHILD): /* 539 */
{
if (strlen("A node cannot be linked to itself")<maxlen)
{
sprintf(szBuffer, "A node cannot be linked to itself");
return TRUE;
}
break;
}
case(PI_CNTR_NODE_DEFINITION_INCONSISTENT): /* 540 */
{
if (strlen("Node definition is erroneous or not complete (replace or delete it)")<maxlen)
{
sprintf(szBuffer, "Node definition is erroneous or not complete (replace or delete it)");
return TRUE;
}
break;
}
case(PI_CNTR_ZERO_NODE_CANNOT_BE_CHANGED_OR_REPLACED): /* 541 */
{
if (strlen("0 is the root node and cannot be modified")<maxlen)
{
sprintf(szBuffer, "0 is the root node and cannot be modified");
return TRUE;
}
break;
}
case(PI_CNTR_NODES_NOT_IN_SAME_CHAIN): /* 542 */
{
if (strlen("The nodes are not part of the same chain")<maxlen)
{
sprintf(szBuffer, "The nodes are not part of the same chain");
return TRUE;
}
break;
}
case(PI_CNTR_NODE_MEMORY_FULL): /* 543 */
{
if (strlen("Unused nodes must be deleted before new nodes can be stored")<maxlen)
{
sprintf(szBuffer, "Unused nodes must be deleted before new nodes can be stored");
return TRUE;
}
break;
}
case(PI_CNTR_PIVOT_POINT_FEATURE_NOT_SUPPORTED): /* 544 */
{
if (strlen("With some transformations pivot point usage is not supported")<maxlen)
{
sprintf(szBuffer, "With some transformations pivot point usage is not supported");
return TRUE;
}
break;
}
case(PI_CNTR_UNKNOWN_ERROR): /* 555 */
{
if (strlen("BasMac: unknown controller error")<maxlen)
@@ -2174,6 +2310,15 @@ BOOL TranslatePIError(const int error, char* szBuffer, const int maxlen)
}
break;
}
case(PI_CNTR_NO_INTEGER): /* 607 */
{
if (strlen("Value is not integer")<maxlen)
{
sprintf(szBuffer, "Value is not integer");
return TRUE;
}
break;
}
case(PI_CNTR_TOO_MANY_NESTED_MACROS): /* 1000 */
{
if (strlen("Too many nested macros")<maxlen)
@@ -2354,6 +2499,15 @@ BOOL TranslatePIError(const int error, char* szBuffer, const int maxlen)
}
break;
}
case(PI_CNTR_TOO_MANY_TCP_CONNECTIONS_OPEN): /* 1090 */
{
if (strlen("There are too many open tcpip connections")<maxlen)
{
sprintf(szBuffer, "There are too many open tcpip connections");
return TRUE;
}
break;
}
case(PI_CNTR_ALREADY_HAS_SERIAL_NUMBER): /* 2000 */
{
if (strlen("Controller already has a serial number")<maxlen)
@@ -2570,6 +2724,60 @@ BOOL TranslatePIError(const int error, char* szBuffer, const int maxlen)
}
break;
}
case(PI_CNTR_SENSOR_ABS_INVALID_VALUE): /* 6000 */
{
if (strlen("Invalid preset value of absolute sensor")<maxlen)
{
sprintf(szBuffer, "Invalid preset value of absolute sensor");
return TRUE;
}
break;
}
case(PI_CNTR_SENSOR_ABS_WRITE_ERROR): /* 6001 */
{
if (strlen("Error while writing to sensor")<maxlen)
{
sprintf(szBuffer, "Error while writing to sensor");
return TRUE;
}
break;
}
case(PI_CNTR_SENSOR_ABS_READ_ERROR): /* 6002 */
{
if (strlen("Error while reading from sensor")<maxlen)
{
sprintf(szBuffer, "Error while reading from sensor");
return TRUE;
}
break;
}
case(PI_CNTR_SENSOR_ABS_CRC_ERROR): /* 6003 */
{
if (strlen("Checksum error of absolute sensor")<maxlen)
{
sprintf(szBuffer, "Checksum error of absolute sensor");
return TRUE;
}
break;
}
case(PI_CNTR_SENSOR_ABS_ERROR): /* 6004 */
{
if (strlen("General error of absolute sensor")<maxlen)
{
sprintf(szBuffer, "General error of absolute sensor");
return TRUE;
}
break;
}
case(PI_CNTR_SENSOR_ABS_OVERFLOW): /* 6005 */
{
if (strlen("Overflow of absolute sensor position")<maxlen)
{
sprintf(szBuffer, "Overflow of absolute sensor position");
return TRUE;
}
break;
}
/*
** End of Controller Errors
*************************************************/