Hello everyone,
I am new to the forum and to linuxcnc. I am currently trying to connect with a Sinamics VFD using mb2hal.
My setup is a RaspberryPi 4 with the "official" linuxcnc raspibian build with USB to RS485 adapter. This is connected to the VDF using a twisted pair and GND, and all terminating resistors, etc... are connected as recommended by the Operating instructions (attached). I scoped the signals, double, triple checked the parameters set in the VFD. I am 90% sure the communication setup in hardware is sane.
I wrote a very simple .ini file and .hal file to test the communication (attached). The .ini file was written based on the the Operating instructions for number of bits, partiy, etc...
I use
Code:
halcmd -f sinamics_mb2hal.hal
to start the hal component. Unfortunately, I get an error message after sending the first command (returned by the VFD if I am not mistaken):
Code:
ERROR Illegal data address
The complete output of the shell command is attached ("shell_mb2hal_output_short.txt"). This is with all debug levels set to 3.
From what I understand, the register addresses are wrongly defined...? I followed the table at page 142 of the Operating Instructions.
Is there something I am missing here?
Also, I noted an error at the beginning:
Code:
sinamics_mb2hal.hal:8: Pin 'mb2hal.00.00' does not exist
Which makes no sense to me as transaction 00 is defined and we read two registers. Note that this error is not present for mb2hal.00.01
Again, am I missing something?
I thank you in advance for your insight!
Cheers,
Flawa