tp_plus
tp_plus copied to clipboard
FANUC TP abstraction
When using the indirect function inside the inlined function. The output PR has to be attached to the end of the function call and pointing to the PR number. See...
When more than one call of an inlined function exists in the same file, the tpp will throw an error when compiling as follows. ``` FAILED: C:/Users/HamdanAl-Musaibeli/workhub/myhub/sensing_tpp/build/G1_UFRAME_CALIBRATE.ls "C:\Users\HamdanAl-Musaibeli\workhub\shrdhub\pub\tp_plus\bin\tpp.bat" C:\Users\HamdanAl-Musaibeli\workhub\myhub\sensing_tpp\src\G1_UFRAME_CALIBRATE.tpp -o...
TP+ ```ruby pos := P[1] linear_move.to(pos).at(100, 'mm/s').term(-1) ``` LS ```fortran /MN : ; : L P[1:pos] 100mm/sec FINE ; /POS P[1:"pos"]{ }; /END ```
e.g.: ```ruby local := R[50..90] a = x1 * (y2 - y3) - y1 * (x2 - x3) + x2 * y3 - x3 * y2 b = (Mth::pow(x1, 2)...
**tp+** ```ruby def circleCenter3Points(x1,y1,z1,x2,y2,z2,x3,y3,z3) : numreg, numreg, numreg a = x1 * (y2 - y3) - y1 * (x2 - x3) + x2 * y3 - x3 * y2 b...
```ruby local := R[70..80] def func2(val, exp) : numreg return(Mth::exp(exp * Mth::ln(val))) end power := R[20] power = ns1::func2(4, 2) ``` gives error: ``` indirect_node.rb:70:in `id': undefined method `value' for...
There is currently no way to tell if the return of a call statement in a expression is a posreg, or a numreg, due to `handle_arg_funcs` in CallNode being evaluated...
**Independent motion** ``` linear_move.to(p1).at(100, 'mm/s').term(100).independent(group(1)) joint_move.to(p1).at(100, '%').term(50).independent(group(3)) Independent GP GP1 L P[1] 50mm/s CNT100 GP3 J P[1] 100% CNT50 ``` **simultaneous motion** ``` linear_move.to(p1).at(90, 'mm/s').term(100).simultaneous(group(1)) joint_move.to(p1).at(100, '%').term(50).simultaneous(group(3)) Simultaneous GP GP1...