One of the more interesting commands is the EMC_TASK_PLAN_INIT it executes and then sets additional values from the sub commands it calls up from a list.
The command that I manually issued to port 5005 was:
0000 0001 0000 0002 0000 0001 0000 0004 0000 0004 0000 01F5 0000 0000 0000 0000
(time=1566596833.133562,pid=8641): Socket opened by host with IP address 10.10.20.1.
(time=1566596841.388166,pid=8641): read 20 bytes from 4
(time=1566596841.388190,pid=8641): TCPSVR request received: fd = 4, serial_number=1, request_type=2, buffer_number=1
(time=1566596841.388204,pid=8641): read 4 bytes from 4
(time=1566596841.388222,pid=8641): rcs_sem_post(2457600) called.
(time=1566596841.388253,pid=8641): wrote 12 bytes to 4
Issuing EMC_TASK_PLAN_INIT -- ( +515,+20, +8,)
NML_INTERP_LIST(0x55ebcd591d20)::append(nml_msg_ptr{size=32,type=EMC_TRAJ_SET_TERM_COND}) : list_size=1, line_number=0
NML_INTERP_LIST(0x55ebcd591d20)::append(nml_msg_ptr{size=96,type=EMC_TRAJ_SET_G5X}) : list_size=2, line_number=0
NML_INTERP_LIST(0x55ebcd591d20)::append(nml_msg_ptr{size=96,type=EMC_TRAJ_SET_G92}) : list_size=3, line_number=0
NML_INTERP_LIST(0x55ebcd591d20)::append(nml_msg_ptr{size=32,type=EMC_TRAJ_SET_ROTATION}) : list_size=4, line_number=0
NML_INTERP_LIST(0x55ebcd591d20)::append(nml_msg_ptr{size=40,type=EMC_TRAJ_SET_SPINDLESYNC}) : list_size=5, line_number=0
NML_INTERP_LIST(0x55ebcd591d20)::append(nml_msg_ptr{size=32,type=EMC_SPINDLE_OFF}) : list_size=6, line_number=0
NML_INTERP_LIST(0x55ebcd591d20)::append(nml_msg_ptr{size=32,type=EMC_SPINDLE_OFF}) : list_size=7, line_number=0
NML_INTERP_LIST(0x55ebcd591d20)::append(nml_msg_ptr{size=24,type=EMC_COOLANT_MIST_OFF}) : list_size=8, line_number=0
NML_INTERP_LIST(0x55ebcd591d20)::append(nml_msg_ptr{size=24,type=EMC_COOLANT_FLOOD_OFF}) : list_size=9, line_number=0
NML_INTERP_LIST(0x55ebcd591d20)::append(nml_msg_ptr{size=96,type=EMC_TRAJ_SET_OFFSET}) : list_size=10, line_number=0
NML_INTERP_LIST(0x55ebcd591d20)::append(nml_msg_ptr{size=32,type=EMC_TRAJ_SET_TERM_COND}) : list_size=11, line_number=0
emcTaskPlanInit() returned 0
NML_INTERP_LIST(0x55ebcd591d20)::get(): {size=32, type=EMC_TRAJ_SET_TERM_COND}, list_size=10
emcTaskPlanLevel() returned 0
task: main loop took 0.068981 seconds
Issuing EMC_TRAJ_SET_TERM_COND -- ( +222,+32, +0, +2,0.000000,)
NML_INTERP_LIST(0x55ebcd591d20)::get(): {size=96, type=EMC_TRAJ_SET_G5X}, list_size=9
emcTaskPlanLevel() returned 0
Issuing EMC_TRAJ_SET_G5X -- ( +224,+96, +0, +1,-0.000000,0.000303,-1.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,)
NML_INTERP_LIST(0x55ebcd591d20)::get(): {size=96, type=EMC_TRAJ_SET_G92}, list_size=8
emcTaskPlanLevel() returned 0
Issuing EMC_TRAJ_SET_G92 -- ( +227,+96, +0,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,)
NML_INTERP_LIST(0x55ebcd591d20)::get(): {size=32, type=EMC_TRAJ_SET_ROTATION}, list_size=7
emcTaskPlanLevel() returned 0
Issuing EMC_TRAJ_SET_ROTATION -- ( +226,+32, +0,0.000000,)
NML_INTERP_LIST(0x55ebcd591d20)::get(): {size=40, type=EMC_TRAJ_SET_SPINDLESYNC}, list_size=6
emcTaskPlanLevel() returned 0
Issuing EMC_TRAJ_SET_SPINDLESYNC -- ( +232,+40, +0,0.000000,\000,)
NML_INTERP_LIST(0x55ebcd591d20)::get(): {size=32, type=EMC_SPINDLE_OFF}, list_size=5
emcTaskPlanLevel() returned 0
Issuing EMC_SPINDLE_OFF -- ( +1305,+32, +0,)
NML_INTERP_LIST(0x55ebcd591d20)::get(): {size=32, type=EMC_SPINDLE_OFF}, list_size=4
emcTaskPlanLevel() returned 0
Issuing EMC_SPINDLE_OFF -- ( +1305,+32, +0,)
NML_INTERP_LIST(0x55ebcd591d20)::get(): {size=24, type=EMC_COOLANT_MIST_OFF}, list_size=3
emcTaskPlanLevel() returned 0
Issuing EMC_COOLANT_MIST_OFF -- ( +1405,+24, +0,)
NML_INTERP_LIST(0x55ebcd591d20)::get(): {size=24, type=EMC_COOLANT_FLOOD_OFF}, list_size=2
emcTaskPlanLevel() returned 0
Issuing EMC_COOLANT_FLOOD_OFF -- ( +1407,+24, +0,)
NML_INTERP_LIST(0x55ebcd591d20)::get(): {size=96, type=EMC_TRAJ_SET_OFFSET}, list_size=1
emcTaskPlanLevel() returned 0
Issuing EMC_TRAJ_SET_OFFSET -- ( +223,+96, +0,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,)
NML_INTERP_LIST(0x55ebcd591d20)::get(): {size=32, type=EMC_TRAJ_SET_TERM_COND}, list_size=0
emcTaskPlanLevel() returned 0
Issuing EMC_TRAJ_SET_TERM_COND -- ( +222,+32, +0, +2,0.005000,)
task: main loop took 0.003233 seconds