Thank you
I did try it and added to my tormach_lathe_sim.hal
loadusr -W mb2hal config=mb2hal.ini
with jsut a default sample config
Immediately got a error. checking the log I say mb2hal not found
went to the sources directory and cp mb2hal ~/tmc/bin
Rebooted, quicker actually
Came up ok this time except excessive logging so tweaked the debug settings in the sample (doesn't actually have anything it's connecting to at this point)
Code:
Loaded HAL Components:
ID Type Name PID State
30 User halcmd2687 2687 ready
34 RT milljogtranslator ready
33 User shuttlexpress4 2682 ready
31 RT time ready
28 User tormach 2672 ready
26 User inihal 2671 ready
25 RT near ready
24 RT scale ready
23 RT lowpass ready
22 RT limit2 ready
21 RT sim_encoder ready
20 RT encoder ready
>> 19 User mb2hal 2657 ready
17 User usbio 2656 ready
15 RT not ready
14 RT tormachltc ready
13 RT pwmgen ready
12 RT abs ready
11 RT estop_latch ready
10 RT stepgen ready
9 RT motmod ready
8 RT trivkins ready
7 User halui 2644 ready
5 User iocontrol 2642 ready
and I can see the hal variables showing up
Code:
19 float OUT 0 mb2hal.XDrive01.00.float
19 s32 OUT 0 mb2hal.XDrive01.00.int
19 float OUT 0 mb2hal.XDrive01.01.float
19 s32 OUT 0 mb2hal.XDrive01.01.int
19 u32 OUT 0x00000000 mb2hal.XDrive01.num_errors
now to make it work
I do want to write a custom VFD Driver for the Teco EV101 but figure using mb2hal would be quickest way to get a spindle going.
also have some Modbus Relays to use which for mb2hal should be simple to implement.