Search Results (Searched for: )
- ihavenofish
- ihavenofish
29 Oct 2025 20:46
Replied by ihavenofish on topic New ethercat / probe basic control for minimonster
New ethercat / probe basic control for minimonster
Category: CNC Machines
alright on the same machine now
attached the ini and hal and here is the debug info
attached the ini and hal and here is the debug info
Found file(REL): ./cia402.hal
note: MAXV max: 700.000 units/sec 42000.000 units/min
note: LJOG max: 700.000 units/sec 42000.000 units/min
note: LJOG default: 20.000 units/sec 1200.000 units/min
note: jog_order='XYZ'
note: jog_invert=set()
custom.hal:9: Pin 'mb2hal.01.spindle_speed_set' does not exist
mb2hal parse_common_section DEBUG: [MB2HAL_INIT] [INIT_DEBUG] [6]
mb2hal parse_common_section DEBUG: [MB2HAL_INIT] [VERSION] [1001]
mb2hal parse_common_section DEBUG: [MB2HAL_INIT] [HAL_MODULE_NAME] [mb2hal]
mb2hal parse_common_section DEBUG: [MB2HAL_INIT] [SLOWDOWN] [0.000]
mb2hal parse_common_section DEBUG: [MB2HAL_INIT] [TOTAL_TRANSACTIONS] [3]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_00] [LINK_TYPE] [serial] [0]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_00] [SERIAL_PORT] [/dev/ttyUSB0]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_00] [SERIAL_BAUD] [9600]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_00] [SERIAL_BITS] [8]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_00] [SERIAL_PARITY] [none]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_00] [SERIAL_STOP] [1]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_00] [SERIAL_DELAY_MS] [10]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_00] [MB_SLAVE_ID] [1]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_00] [FIRST_ELEMENT] [2048]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_00] [PIN_NAMES] [spindle_start_stop]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_00] [NELEMENTS] [1]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_00] [MAX_UPDATE_RATE] [0.000]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_00] [MB_RESPONSE_TIMEOUT_MS] [400]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_00] [MB_BYTE_TIMEOUT_MS] [500]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_00] [DEBUG] [3]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_00] [MB_TX_CODE] [fnct_06_write_single_register] [4]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_00] [HAL_TX_NAME] [00]
mb2hal parse_ini_file OK: parse_transaction_section 0 OK
mb2hal parse_transaction_section DEBUG: [TRANSACTION_01] [LINK_TYPE] [serial] [0]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_01] [SERIAL_PORT] [/dev/ttyUSB0]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_01] [SERIAL_BAUD] [9600]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_01] [SERIAL_BITS] [8]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_01] [SERIAL_PARITY] [none]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_01] [SERIAL_STOP] [1]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_01] [SERIAL_DELAY_MS] [10]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_01] [MB_SLAVE_ID] [1]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_01] [FIRST_ELEMENT] [2049]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_01] [PIN_NAMES] [spindle_speed_set]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_01] [NELEMENTS] [1]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_01] [MAX_UPDATE_RATE] [0.000]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_01] [MB_RESPONSE_TIMEOUT_MS] [400]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_01] [MB_BYTE_TIMEOUT_MS] [500]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_01] [DEBUG] [3]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_01] [MB_TX_CODE] [fnct_06_write_single_register] [4]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_01] [HAL_TX_NAME] [01]
mb2hal parse_ini_file OK: parse_transaction_section 1 OK
mb2hal parse_transaction_section DEBUG: [TRANSACTION_02] [LINK_TYPE] [serial] [0]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_02] [SERIAL_PORT] [/dev/ttyUSB0]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_02] [SERIAL_BAUD] [9600]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_02] [SERIAL_BITS] [8]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_02] [SERIAL_PARITY] [none]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_02] [SERIAL_STOP] [1]
mb2hal parse_serial_subsection DEBUG: [TRANSACTION_02] [SERIAL_DELAY_MS] [10]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_02] [MB_SLAVE_ID] [1]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_02] [FIRST_ELEMENT] [2100]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_02] [PIN_NAMES] [spindle_feedback]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_02] [NELEMENTS] [1]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_02] [MAX_UPDATE_RATE] [0.000]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_02] [MB_RESPONSE_TIMEOUT_MS] [400]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_02] [MB_BYTE_TIMEOUT_MS] [500]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_02] [DEBUG] [3]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_02] [MB_TX_CODE] [fnct_03_read_holding_registers] [2]
mb2hal parse_transaction_section DEBUG: [TRANSACTION_02] [HAL_TX_NAME] [02]
mb2hal parse_ini_file OK: parse_transaction_section 2 OK
mb2hal main OK: parse_ini_file done OK
mb2hal init_mb_links DEBUG: LINK 0 (RTU) link_type[0] device[/dev/ttyUSB0] baud[9600] data[8] parity[N] stop[1] fd[-1]
mb2hal main OK: init_gbl.mb_link done OK
mb2hal init_mb_tx DEBUG: MB_TX 0 lk_n[0] tx_n[0] cfg_dbg[3] lk_dbg[1] t_inc[0.000] nxt_t[0.000]
mb2hal init_mb_tx DEBUG: MB_TX 1 lk_n[0] tx_n[1] cfg_dbg[3] lk_dbg[1] t_inc[0.000] nxt_t[0.000]
mb2hal init_mb_tx DEBUG: MB_TX 2 lk_n[0] tx_n[2] cfg_dbg[3] lk_dbg[1] t_inc[0.000] nxt_t[0.000]
mb2hal main OK: init_gbl.mb_tx done OK
mb2hal create_each_mb_tx_hal_pins DEBUG: mb_tx_num [0] pin_name [mb2hal.00.num_errors]
mb2hal create_each_mb_tx_hal_pins DEBUG: mb_tx_num [0] pin_name [mb2hal.00.spindle_start_stop]
mb2hal create_each_mb_tx_hal_pins DEBUG: mb_tx_num [1] pin_name [mb2hal.01.num_errors]
mb2hal create_each_mb_tx_hal_pins DEBUG: mb_tx_num [1] pin_name [mb2hal.01.spindle_speed_set]
mb2hal create_each_mb_tx_hal_pins DEBUG: mb_tx_num [2] pin_name [mb2hal.02.num_errors]
mb2hal create_each_mb_tx_hal_pins DEBUG: mb_tx_num [2] pin_name [mb2hal.02.spindle_feedback]
mb2hal main OK: HAL components created OK
mb2hal main OK: Link thread loop and logic 0 created OK
mb2hal main OK: mb2hal is running
mb2hal fnct_06_write_single_register DEBUG: mb_tx[0] mb_links[0] slave[1] fd[6] 1st_addr[2048] nelem[1]
[01][06][08][00][00][00][8B][AA]
Waiting for a confirmation...
<01><06><08><00><00><00><8B><AA>
mb2hal link_loop_and_logic OK: mb_tx_num[0] mb_links[0] thread[0] fd[6] transaction OK, update_HZ[0.000]
mb2hal link_loop_and_logic DEBUG: mb_tx_num[0] mb_links[0] thread[0] fd[6] SERIAL_DELAY_MS activated [10]
mb2hal fnct_06_write_single_register DEBUG: mb_tx[1] mb_links[0] slave[1] fd[6] 1st_addr[2049] nelem[1]
[01][06][08][01][00][00][DA][6A]
Waiting for a confirmation...
<01><06><08><01><00><00><DA><6A>
mb2hal link_loop_and_logic OK: mb_tx_num[1] mb_links[0] thread[0] fd[6] transaction OK, update_HZ[0.000]
mb2hal link_loop_and_logic DEBUG: mb_tx_num[1] mb_links[0] thread[0] fd[6] SERIAL_DELAY_MS activated [10]
mb2hal fnct_03_read_holding_registers DEBUG: mb_tx[2] mb_links[0] slave[1] fd[6] 1st_addr[2100] nelem[1]
[01][03][08][34][00][01][C7][A4]
Waiting for a confirmation...
Shutting down and cleaning up LinuxCNC...
<01><03><02><00><00><B8><44>
mb2hal link_loop_and_logic OK: mb_tx_num[2] mb_links[0] thread[0] fd[6] transaction OK, update_HZ[0.000]
mb2hal link_loop_and_logic DEBUG: mb_tx_num[2] mb_links[0] thread[0] fd[6] SERIAL_DELAY_MS activated [10]
mb2hal fnct_06_write_single_register DEBUG: mb_tx[0] mb_links[0] slave[1] fd[6] 1st_addr[2048] nelem[1]
[01][06][08][00][00][00][8B][AA]
Waiting for a confirmation...
<01><06><08><00><00><00><8B><AA>
mb2hal link_loop_and_logic OK: mb_tx_num[0] mb_links[0] thread[0] fd[6] transaction OK, update_HZ[6.947]
mb2hal link_loop_and_logic DEBUG: mb_tx_num[0] mb_links[0] thread[0] fd[6] SERIAL_DELAY_MS activated [10]
- PCW

29 Oct 2025 20:39
Replied by PCW on topic MESA 7I92 programming
MESA 7I92 programming
Category: Driver Boards
You would need to specify which pins are:
step0/dir0 step1/dir1 etc encoder a,b,z PWM
step0/dir0 step1/dir1 etc encoder a,b,z PWM
- ihavenofish
- ihavenofish
29 Oct 2025 20:37 - 29 Oct 2025 20:39
Replied by ihavenofish on topic New ethercat / probe basic control for minimonster
New ethercat / probe basic control for minimonster
Category: CNC Machines
yes. pin does not exist on yours too. (i changed the names of course to match). it post this before the parsing of the ini... which seems wrong. it should parse first right? I think it was before.
not typing from the same machine so i cant copy paste, but im using your hal snippet but with my names (mb2hal.00.start_stop) etc.
not typing from the same machine so i cant copy paste, but im using your hal snippet but with my names (mb2hal.00.start_stop) etc.
# Load mb2hal for modbus operation of the sinusM vfd
loadusr -Wn sinusM mb2hal config=sinusM_spindle.ini
...
# Set max limit rpm for spindle
#
net spindle-max-freq sinusM.05.read-max-freq.float spindlemax.max # Max frequency(rps) for motor
net spindle-speed-scale spindle.0.speed-out-rps-abs sinusM.01.set-freq # Just the principle
net spindle-vel-positive mux4.0.sel0 abs.spindle-speed.sign
net spindle-enable mux4.0.sel1
net spindle-cmd-out mux4.0.out sinusM.04.run-command # Stop/fwd/rev
Time to create page: 0.658 seconds