wasm-port: broaden native LinuxCNC interpreter probes

This commit is contained in:
2026-06-07 05:49:34 +08:00
parent 5025b0c1a1
commit eb261462c1
49 changed files with 1276 additions and 798 deletions

View File

@@ -0,0 +1,13 @@
canon_event=STRAIGHT_TRAVERSE line=1 x=0 y=0 z=0 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=COMMENT: interpreter: IJK distance mode changed to incremental
canon_event=SET_FEED_RATE rate=60
canon_event=ARC_FEED line=3 first_end=1 second_end=1 first_axis=1 second_axis=0 rotation=-1 axis_end_point=0 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=COMMENT: interpreter: IJK distance mode changed to absolute
canon_event=ARC_FEED line=5 first_end=0 second_end=0 first_axis=0 second_axis=1 rotation=1 axis_end_point=0 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=ARC_FEED line=6 first_end=1 second_end=0 first_axis=0.5 second_axis=-3.06162e-17 rotation=-1 axis_end_point=0 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=STRAIGHT_TRAVERSE line=7 x=0 y=0 z=0 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=ARC_FEED line=9 first_end=1 second_end=1 first_axis=0 second_axis=1 rotation=-1 axis_end_point=0 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=STRAIGHT_TRAVERSE line=10 x=0 y=0 z=0 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=ARC_FEED line=11 first_end=1 second_end=1 first_axis=0 second_axis=1 rotation=1 axis_end_point=0 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=STRAIGHT_TRAVERSE line=12 x=0 y=0 z=0 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=ARC_FEED line=13 first_end=1 second_end=0 first_axis=0.5 second_axis=0.866025 rotation=-1 axis_end_point=2 a=0 b=0 c=0 u=0 v=0 w=0

View File

@@ -0,0 +1,11 @@
canon_event=SET_SPINDLE_SPEED spindle=0 speed=1200
canon_event=START_SPINDLE_CLOCKWISE spindle=0 wait_for_at_speed=1
canon_event=STOP_SPINDLE_TURNING spindle=0
canon_event=SET_SPINDLE_SPEED spindle=0 speed=900
canon_event=START_SPINDLE_COUNTERCLOCKWISE spindle=0 wait_for_at_speed=1
canon_event=STOP_SPINDLE_TURNING spindle=0
canon_event=MIST_ON
canon_event=FLOOD_ON
canon_event=MIST_OFF
canon_event=FLOOD_OFF
canon_event=DWELL seconds=0.25

View File

@@ -0,0 +1,7 @@
canon_event=MESSAGE: named global=42.5000
canon_event=MESSAGE: named local=7.2500
canon_event=MESSAGE: exists global=1 local=1 missing=0
canon_event=MESSAGE: ini velocity=35
canon_event=MESSAGE: hal pin=1 signal=98.2500 param=-17
canon_event=MESSAGE: hal u32=123456789 s64=-9000000000 u64=9000000000
canon_event=MESSAGE: hal disconnected=12.5000 missing_exists=0

View File

@@ -0,0 +1,3 @@
canon_event=MESSAGE: numbered p1=12.5000 p2=15.5000 exists1=1 exists5602=0
canon_event=STRAIGHT_TRAVERSE line=6 x=2 y=3 z=4 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=MESSAGE: numbered pos x=2.0000 y=3.0000 z=4.0000

View File

@@ -0,0 +1,3 @@
STRAIGHT_TRAVERSE line=4 x=0 y=0 z=0
SET_FEED_RATE rate=100
STRAIGHT_FEED line=2 x=2 y=3 z=0

View File

@@ -0,0 +1,11 @@
canon_event=SELECT_TOOL tool=2
canon_event=MESSAGE: tool selected=2 selected_pocket=2
canon_event=STOP_SPINDLE_TURNING spindle=0
canon_event=CHANGE_TOOL
canon_event=MESSAGE: tool after_m6 current_pocket=2 current_tool=2
canon_event=USE_TOOL_LENGTH_OFFSET x=0 y=0 z=1.25 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=MESSAGE: tool g43 offset=1 x=0.0000 y=0.0000 z=1.2500
canon_event=USE_TOOL_LENGTH_OFFSET x=0 y=0 z=0 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=MESSAGE: tool g49 offset=0 x=0.0000 y=0.0000 z=0.0000
canon_event=CHANGE_TOOL_NUMBER pocket=0
canon_event=MESSAGE: tool after_m61 current_pocket=0 current_tool=2

View File

@@ -0,0 +1,4 @@
execute_line_1=0
execute_line_2=5
error_text=Radius to end of arc differs from radius to start
absent=canon_event=ARC_FEED

View File

@@ -0,0 +1,4 @@
execute_line_1=0
execute_line_2=5
error_text=Zero-radius arc
absent=canon_event=ARC_FEED

View File

@@ -0,0 +1,2 @@
execute_line_1=5
error_text=Cannot assign to read-only parameter #<_feed>

View File

@@ -0,0 +1,2 @@
execute_line_1=5
error_text=Parameter is readonly

View File

@@ -0,0 +1,3 @@
execute_line_1=5
error_text=Requested tool 999 not found in the tool table
absent=canon_event=USE_TOOL_LENGTH_OFFSET

View File

@@ -0,0 +1,2 @@
execute_line_1=5
error_text=Requested tool 999 not found in the tool table

View 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

View File

@@ -0,0 +1,8 @@
S1200 M3
M5
S900 M4
M5
M7
M8
M9
G4 P0.25

View 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>)

View 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)

View 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]

View 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>)

View File

@@ -0,0 +1,2 @@
G90 G17 G0 X0 Y0
G2 X1 Y1 I0.2 J0 F60

View File

@@ -0,0 +1,2 @@
G90 G17 G0 X0 Y0
G2 X1 Y0 I0 J0 F60

View File

@@ -0,0 +1 @@
#<_feed> = 1

View File

@@ -0,0 +1 @@
#5400 = 1

View File

@@ -0,0 +1 @@
G43 H999

View File

@@ -0,0 +1 @@
T999

View File

@@ -0,0 +1,3 @@
[TRAJ]
LINEAR_UNITS = mm
MAX_LINEAR_VELOCITY = 35