MB2HAL error

More
6 years 10 months ago #152649 by DC67
MB2HAL error was created by DC67
Hello
Im trying to setup my VFD (Sourcetronic ST500) to use Modbus RS485. I'll found another User who got a Powtran that is the same VFD (only an other label) His VFD is working on Linuxcnc 2.7 so i want to rewrite his config for my Linuxcnc 2.8 to get it to work. My problem is if i want to load it in an terminal like "halcmd loadusr -Wn st500 mb2hal config=mb2hal.ini ,iam gettin an error. " unable to open INI file [mb2hal.ini]. All hal + config files are in same folder. What is my mistake?

File Attachment:

File Name: custom_postgui.hal
File Size:832 B

File Attachment:

File Name: custom.hal
File Size:5.3 KB

File Attachment:

File Name: machine.ini
File Size:6.3 KB

File Attachment:

File Name: mb2hal.ini
File Size:6.25 KB

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

More
6 years 10 months ago - 6 years 10 months ago #152749 by 0x2102
Replied by 0x2102 on topic MB2HAL error
Hello,

just to be sure...in the Terminal you went into your machine directory and then executed:

1.) halrun
2.) halcmd loadusr -Wn st500 mb2hal config=mb2hal.ini
Last edit: 6 years 10 months ago by 0x2102.
The following user(s) said Thank You: DC67

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

More
6 years 10 months ago - 6 years 10 months ago #152758 by DC67
Replied by DC67 on topic MB2HAL error
THIS SIR! Thank you. I tested the handwheel XHC-WH04b after compile with the console which worked. I did not notice that I had to switch to the config directory for the VFD because of the mb2hal.ini file to start the whole thing with the console.
Now i can see the error`s after using show pin.Now i hope i can sort this out to get this VFD work with Linuxcnc 2.8.
Last edit: 6 years 10 months ago by DC67.

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

More
6 years 10 months ago #152900 by DomCa
Replied by DomCa on topic MB2HAL error
Hi DC67,

I have the same VFD.
Could you report here on your progress and post updates files. I would be very interested!!

Big thanks
Domca

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

More
6 years 10 months ago #152942 by DC67
Replied by DC67 on topic MB2HAL error
Hi
I'm currently still stuck. I can display the VFD pins in the terminal, so linuxcnc can theoretically access the VFD. The problem is that when loading the mb2hal.ini the VFD hangs in a loop.The config and hal file are still being processed. Would be good if someone could give me a hint where I have to start or what I have to change for Linuxcnc 2.8

File Attachment:

File Name: custom_2019-12-20.hal
File Size:5.76 KB

File Attachment:

File Name: custom_pos...2-20.hal
File Size:869 B

File Attachment:

File Name: mb2hal_2019-12-20.ini
File Size:5.96 KB

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

More
6 years 10 months ago #152947 by Todd Zuercher
Replied by Todd Zuercher on topic MB2HAL error
Looks like a comunication error. It could be a physical problem, with the wiring or termination, a configuration problem with in the drive, or wrong settings in Linuxcnc. (really just about any thing.)

First thing to do is research you drive's manual to see how to configure it for modbus control (most drives require you to set several parameters to enable it), and find out what it's port settings are/should be (baud rate, slave id, parity bits, stop bits, data bits, register addresses...). Then you need to make sure that you've setup Mb2hal to use those exact same settings.

I found it was easier to test modbus communication with my drives using Classicladder and make sure they worked, before I set up Mb2hal. (In fact I probably would have preferred to just use CL if It could have handled twice as many transactions as it does.)
The following user(s) said Thank You: DC67

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

Time to create page: 0.067 seconds
Powered by Kunena Forum