Signal for safety control watchdog

More
9 years 7 months ago #90453 by Todd Zuercher
Yes, there should be mb2hal pins.

Can you see any mb2hal pins with Halshow while Linuxcnc is running?

Are there any clues in the debugging info when you start Linuxcnc from the terminal? Maybe you should try turning on the debugging in mb2hal?

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

More
9 years 7 months ago #90494 by Chre9
I put DEBUG = 3 in all transactions, still no pins in terminal or halshow.
When starting from the terminal I can see some lines concerning the debuggingfor a short time, but after the starting there is only the pin list to see. Also no error messages..

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

More
9 years 7 months ago #90505 by Chre9
I found a mistake: the loadusr function included "-w" instead of "-W".
If I start LinuxCNC now I get the following Debug file information:

mb2hal parse_transaction_section ERR: [TRANSACTION_00] [MB_TX_CODE] [fctn_02_read_discrete_inputs] out of range
mb2hal parse_ini_file ERR: parse_transaction_section 0 failed
mb2hal main ERR: Unable to parse INI file [MB2HAL.ini]
./Heller_CNC_XY.hal:19: mb2hal exited without becoming ready
13594
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components


So there seems to be a problem with the range of values, right?
The input values of the PNOZmulti device are 0...127and output are 8192...8319.
Any ideas?

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

More
9 years 7 months ago #90508 by Todd Zuercher
I was typing a reply to your last message (that you deleted I think) suggesting that very thing (about the W), and it disappeared when I clicked submit.

Unfortunately I have no experience with using mb2hal using TCPIP, my machine uses RTU.

First thing i would try is to take out all the spaces around the "=" in the mb2hal.ini file (I'm not sure it will work with those extra spaces.)

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

More
9 years 7 months ago #90510 by Chre9
Yes, I deleted it because I wanted to upload the correct version.

I just found another typo: fctn instead of fnct :dry:
Now I find all the HAL-Pins, so that was the solution.
This is the kind of stupid mistakes, that cost you hours of thinking.. Wow

Thanks for your advice!

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

More
9 years 7 months ago #90552 by Chre9
Is it right, that my read-discrete-input hal pins are considered outputs and the write-multiple-coils is considered input in halshow?
Seems wrong to me, but I don't know how to change this.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum