Internal Defines
These are the pre-defined, common constant definitions declared for all projects.
View the Internal Defines
In the Project Explorer tree, double-click Internal Defines.
-
-
Do not modify these declarations.
This is to maintain consistency.
Example: Pre-defined Constants
This is an example of pre-defined constants that may be in the system.
-
-
The exact contents of the list depends on the version of the KAS-IDE.
//======================================= // Math constants //======================================= #define PI 3.141592653589793238 #define TWO_PI 6.283185307179586477 #define HALF_PI 1.570796326794896619 #define SQRT2 1.414213562373095049 #define SQRT3 1.732050807568877294 #define K_DEG2RAD 0.01745329251994329577 #define K_RAD2DEG 57.29577951308232088 #define PI_L LREAL#3.141592653589793238 #define TWO_PI_L LREAL#6.283185307179586477 #define HALF_PI_L LREAL#1.570796326794896619 #define SQRT2_L LREAL#1.414213562373095049 #define SQRT3_L LREAL#1.732050807568877294 #define K_DEG2RAD_L LREAL#0.01745329251994329577 #define K_RAD2DEG_L LREAL#57.29577951308232088 //=================================================== // Enumerated values for MLMotionStatus // (Motion Engine Status returned values) //=================================================== #define MLSTATUS_NOT_INITIALISED 0 // Motion not initialised (British English spelling) #define MLSTATUS_NOT_INITIALIZED 0 // Motion not initialized (American English spelling) #define MLSTATUS_RUNNING 1 // Motion is running #define MLSTATUS_STOPPED 2 // Motion is stopped #define MLSTATUS_ERROR 3 // Motion is in error





