Topics | |
| Panel Management | |
| Heidenhain functions | |
| Drill information management | |
Functions | |
| PROCEDURE | CheckOrigin () |
| Check if the origin name are coherent. | |
| PROCEDURE | ComputeDepthCycle (real_Depth:REAL, VAR real_Inc, real_End, real_Raison:REAL, VAR int_Nb:INTEGER) |
| Compute the declining for a drilling operation. | |
| PROCEDURE | ConcatStrVal (VAR str_Ret:TC255, str_Code:TC255, real_Val:REAL, int_Precision :INTEGER) |
| Add a real value after a string. | |
| PROCEDURE | ConcatStrValFormat (VAR str_Ret:TC255, str_Code:TC255, real_Val:REAL, int_FormatReal :INTEGER) |
| Add a real value after a string. The real value will be converted to be output in correct unit. | |
| PROCEDURE | ConcatVal (VAR str_Ret:TC255, real_Val:REAL, int_Precision :INTEGER) |
| Add a real value after a string in the same string. | |
| PROCEDURE | ConcatValFormat (VAR str_Ret:TC255, real_Val:REAL, int_FormatReal :INTEGER) |
| Add a real value after a string in the same string. The real value will be converted to be output in correct unit. | |
| PROCEDURE | DebugBegin (str_ProcName :TC255, int_ResetIndent :INTEGER) |
| Used at start of a procedure to display the name of it in the debugg mode. | |
| PROCEDURE | DecodeOriginName (VAR str_Ret:TC255) |
| Decode the origin name from a string. | |
| PROCEDURE | FormatStrValue (VAR str_Val :TC255) |
| Format a string value with deleting the trailing 0. | |
| PROCEDURE | FreeArrayTool () |
| Free the memory of the tool array. | |
| PROCEDURE | GetToolName (int_ToolNo :INTEGER, VAR str_ToolName :TC255) |
| Return the tool name of a tool from its number. | |
| INTEGER FUNCTION | GetTurretKind () INTEGER |
| Return a number that define the kind of turret where the active tool is mounted. | |
| BOOLEAN FUNCTION | HavePrimaryAxis () BOOLEAN |
| Test if the machine have a primary axis. | |
| BOOLEAN FUNCTION | HaveSecondaryAxis () BOOLEAN |
| Test if the machine have a secondary axis. | |
| PROCEDURE | InitArrayTool () |
| Initialize an array of all tools used in the channel. | |
| BOOLEAN FUNCTION | Is5AxisCNC () BOOLEAN |
| Test if the machine have a primary and secondary axis. | |
| INTEGER FUNCTION | IsCharVarDat (str_Test :TC255, i :INTEGER) INTEGER |
| Test if a character of a string is a character used for a variable name in .dat file. | |
| BOOLEAN FUNCTION | IsEqual (real_Value1, real_Value2:REAL) BOOLEAN |
| Test if two values are equal. | |
| BOOLEAN FUNCTION | IsGCodeActivated (int_GCode :INTEGER) BOOLEAN |
| Test if a G code is activated. | |
| BOOLEAN FUNCTION | IsInf (real_Value1, real_Value2:REAL) BOOLEAN |
| Test if a value is striclty inferior to another one. | |
| BOOLEAN FUNCTION | IsInteger (real_Value:REAL) BOOLEAN |
| Test if a real value is integer with 3 decimals. | |
| BOOLEAN FUNCTION | IsKeyActivated (str_Key :TC255, real_Value :REAL) BOOLEAN |
| Test if a key is activated. | |
| BOOLEAN FUNCTION | IsMCodeActivated (int_MCode :INTEGER) BOOLEAN |
| Test if a M code is activated. | |
| BOOLEAN FUNCTION | IsModalKeyInteger (str_Key:TC255) BOOLEAN |
| Test if a key of GPP is modal. | |
| BOOLEAN FUNCTION | IsNotEqual (real_Value1, real_Value2:REAL) BOOLEAN |
| Test if two values are not equal. | |
| BOOLEAN FUNCTION | IsNull (real_Value:REAL) BOOLEAN |
| Test if a real value is equal to 0. | |
| INTEGER FUNCTION | IsNumberChar (str_Test :TC255, i :INTEGER) INTEGER |
| Test if a character of a string is a number. | |
| INTEGER FUNCTION | IsNumericalChar (VAR str_Test:TC255, i:INTEGER) INTEGER |
| Test if a character of a string is a numerical character. | |
| BOOLEAN FUNCTION | IsSameStr (str_1, str_2 :TC255) BOOLEAN |
| Test if two string are the same. | |
| BOOLEAN FUNCTION | IsSup (real_Value1, real_Value2:REAL) BOOLEAN |
| Test if a value is striclty superior to another one. | |
| BOOLEAN FUNCTION | IsTurretRack () BOOLEAN |
| Test if the active tool is mounted on a rack. | |
| BOOLEAN FUNCTION | IsTurretSpindle () BOOLEAN |
| Test if the active tool is mounted on a spindle. | |
| BOOLEAN FUNCTION | IsTurretTurret () BOOLEAN |
| Test if the active tool is mounted on a turret. | |
| PROCEDURE | ListOrigin () |
| Output the list of origin used by the channel in the NC program. | |
| PROCEDURE | ListTool () |
| Output the list of tool used by a channel. | |
| PROCEDURE | MessageError (int_MessageNum :INTEGER, str_Message :TC255) |
| Display an error box at the screen. | |
| PROCEDURE | MessageErrorCycle (int_MessageNum :INTEGER, str_Message, str_CycleName :TC255) |
| Display an error box for an error in a cycle with the message read in the MSG_PROC.DAT. | |
| PROCEDURE | MessageWarning (int_MessageNum :INTEGER, str_Message :TC255) |
| Display a warning box at the screen. | |
| PROCEDURE | MovePoint (tr3_PtBase, tr3_UnitVector :TR3, real_Length :REAL, VAR tr3_PtMoved:TR3) |
| Move a point into a direction along a unit vector with a given length. | |
| PROCEDURE | ReadStockInformations () |
| Read the information about the stock and call the good procedrue to output NC code. | |
| INTEGER FUNCTION | ReadValKey (str_Find:TC255, str_Key:TC255, int_Ind:INTEGER, VAR real_Val:REAL) INTEGER |
| Read the value of a key in a string. | |
| PROCEDURE | RenameNCFile (str_NewName:TC255) |
| Rename the output NC file. | |
| PROCEDURE | StrConcatSpaces (VAR str_Line :TC255, int_LenMax :INTEGER) |
| Cut or add some space to have a maximum length for a string following by a space and |. | |
| PROCEDURE | strcpyTestNull (VAR str_Ret :TC255, str_Test :TC255) |
| Copy a string in another one only if not null. | |
| PROCEDURE | StringReplace (VAR str_Base:TC255, str_Search, str_Replace:TC255) |
| Replace a part of string in a string by an other string. | |
| PROCEDURE | ToolRealString (VAR str_String :TC255) |
| Replace 0 by spaces after . in a string like '12.00,' or '12.00)'. | |
| PROCEDURE | ToolSuppressSpace (VAR str_String :TC255) |
| Suppress spaces in a string. | |
| REAL FUNCTION | VectorLength (tr3_Vector :TR3) |
| Return the norm of a vector. | |
This is the tools for all post pro-processors
| PROCEDURE CheckOrigin | ( | ) |
Check if the origin name are coherent.
If one of all origin use the codification between "$" and "_", all must use the same
So if one doesn't use, it occurs an error and the post will be stop with an error message
| PROCEDURE ComputeDepthCycle | ( | real_Depth:REAL | , |
| VAR | real_Inc, | ||
| real_End | , | ||
| real_Raison:REAL | , | ||
| VAR int_Nb:INTEGER | ) |
Compute the declining for a drilling operation.
The parameters real_Inc and real_End are memorized and not modified by the procedure
| [in] | real_Depth | : total depth of hole |
| [in,out] | real_Inc | : incremental depth |
| [in,out] | real_End | : final depth |
| [out] | real_Raison | : reason of declining |
| [out] | int_Nb | : number of passes |
| PROCEDURE ConcatStrVal | ( | VAR str_Ret:TC255 | , |
| str_Code:TC255 | , | ||
| real_Val:REAL | , | ||
| int_Precision :INTEGER | ) |
Add a real value after a string.
If the Precision is under 0 we take the number of decimal of TOLERPP
| [out] | str_Ret | : string built with str_Code and real_Val |
| [in] | str_Code | : base string |
| [in] | real_Val | : value to concatenate with str_Code |
| [in] | int_Precision | : precison of real_value we want to have |
| PROCEDURE ConcatStrValFormat | ( | VAR str_Ret:TC255 | , |
| str_Code:TC255 | , | ||
| real_Val:REAL | , | ||
| int_FormatReal :INTEGER | ) |
Add a real value after a string. The real value will be converted to be output in correct unit.
It will use a key from DPP to convert the value. The string is formated by the key settings.
| [out] | str_Ret | : string built with str_Code and real_Val |
| [in] | str_Code | : base string |
| [in] | real_Val | : value to concatenate with str_Code |
| [in] | int_FormatReal | : format of the real value passed SPI_FORMAT_REAL_STD = 0 : no conversion SPI_FORMAT_REAL_DISTANCE = 1 : distance conversion SPI_FORMAT_REAL_ANGLE = 2 : no conversion SPI_FORMAT_REAL_TEMPS = 3 : no conversion SPI_FORMAT_REAL_DBL_DISTANCE = 4 : distance conversion SPI_FORMAT_REAL_WEIGHT = 5 : no conversion SPI_FORMAT_REAL_CURRENCY = 6 : no conversion SPI_FORMAT_REAL_TEMPS_MINUTE = 7 : no conversion SPI_FORMAT_REAL_DURATION = 8 : no conversion SPI_FORMAT_REAL_ROTATION_SPEED = 9 : no conversion SPI_FORMAT_REAL_CUTTING_SPEED = 10 : cutting speed conversion SPI_FORMAT_REAL_FEEDRATE = 11 : distance conversion SPI_FORMAT_REAL_FEEDRATE_TOOTH = 12 : distance conversion SPI_FORMAT_REAL_POWER = 13 : no conversion SPI_FORMAT_REAL_MASS_DENSITY = 14 : no conversion SPI_FORMAT_REAL_ULTIMATE_STRENGTH = 15 : no conversion SPI_FORMAT_REAL_TORQUE = 16 : no conversion SPI_FORMAT_REAL_FEEDRATE_ROTATE = 17 : no conversion SPI_FORMAT_REAL_FLOW = 18 : no conversion |
| PROCEDURE ConcatVal | ( | VAR str_Ret:TC255 | , |
| real_Val:REAL | , | ||
| int_Precision :INTEGER | ) |
Add a real value after a string in the same string.
| [out] | str_Ret | : string to add a real_Val |
| [in] | real_Val | : value to concatenate with str_Code |
| [in] | int_Precision | : precison of real_value we want to have strcpy(str_Ret,'X');
real_Val := 2.123545;
int_Precision := 3;
ConcatStrVal(str_Ret,real_Val,int_Precision);
writeln('dtring ret should be X2.124 : ', str_Ret);
|
| PROCEDURE ConcatValFormat | ( | VAR str_Ret:TC255 | , |
| real_Val:REAL | , | ||
| int_FormatReal :INTEGER | ) |
Add a real value after a string in the same string. The real value will be converted to be output in correct unit.
| [out] | str_Ret | : string to add a real_Val |
| [in] | real_Val | : value to concatenate with str_Code |
| [in] | int_FormatReal | : format of the real value passed SPI_FORMAT_REAL_STD = 0 : no conversion SPI_FORMAT_REAL_DISTANCE = 1 : distance conversion SPI_FORMAT_REAL_ANGLE = 2 : no conversion SPI_FORMAT_REAL_TEMPS = 3 : no conversion SPI_FORMAT_REAL_DBL_DISTANCE = 4 : distance conversion SPI_FORMAT_REAL_WEIGHT = 5 : no conversion SPI_FORMAT_REAL_CURRENCY = 6 : no conversion SPI_FORMAT_REAL_TEMPS_MINUTE = 7 : no conversion SPI_FORMAT_REAL_DURATION = 8 : no conversion SPI_FORMAT_REAL_ROTATION_SPEED = 9 : no conversion SPI_FORMAT_REAL_CUTTING_SPEED = 10 : cutting speed conversion SPI_FORMAT_REAL_FEEDRATE = 11 : distance conversion SPI_FORMAT_REAL_FEEDRATE_TOOTH = 12 : distance conversion SPI_FORMAT_REAL_POWER = 13 : no conversion SPI_FORMAT_REAL_MASS_DENSITY = 14 : no conversion SPI_FORMAT_REAL_ULTIMATE_STRENGTH = 15 : no conversion SPI_FORMAT_REAL_TORQUE = 16 : no conversion SPI_FORMAT_REAL_FEEDRATE_ROTATE = 17 : no conversion SPI_FORMAT_REAL_FLOW = 18 : no conversion |
| PROCEDURE DebugBegin | ( | str_ProcName :TC255 | , |
| int_ResetIndent :INTEGER | ) |
Used at start of a procedure to display the name of it in the debugg mode.
| [in] | str_ProcName | : Name of the procedure that call DebugBegin |
| [in] | int_ResetIndent | : CONST_YES to reset the identation in the debug window, CONST_NO otherwise |
| PROCEDURE DecodeOriginName | ( | VAR str_Ret:TC255 | ) |
Decode the origin name from a string.
The string must follow the coding rule. The origin name must be between "$" and "_"
| [out] | str_Ret | : the string to treat |
| PROCEDURE FormatStrValue | ( | VAR str_Val :TC255 | ) |
Format a string value with deleting the trailing 0.
delete also the dot if there is no decimal
| [out] | str_Val | : string to modify |
| PROCEDURE FreeArrayTool | ( | ) |
Free the memory of the tool array.
| PROCEDURE GetToolName | ( | int_ToolNo :INTEGER | , |
| VAR str_ToolName :TC255 | ) |
Return the tool name of a tool from its number.
| [in] | int_ToolNo | : tool number we want to have the name |
| [out] | str_ToolName | : The name of the tool |
| INTEGER FUNCTION GetTurretKind | ( | ) |
Return a number that define the kind of turret where the active tool is mounted.
| BOOLEAN FUNCTION HavePrimaryAxis | ( | ) |
Test if the machine have a primary axis.
| BOOLEAN FUNCTION HaveSecondaryAxis | ( | ) |
Test if the machine have a secondary axis.
| PROCEDURE InitArrayTool | ( | ) |
Initialize an array of all tools used in the channel.
The array contains the name of tool the key to access is the number of tool
| BOOLEAN FUNCTION Is5AxisCNC | ( | ) |
Test if the machine have a primary and secondary axis.
| INTEGER FUNCTION IsCharVarDat | ( | str_Test :TC255 | , |
| i :INTEGER | ) |
Test if a character of a string is a character used for a variable name in .dat file.
| [in] | str_Test | : string to test |
| [in] | i | : number of character in the string |
| BOOLEAN FUNCTION IsEqual | ( | real_Value1 | , |
| real_Value2:REAL | ) |
Test if two values are equal.
The test is done with a tolerance that is TOLERPP
| [in] | real_Value1 | : First value to test |
| [in] | real_Value2 | : Second value to test |
| BOOLEAN FUNCTION IsGCodeActivated | ( | int_GCode :INTEGER | ) |
Test if a G code is activated.
| [in] | int_GCode | : G code number to test |
| BOOLEAN FUNCTION IsInf | ( | real_Value1 | , |
| real_Value2:REAL | ) |
Test if a value is striclty inferior to another one.
| [in] | real_Value1 | : First value to test |
| [in] | real_Value2 | : Second value to test |
| BOOLEAN FUNCTION IsInteger | ( | real_Value:REAL | ) |
Test if a real value is integer with 3 decimals.
| [in] | real_Value | : Value to test |
| BOOLEAN FUNCTION IsKeyActivated | ( | str_Key :TC255 | , |
| real_Value :REAL | ) |
Test if a key is activated.
| [in] | str_Key | : Key to test |
| [in] | real_Value | : value to test for the key |
| BOOLEAN FUNCTION IsMCodeActivated | ( | int_MCode :INTEGER | ) |
Test if a M code is activated.
| [in] | int_MCode | : M code number to test |
| BOOLEAN FUNCTION IsModalKeyInteger | ( | str_Key:TC255 | ) |
Test if a key of GPP is modal.
| [in] | str_Key | : key to test |
| BOOLEAN FUNCTION IsNotEqual | ( | real_Value1 | , |
| real_Value2:REAL | ) |
Test if two values are not equal.
The test is done with a tolerance that is TOLERPP
| [in] | real_Value1 | : First value to test |
| [in] | real_Value2 | : Second value to test |
| BOOLEAN FUNCTION IsNull | ( | real_Value:REAL | ) |
Test if a real value is equal to 0.
The test is done with a tolerance that is TOLERPP
| [in] | real_Value | : value to test |
| INTEGER FUNCTION IsNumberChar | ( | str_Test :TC255 | , |
| i :INTEGER | ) |
Test if a character of a string is a number.
| [in] | str_Test | : string to test |
| [in] | i | : number of character in the string |
| INTEGER FUNCTION IsNumericalChar | ( | VAR str_Test:TC255 | , |
| i:INTEGER | ) |
Test if a character of a string is a numerical character.
| [in] | str_Test | : string to test |
| [in] | i | : number of character in the string |
| BOOLEAN FUNCTION IsSameStr | ( | str_1 | , |
| str_2 :TC255 | ) |
Test if two string are the same.
| [in] | str_1 | : first string to compare |
| [in] | str_2 | : second string to compare |
| BOOLEAN FUNCTION IsSup | ( | real_Value1 | , |
| real_Value2:REAL | ) |
Test if a value is striclty superior to another one.
| [in] | real_Value1 | : First value to test |
| [in] | real_Value2 | : Second value to test |
| BOOLEAN FUNCTION IsTurretRack | ( | ) |
Test if the active tool is mounted on a rack.
| BOOLEAN FUNCTION IsTurretSpindle | ( | ) |
Test if the active tool is mounted on a spindle.
| BOOLEAN FUNCTION IsTurretTurret | ( | ) |
Test if the active tool is mounted on a turret.
| PROCEDURE ListOrigin | ( | ) |
Output the list of origin used by the channel in the NC program.
it will call the procedure OutputLineListOrigin. This procedure must be implemented in the post-processor
| PROCEDURE ListTool | ( | ) |
Output the list of tool used by a channel.
Call the procedure OutputLineListTool for each tool used in the channel
The procedure OutputLineListTool must be implemented in the post-processor to format it
| PROCEDURE MessageError | ( | int_MessageNum :INTEGER | , |
| str_Message :TC255 | ) |
Display an error box at the screen.
| [in] | int_MessageNum | : number of the message read in MSG_PROC.DAT |
| [in] | str_Message | : Default message if the number is not in the MSG_PROC.DAT |
| PROCEDURE MessageErrorCycle | ( | int_MessageNum :INTEGER | , |
| str_Message | , | ||
| str_CycleName :TC255 | ) |
Display an error box for an error in a cycle with the message read in the MSG_PROC.DAT.
| [in] | int_MessageNum | : number of the message read in MSG_PROC.DAT |
| [in] | str_Message | : Default message if the number is not in the MSG_PROC.DAT |
| [in] | str_CycleName | : Name of the cycle occurs the error |
| PROCEDURE MessageWarning | ( | int_MessageNum :INTEGER | , |
| str_Message :TC255 | ) |
Display a warning box at the screen.
| [in] | int_MessageNum | : number of the message read in MSG_PROC.DAT |
| [in] | str_Message | : Default message if the number is not in the MSG_PROC.DAT |
| PROCEDURE MovePoint | ( | tr3_PtBase | , |
| tr3_UnitVector :TR3 | , | ||
| real_Length :REAL | , | ||
| VAR tr3_PtMoved:TR3 | ) |
Move a point into a direction along a unit vector with a given length.
| [in] | tr3_PtBase | : start point |
| [in] | tr3_UnitVector | : direction to moved |
| [in] | real_Length | : distance to move |
| [out] | tr3_PtMoved | : point moved |
| PROCEDURE ReadStockInformations | ( | ) |
Read the information about the stock and call the good procedrue to output NC code.
the procedure will call the OutputRoundStock or OutputParallelStock
Those procedures must be implemented in the post-processor
For Parallel stock :
width is on the X axis
Length is on the Y axis
Height is on the Z axis
| INTEGER FUNCTION ReadValKey | ( | str_Find:TC255 | , |
| str_Key:TC255 | , | ||
| int_Ind:INTEGER | , | ||
| VAR real_Val:REAL | ) |
Read the value of a key in a string.
| [in] | str_Find | : the string inside find the key value |
| [in] | str_Key | : the key we are looking |
| [in] | int_Ind | : the repetition we search, 0 to don't use, so we return the first |
| [out] | real_Val | : the read value |
| PROCEDURE RenameNCFile | ( | str_NewName:TC255 | ) |
Rename the output NC file.
| [in] | str_NewName | : the nex name of the NC program |
| PROCEDURE StrConcatSpaces | ( | VAR str_Line :TC255 | , |
| int_LenMax :INTEGER | ) |
Cut or add some space to have a maximum length for a string following by a space and |.
| [out] | str_Line | : Line to treat |
| [in] | int_LenMax | : maximum length |
| PROCEDURE strcpyTestNull | ( | VAR str_Ret :TC255 | , |
| str_Test :TC255 | ) |
Copy a string in another one only if not null.
| [out] | str_Ret | : return string |
| [in] | str_Test | : string to copy |
| PROCEDURE StringReplace | ( | VAR str_Base:TC255 | , |
| str_Search | , | ||
| str_Replace:TC255 | ) |
Replace a part of string in a string by an other string.
| [out] | str_Base | : string will be treat by procedure |
| [in] | str_Search | : the string that will be search |
| [in] | str_Replace | : the string that will be replace |
| PROCEDURE ToolRealString | ( | VAR str_String :TC255 | ) |
Replace 0 by spaces after . in a string like '12.00,' or '12.00)'.
| [out] | str_String | : string to treat |
| PROCEDURE ToolSuppressSpace | ( | VAR str_String :TC255 | ) |
Suppress spaces in a string.
| [out] | str_String | : string to treat |
| REAL FUNCTION VectorLength | ( | tr3_Vector :TR3 | ) |
Return the norm of a vector.
| [in] | tr3_Vector | : Vector to compute the length |
Normalize a vector
| [out] | rt3_Vector | : Vector that will be normalize |