New ethercat / probe basic control for minimonster

More
1 year 3 days ago #337409 by ihavenofish
alright on the same machine now

attached the ini and hal and here is the debug info
Code:
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]

Please Log in or Create an account to join the conversation.

More
1 year 3 days ago #337410 by ihavenofish
aha
linuxcnc starts up wiith this and no errors

getting somewhere

Code:
#loadusr modbus loadusr mb2hal config="mb2hal_config.ini" loadrt mux4 names=mux4.spindle_mode addf mux4.spindle_mode servo-thread setp mux4.spindle_mode.in0 1     # Stop setp mux4.spindle_mode.in1 34    # Reverse setp mux4.spindle_mode.in2 1     # Stop setp mux4.spindle_mode.in3 18    # Forward net spindle-enable          mux4.spindle_mode.sel0                 net spindle-cw              mux4.spindle_mode.sel1                 net spindle-runmode            mux4.spindle_mode.out        mb2hal.00.spindle_start_stop.float

Please Log in or Create an account to join the conversation.

More
1 year 3 days ago #337413 by ihavenofish
So i can change those pins in halshow, but they do nothing. So I expect they are not the correct pins for start/stop freq etc. Sound right?

Hmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
Do I just go one by one and set them to 1/0 and see if the drive turns on? I guess that makes plausible sense. there only 54 of them

Please Log in or Create an account to join the conversation.

More
1 year 3 days ago #337414 by ihavenofish
all pins / registers in halshow
Code:
Component Pins: Owner   Type  Dir         Value  Name     57  float OUT             0  mb2hal.00.00.float     57  s32   OUT             0  mb2hal.00.00.int     57  float OUT             0  mb2hal.00.01.float     57  s32   OUT             0  mb2hal.00.01.int     57  float OUT             0  mb2hal.00.02.float     57  s32   OUT             0  mb2hal.00.02.int     57  float OUT           200  mb2hal.00.03.float     57  s32   OUT           200  mb2hal.00.03.int     57  float OUT           200  mb2hal.00.04.float     57  s32   OUT           200  mb2hal.00.04.int     57  float OUT           200  mb2hal.00.05.float     57  s32   OUT           200  mb2hal.00.05.int     57  float OUT           200  mb2hal.00.06.float     57  s32   OUT           200  mb2hal.00.06.int     57  float OUT           200  mb2hal.00.07.float     57  s32   OUT           200  mb2hal.00.07.int     57  float OUT           200  mb2hal.00.08.float     57  s32   OUT           200  mb2hal.00.08.int     57  float OUT             0  mb2hal.00.09.float     57  s32   OUT             0  mb2hal.00.09.int     57  u32   OUT    0x00000000  mb2hal.00.num_errors     57  float OUT             0  mb2hal.01.00.float     57  s32   OUT             0  mb2hal.01.00.int     57  float OUT             0  mb2hal.01.01.float     57  s32   OUT             0  mb2hal.01.01.int     57  float OUT             0  mb2hal.01.02.float     57  s32   OUT             0  mb2hal.01.02.int     57  float OUT             0  mb2hal.01.03.float     57  s32   OUT             0  mb2hal.01.03.int     57  float OUT             0  mb2hal.01.04.float     57  s32   OUT             0  mb2hal.01.04.int     57  float OUT             0  mb2hal.01.05.float     57  s32   OUT             0  mb2hal.01.05.int     57  float OUT             0  mb2hal.01.06.float     57  s32   OUT             0  mb2hal.01.06.int     57  float OUT             0  mb2hal.01.07.float     57  s32   OUT             0  mb2hal.01.07.int     57  float OUT             0  mb2hal.01.08.float     57  s32   OUT             0  mb2hal.01.08.int     57  float OUT          5000  mb2hal.01.09.float     57  s32   OUT          5000  mb2hal.01.09.int     57  u32   OUT    0x00000000  mb2hal.01.num_errors     57  float OUT            50  mb2hal.02.00.float     57  s32   OUT            50  mb2hal.02.00.int     57  float OUT             0  mb2hal.02.01.float     57  s32   OUT             0  mb2hal.02.01.int     57  float OUT             0  mb2hal.02.02.float     57  s32   OUT             0  mb2hal.02.02.int     57  float OUT             0  mb2hal.02.03.float     57  s32   OUT             0  mb2hal.02.03.int     57  float OUT             0  mb2hal.02.04.float     57  s32   OUT             0  mb2hal.02.04.int     57  float OUT             0  mb2hal.02.05.float     57  s32   OUT             0  mb2hal.02.05.int     57  float OUT             0  mb2hal.02.06.float     57  s32   OUT             0  mb2hal.02.06.int     57  float OUT             0  mb2hal.02.07.float     57  s32   OUT             0  mb2hal.02.07.int     57  float OUT          5000  mb2hal.02.08.float     57  s32   OUT          5000  mb2hal.02.08.int     57  float OUT            50  mb2hal.02.09.float     57  s32   OUT            50  mb2hal.02.09.int     57  u32   OUT    0x00000000  mb2hal.02.num_errors     57  float OUT          5000  mb2hal.03.00.float     57  s32   OUT          5000  mb2hal.03.00.int     57  float OUT             0  mb2hal.03.01.float     57  s32   OUT             0  mb2hal.03.01.int     57  float OUT          5000  mb2hal.03.02.float     57  s32   OUT          5000  mb2hal.03.02.int     57  float OUT             0  mb2hal.03.03.float     57  s32   OUT             0  mb2hal.03.03.int     57  float OUT            50  mb2hal.03.04.float     57  s32   OUT            50  mb2hal.03.04.int     57  float OUT            10  mb2hal.03.05.float     57  s32   OUT            10  mb2hal.03.05.int     57  float OUT          2000  mb2hal.03.06.float     57  s32   OUT          2000  mb2hal.03.06.int     57  float OUT             0  mb2hal.03.07.float     57  s32   OUT             0  mb2hal.03.07.int     57  float OUT          1000  mb2hal.03.08.float     57  s32   OUT          1000  mb2hal.03.08.int     57  float OUT             0  mb2hal.03.09.float     57  s32   OUT             0  mb2hal.03.09.int     57  u32   OUT    0x00000000  mb2hal.03.num_errors     57  float OUT          1000  mb2hal.04.00.float     57  s32   OUT          1000  mb2hal.04.00.int     57  float OUT             0  mb2hal.04.01.float     57  s32   OUT             0  mb2hal.04.01.int     57  float OUT             0  mb2hal.04.02.float     57  s32   OUT             0  mb2hal.04.02.int     57  float OUT             0  mb2hal.04.03.float     57  s32   OUT             0  mb2hal.04.03.int     57  float OUT             0  mb2hal.04.04.float     57  s32   OUT             0  mb2hal.04.04.int     57  float OUT           310  mb2hal.04.05.float     57  s32   OUT           310  mb2hal.04.05.int     57  float OUT           680  mb2hal.04.06.float     57  s32   OUT           680  mb2hal.04.06.int     57  float OUT            75  mb2hal.04.07.float     57  s32   OUT            75  mb2hal.04.07.int     57  float OUT             0  mb2hal.04.08.float     57  s32   OUT             0  mb2hal.04.08.int     57  float OUT             0  mb2hal.04.09.float     57  s32   OUT             0  mb2hal.04.09.int     57  u32   OUT    0x00000000  mb2hal.04.num_errors     57  float OUT             0  mb2hal.05.00.float     57  s32   OUT             0  mb2hal.05.00.int     57  float OUT             0  mb2hal.05.01.float     57  s32   OUT             0  mb2hal.05.01.int     57  float OUT             0  mb2hal.05.02.float     57  s32   OUT             0  mb2hal.05.02.int     57  float OUT             0  mb2hal.05.03.float     57  s32   OUT             0  mb2hal.05.03.int     57  float OUT          1000  mb2hal.05.04.float     57  s32   OUT          1000  mb2hal.05.04.int     57  u32   OUT    0x00000000  mb2hal.05.num_errors

Please Log in or Create an account to join the conversation.

More
1 year 3 days ago #337417 by Hakan
There is no documentation of registers?
Almost impossible without. 

Please Log in or Create an account to join the conversation.

More
1 year 3 days ago #337418 by ihavenofish
As I keep poking, I'm finding there are registers now at 8192 range, but they cant be written? 8192 has a value of 6. 8191/ 8193 etc at 0.

Hm

Please Log in or Create an account to join the conversation.

Time to create page: 0.120 seconds
Powered by Kunena Forum