wasm-port: broaden native LinuxCNC interpreter probes
This commit is contained in:
13
wasm-port/tests/fixtures/gcode/arc_semantics.ngc
vendored
Normal file
13
wasm-port/tests/fixtures/gcode/arc_semantics.ngc
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
G90 G17 G0 X0 Y0 Z0
|
||||
G91.1
|
||||
G2 X1 Y1 I1 J0 F60
|
||||
G90.1
|
||||
G3 X0 Y0 I0 J1
|
||||
G2 X1 Y0 R0.5
|
||||
G18 G0 X0 Y0 Z0
|
||||
G91.1
|
||||
G2 X1 Z1 I1 K0
|
||||
G19 G0 X0 Y0 Z0
|
||||
G3 Y1 Z1 J0 K1
|
||||
G17 G0 X0 Y0 Z0
|
||||
G2 X1 Y0 Z2 R-1
|
||||
8
wasm-port/tests/fixtures/gcode/canon_runtime_edges.ngc
vendored
Normal file
8
wasm-port/tests/fixtures/gcode/canon_runtime_edges.ngc
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
S1200 M3
|
||||
M5
|
||||
S900 M4
|
||||
M5
|
||||
M7
|
||||
M8
|
||||
M9
|
||||
G4 P0.25
|
||||
21
wasm-port/tests/fixtures/gcode/namedparam_semantics.ngc
vendored
Normal file
21
wasm-port/tests/fixtures/gcode/namedparam_semantics.ngc
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#<_global_probe> = 42.5
|
||||
#<local_probe> = 7.25
|
||||
#<exists_global> = EXISTS[#<_global_probe>]
|
||||
#<exists_local> = EXISTS[#<local_probe>]
|
||||
#<exists_missing> = EXISTS[#<missing_probe>]
|
||||
#<ini_velocity> = #<_ini[traj]max_linear_velocity>
|
||||
#<hal_pin> = #<_hal[standalone.pin-bit]>
|
||||
#<hal_signal> = #<_hal[standalone.signal-float]>
|
||||
#<hal_param> = #<_hal[standalone.param-s32]>
|
||||
#<hal_u32> = #<_hal[standalone.pin-u32]>
|
||||
#<hal_s64> = #<_hal[standalone.signal-s64]>
|
||||
#<hal_u64> = #<_hal[standalone.param-u64]>
|
||||
#<hal_disconnected> = #<_hal[standalone.disconnected-float]>
|
||||
#<hal_missing_exists> = EXISTS[#<_hal[standalone.missing]>]
|
||||
(DEBUG, named global=%f#<_global_probe>)
|
||||
(DEBUG, named local=%f#<local_probe>)
|
||||
(DEBUG, exists global=%d#<exists_global> local=%d#<exists_local> missing=%d#<exists_missing>)
|
||||
(DEBUG, ini velocity=%d#<ini_velocity>)
|
||||
(DEBUG, hal pin=%d#<hal_pin> signal=%f#<hal_signal> param=%d#<hal_param>)
|
||||
(DEBUG, hal u32=%d#<hal_u32> s64=%.0f#<hal_s64> u64=%.0f#<hal_u64>)
|
||||
(DEBUG, hal disconnected=%f#<hal_disconnected> missing_exists=%d#<hal_missing_exists>)
|
||||
7
wasm-port/tests/fixtures/gcode/numbered_params.ngc
vendored
Normal file
7
wasm-port/tests/fixtures/gcode/numbered_params.ngc
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
#1 = 12.5
|
||||
#2 = [#1 + 3]
|
||||
#3 = EXISTS[#1]
|
||||
#4 = EXISTS[#5602]
|
||||
(DEBUG, numbered p1=%f#1 p2=%f#2 exists1=%d#3 exists5602=%d#4)
|
||||
G90 G0 X2 Y3 Z4
|
||||
(DEBUG, numbered pos x=%f#5420 y=%f#5421 z=%f#5422)
|
||||
5
wasm-port/tests/fixtures/gcode/oword_subroutine.ngc
vendored
Normal file
5
wasm-port/tests/fixtures/gcode/oword_subroutine.ngc
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
O<move> sub
|
||||
G1 X#1 Y#2 F100
|
||||
O<move> endsub
|
||||
G0 X0 Y0
|
||||
O<move> call [2] [3]
|
||||
10
wasm-port/tests/fixtures/gcode/tool_semantics.ngc
vendored
Normal file
10
wasm-port/tests/fixtures/gcode/tool_semantics.ngc
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
T2
|
||||
(DEBUG, tool selected=%d#<_selected_tool> selected_pocket=%d#<_selected_pocket>)
|
||||
M6
|
||||
(DEBUG, tool after_m6 current_pocket=%d#<_current_pocket> current_tool=%d#<_current_tool>)
|
||||
G43 H2
|
||||
(DEBUG, tool g43 offset=%d#<_tool_offset> x=%f#5401 y=%f#5402 z=%f#5403)
|
||||
G49
|
||||
(DEBUG, tool g49 offset=%d#<_tool_offset> x=%f#5401 y=%f#5402 z=%f#5403)
|
||||
M61 Q2
|
||||
(DEBUG, tool after_m61 current_pocket=%d#<_current_pocket> current_tool=%d#<_current_tool>)
|
||||
Reference in New Issue
Block a user