Sistema de Referencias de Fresa

Sistema de Referencias de Fresa API de secuencias de comandos se enumeran a continuación están disponibles para ayudar al usuario avanzado en la ampliación de la funcionalidad del motor de procesamiento de mensaje integrado en BobCAM.

 

Para probar el resultado de estas funciones, es altamente recomendable que el usuario las pruebas en un post-procesador cero en lugar de en un procesador de mensaje que está en el uso diario. Para probar la API de secuencias de comandos en un procesador de post-producción, por favor, asegúrese de hacer una copia de seguridad del original, como BobCAM, Inc. no puede tener una copia limpia de la original, si el usuario lo ha modificado!

 

1. short MILL_GetOperationType()

 

returns:

The current operation type.

 

2. short MILL_GetDrillCycleType()

 

returns:

The current drill cycle type.

 

3. void MILL_SetReturnString(LPCTSTR ReturnString)

 

For the case that the block will output code within an existing posting line

(i.e n, rapid_move, program_block_1,xr,yr).

 

This would be used in place of “MILL_OutputText”, and “MILL_ProcessPostLine”.

 

sets:

Set the return string that will be used to output code with and existing post line.

 

4. void MILL_OutputText(LPCTSTR OutString)

 

outputs:

Line of text with CR/LF to the NC text file.

 

5. void MILL_ProcessPostLine(LPCTSTR OutString)

 

outputs:

Output Line of variables and constants with CR/LF to the NC text file. (i.e. “n,rapid_move,xr,yr,’M08’”). The variables and constants will be treated just as it would in normal posting blocks.

 

6. short MILL_GetOutputSubPrograms()

 

returns:

0 = Output program using long form

1 = Output program using subprograms

 

7. short MILL_GetUnits()

 

returns:

0 = Inch

1 = Metric

 

8. void MILL_SetXFeed(double X)

 

sets:

X Feed move value used in current operation.

 

9. double MILL_GetXFeed()

 

returns:

X Feed move value used in current operation.

 

10. void MILL_SetYFeed(double Y)

 

sets:

Y Feed move value used in current operation.

 

11. double MILL_GetYFeed()

 

returns:

Y Feed move value used in current operation.

 

12. void MILL_SetZFeed(double Z)

 

sets:

Z Feed move value used in current operation.

 

13. double MILL_GetZFeed()

 

returns:

Z Feed move value used in current operation.

 

14. void MILL_SetPreviousXFeed(double X)

 

sets:

Previous X Feed move value used in current operation.  

 

15. double MILL_GetPreviousXFeed()

 

returns:

Previous X Feed move value used in current operation.  

 

16. void MILL_SetPreviousYFeed(double Y)

 

sets:

Previous Y Feed move value used in current operation.  

 

17. double MILL_GetPreviousYFeed()

 

returns:

Previous Y Feed move value used in current operation.

 

18. void MILL_SetPreviousZFeed(double Z)

 

sets:

Previous Z Feed move value used in current operation.

 

19. double MILL_GetPreviousZFeed()

 

returns:

Previous Z Feed move value used in current operation.

 

20. BSTR MakeRealString(double RealValue)

 

returns:

String formatted according to post processor file question 414 for metric, or 415 for inch.

 

22. BSTR MakeXString(double XValue)

 

returns:

String formatted according to post processor file question 414 for metric, or 415 for inch with defined prefix.

 

23. BSTR MakeYString(double YValue)

 

returns:

String formatted according to post processor file question 414 for metric, or 415 for inch with defined prefix.

 

24. BSTR MakeZString(double ZValue)

 

returns:

String formatted according to post processor file question 414 for metric, or 415 for inch with defined prefix.

 

 

25. short MILL_GetNumberOfIntMemoryLoc()

 

returns:

The number of integer memory locations allocated for global integer storage.

 

26. short MILL_GetNumberOfDoubleMemoryLoc()

 

returns:

The number of real number memory locations allocated for global real number storage.

 

27. short MILL_GetNumberOfStringMemoryLoc()

 

returns:

The number of string memory locations allocated for global string storage.

 

28. void MILL_SetIntMemoryLoc(short Index, short SetInteger)

 

sets:

Set the integer storage at Index with the value in SetInteger.

 

29. short MILL_GetIntMemoryLoc(short Index)

 

returns:

Get the integer storage value at Index.

 

30. double MILL_GetDoubleMemoryLoc(short Index)

 

returns:

Get the real number storage value at Index.

 

31. void MILL_SetDoubleMemoryLoc(short Index, double SetDouble)

 

sets:

Set the real number storage at Index with the value in SetDouble.

 

32. BSTR MILL_GetStringMemoryLoc(short Index)

 

returns:

Get the string storage value at Index.

 

33. void MILL_SetStringMemoryLoc(short Index, LPCTSTR SetString)

 

sets:

Set the string storage at Index with the value in SetString.

 

34. short MILL_GetProcessOrder()

 

returns:

The machining order set in MILL settings.

1 = Individual feature (optimize by feature)

2 = Individual tool (optimize by tool)

 

35. short MILL_GetNumberOfFeatures()

 

returns:

Total number of Feature.

 

36. short MILL_GetCurrentFeatureNumber()

 

returns:

Current feature number.

 

37. short MILL_GetNumberOfContours()

 

returns:

Total number of contours (cut passes).

 

38. short MILL_GetCurrentContoursNumber()

 

returns:

Current contours (cut pass) number.

 

39. short MILL_GetNumberOfContourEntities()

 

returns:

Total number of the current contours geometric entities.

 

40. short MILL_GetCurrentContourEntityNumber()

 

returns:

The number of the current contours, current geometric entity.

 

41. short MILL_GetOffsetSide()

 

returns:

0 = No Offset

1 = Offset Left

2 = Offset Right

 

42. double MILL_GetFeedRate()

 

returns:

The current feed rate.

 

43. double MILL_GetGlobalStockHeight()

 

returns:

The actual height of the defined stock.

 

44. double MILL_GetFeatureStockHeight()

 

returns:

The operation stock height.

 

45. short MILL_GetLeadinType()

 

returns:

The Leadin type:

0 = Vertical

1 = Parallel

2 = Right Angle

3 = Circular

 

46. short MILL_GetLeadoutType()

 

returns:

The Leadout type:

0 = Vertical

1 = Parallel

2 = Right Angle

3 = Circular

 

47. short MILL_GetFirstLineNumber()

 

returns:

NC line number start value.

 

48. short MILL_GetCurrentLineNumber()

 

returns:

Current NC Line Number.

 

49. short MILL_GetLineNumberIncrement()

 

returns:

NC Line number increment.

 

50. short MILL_GetIsIncremental()

 

returns:

If the coordinate output is incremental:

0 = No

1 = Yes

 

51. short MILL_GetFeatureType()

 

returns:

Feature type:

1 = Centro de Agujero

2 = Agujero

3 = Rosca

4 = Mandrinado

5 = Ensanchado de Agujero

6 = Ensanchado de Rosca rodada

7 = Mandrinado Ensanchado

15 = Rosca Rodada

16 = Ensanchado de Rosca rodada

18 = Refrentado

19 = Vaciado

20 = Contorno (Perfil)

21 = Fresado de Angulo

22 = Grabado

23 = Mandrinado

24 = Roscado de Fresa

26 = Grabado de Vectores

29 = Corte Plano

30 = Corte Radial

31 = Corte Espiral

32 = Desbaste en el Eje Z

33 = Acabado en El Eje Z

34 = Corte Equidistante

35 = Corte de Lapiz

36 = Corte de Curba

40 = Grabado en V

 

52. double MILL_GetArcCenterX()

 

returns:

Arc center X value.

 

53. double MILL_GetArcCenterY()

 

 returns:

Arc center Y value.

 

54. double MILL_GetArcRadius()

 

returns:

Arc radius.

 

55. double MILL_GetPartLength()

 

returns:

Overall part length (X dimension).

 

56. double MILL_GetPartWidth()

 

returns:

Overall part width (Y dimension).

 

57. double MILL_GetOffsetAmount()

 

returns:

Current offset amount.

 

58. short MILL_GetUserCheckBoxVariable(short Index)

 

returns:

User defined operation check box variable 1-9.

 

59. short MILL_GetUserEditIntegerVariable(short Index)

 

returns:

User defined operation integer variable 1-25.

 

60. double MILL_GetUserEditRealVariable(short Index)

 

returns:

User defined operation real number variable 1-25.

 

61. BSTR MILL_GetUserEditStringVariable(short Index)

 

returns:

User defined operation string variable 1-25.

 

62. short MILL_GetUserSelectComboVariable(short Index)

 

returns:

User defined operation combo box index variable 1-25.

 

63. short MILL_GetUserCheckBoxSettingsVariable(short Index)

 

returns:

User defined settings check box variable 1-9.

 

64. short MILL_GetUserEditIntegerVariable(short Index)

 

returns:

User defined settings integer variable 1-25.

 

65. double MILL_GetUserEditRealVariable(short Index)

 

returns:

User defined settings real number variable 1-25.

 

66. BSTR MILL_GetUserEditStringVariable(short Index)

 

returns:

User defined settings string variable 1-25.

 

67. short MILL_GetUserSelectComboVariable(short Index)

 

returns:

User defined settings combo box index variable 1-25.