default.txt 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /PROG ALL
  2. /ATTR
  3. OWNER = MNEDITOR;
  4. COMMENT = "";
  5. PROG_SIZE = 3689;
  6. CREATE = DATE 14-05-13 TIME 17:03:06;
  7. MODIFIED = DATE 14-05-13 TIME 17:21:44;
  8. FILE_NAME = ;
  9. VERSION = 0;
  10. LINE_COUNT = 118;
  11. MEMORY_SIZE = 4365;
  12. PROTECT = READ_WRITE;
  13. TCD: STACK_SIZE = 0,
  14. TASK_PRIORITY = 50,
  15. TIME_SLICE = 0,
  16. BUSY_LAMP_OFF = 0,
  17. ABORT_REQUEST = 0,
  18. PAUSE_REQUEST = 0;
  19. DEFAULT_GROUP = 1,*,*,*,*;
  20. CONTROL_CODE = 00000000 00000000;
  21. /MN
  22. ! motion ;
  23. J P[1:test point] 100% FINE ;
  24. J P[1] 100.0sec CNT100 ;
  25. J P[1] 100msec CNT R[1] ;
  26. L P[1] 100/sec FINE ;
  27. L P[1] 100cm/min CNT100 ;
  28. L P[1] 100.0inch/min CNT100 ;
  29. L P[1] 100deg/sec CNT100 ;
  30. ! indirect speed ;
  31. L P[1] R[1]sec CNT100 ;
  32. ! indirect indirect ;
  33. L PR[1] R[R[1]]msec CNT100 ;
  34. ! indirect destination ;
  35. L PR[R[1]] max_speed CNT100 ;
  36. ;
  37. ! assignment ;
  38. R[1]=R[2] ;
  39. ! indirect assignment ;
  40. R[R[1]]=R[2] ;
  41. ! system variables ;
  42. $foo=$bar[100].$baz ;
  43. R[1]=$FOO.$BAR ;
  44. ;
  45. ! various keyword assignments ;
  46. PR[1]=LPOS ;
  47. PR[1]=JPOS ;
  48. PR[1]=UFRAME[1] ;
  49. PR[1]=UTOOL[1] ;
  50. PR[1]=P[1] ;
  51. PR[1,1:component]=5 ;
  52. SR[1:string reg]=SR[2]+AR[1] ;
  53. R[1]=SO[1:Cycle start] DIV SI[2:Remote] ;
  54. R[1]=UO[1:Cmd enabled] MOD UI[1:*IMSTP] ;
  55. ! mixed logic ;
  56. DO[1]=(DI[1] AND AR[1] AND F[1] OR TIMER[1]>TIMER_OVERFLOW[1]) ;
  57. F[1]=(ON) ;
  58. JOINT_MAX_SPEED[1]=5 ;
  59. LINEAR_MAX_SPEED=5 ;
  60. SKIP CONDITION DI[1]=OFF- ;
  61. PAYLOAD[R[1]] ;
  62. OFFSET CONDITION PR[1] ;
  63. UFRAME_NUM=1 ;
  64. UTOOL_NUM=1 ;
  65. UFRAME[1]=PR[1] ;
  66. UTOOL[1]=PR[1] ;
  67. RSR[1]=ENABLE ;
  68. RSR[AR[1]]=DISABLE ;
  69. UALM[1] ;
  70. TIMER[1]=START ;
  71. TIMER[1]=STOP ;
  72. TIMER[1]=RESET ;
  73. OVERRIDE=50% ;
  74. TOOL_OFFSET CONDITION PR[1] ;
  75. LOCK PREG ;
  76. UNLOCK PREG ;
  77. COL DETECT ON ;
  78. COL DETECT OFF ;
  79. COL GUARD ADJUST R[1] ;
  80. COL GUARD ADJUST 50 ;
  81. MONITOR TEST ;
  82. MONITOR END TEST ;
  83. R[1]=STRLEN SR[1] ;
  84. SR[1]=SUBSTR SR[2],R[3],R[4] ;
  85. R[1]=FINDSTR SR[1],SR[2] ;
  86. DIAG_REC[1,5,2] ;
  87. ;
  88. ! program calls ;
  89. CALL TEST ;
  90. CALL TEST(1,'string',SR[1],AR[1]) ;
  91. RUN TEST ;
  92. RUN TEST(1,'string',SR[1],AR[1]) ;
  93. ;
  94. ! conditionals ;
  95. IF R[1]=1,JMP LBL[5] ;
  96. IF R[1]=AR[1],CALL TEST ;
  97. IF (DI[1]),R[1]=(5) ;
  98. SELECT R[1]=1,JMP LBL[5] ;
  99. =2,CALL TEST ;
  100. ELSE,JMP LBL[100] ;
  101. FOR R[1]=1 TO R[2] ;
  102. ENDFOR ;
  103. ;
  104. ! wait statement ;
  105. WAIT 1.00(sec) ;
  106. WAIT R[5] ;
  107. WAIT DI[1]=ON ;
  108. WAIT DI[1]=ON+ ;
  109. WAIT ERR_NUM=1 ;
  110. WAIT (DI[1]=ON) ;
  111. ;
  112. ! jumps and labels ;
  113. JMP LBL[1] ;
  114. JMP LBL[R[1]] ;
  115. LBL[100] ;
  116. LBL[100:TEST] ;
  117. ;
  118. ! statements ;
  119. PAUSE ;
  120. ABORT ;
  121. ERROR_PROG=ALL ;
  122. RESUME_PROG[1]=TEST ;
  123. END ;
  124. MESSAGE[ASDF] ;
  125. ;
  126. ! comments ;
  127. --eg:ASDFASDFASDF ;
  128. // L P[9] 100mm/sec CNT100 ACC100 ;
  129. ;
  130. ! motion modifiers ;
  131. L P[1] 100mm/sec CNT100 ACC100 ;
  132. L P[1] 100mm/sec CNT100 ACC R[1] ;
  133. L P[1] 100mm/sec CNT100 Skip,LBL[1] ;
  134. L P[1] 100mm/sec CNT100 BREAK ;
  135. L P[1] 100mm/sec CNT100 Offset ;
  136. L P[1] 100mm/sec CNT100 PSPD50 ;
  137. L P[1] 100mm/sec CNT100 Offset,PR[1] ;
  138. L P[1] 100mm/sec CNT100 INC ;
  139. L P[1] 100mm/sec CNT100 RT_LDR[1] ;
  140. L P[1] 100mm/sec CNT100 AP_LD50 ;
  141. L P[1] 100mm/sec CNT100 Tool_Offset ;
  142. L P[1] 100mm/sec CNT100 Tool_Offset,PR[1] ;
  143. L P[1] 100mm/sec CNT100 Skip,LBL[1],PR[1]=LPOS ;
  144. L P[1] 100mm/sec CNT100 TB R[5]sec,CALL ALL ;
  145. L P[1] 100mm/sec CNT100 TA 0.00sec,AO[1]=R[5] ;
  146. L P[1] 100mm/sec CNT100 DB 0.0mm,CALL ALL ;
  147. L P[1] 100mm/sec CNT100 PTH ;
  148. L P[1] 100mm/sec CNT100 VOFFSET,VR[1] ;
  149. /POS
  150. P[1:"test"]{
  151. GP1:
  152. UF : 0, UT : 1, CONFIG : '',
  153. X = 550.000 mm, Y = 0.000 mm, Z = -685.000 mm,
  154. W = 180.000 deg, P = 0.000 deg, R = 0.000 deg
  155. };
  156. /END