5i23 + 7i48 - No analog output
- rebelx
- Offline
- Junior Member
Less
More
- Posts: 32
- Thank you received: 5
25 Feb 2019 19:56 #127117
by rebelx
5i23 + 7i48 - No analog output was created by rebelx
I am retrofitting a machine with a Mesa 5i23, 7i48 (6 channel analog servo interface) and 7i37 (8/16 isolated I/O card).
I am using the svss6_8 firmware from here, which should be compatible with my selection of cards: freeby.mesanet.com/5i23_7i48.zip , configured via Pncconf.
So far so good. Encoders work fine, inputs via the 7i37 work fine and in LinuxCNC (AXIS GUI) things like emergency stops and limit switches work correctly and I can enable the machine. However, whatever I try, I get no analog output to the servo drives. In the AXIS GUI the virtual spindle moves when I use the cursor keys and the pwmgen signals seem okay, but again, no analog output.
Can somebody help me to fix this? I am pretty sure I must be missing a very simple thing, but I fail to see it.
Thanks!
I am using the svss6_8 firmware from here, which should be compatible with my selection of cards: freeby.mesanet.com/5i23_7i48.zip , configured via Pncconf.
So far so good. Encoders work fine, inputs via the 7i37 work fine and in LinuxCNC (AXIS GUI) things like emergency stops and limit switches work correctly and I can enable the machine. However, whatever I try, I get no analog output to the servo drives. In the AXIS GUI the virtual spindle moves when I use the cursor keys and the pwmgen signals seem okay, but again, no analog output.
Can somebody help me to fix this? I am pretty sure I must be missing a very simple thing, but I fail to see it.
Thanks!
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17860
- Thank you received: 4775
25 Feb 2019 20:23 #127118
by PCW
Replied by PCW on topic 5i23 + 7i48 - No analog output
This likely means that one of the analog enable pins on the 7I48 is high
I would read the state of GPIO0 ( /ENA0 ) and GPIO23 ( /ENA1 )
in hal and on the hardware. On some firmware these are just GPIO bits
so these need to be set to output mode and set low in your hal file
I would read the state of GPIO0 ( /ENA0 ) and GPIO23 ( /ENA1 )
in hal and on the hardware. On some firmware these are just GPIO bits
so these need to be set to output mode and set low in your hal file
Please Log in or Create an account to join the conversation.
- rebelx
- Offline
- Junior Member
Less
More
- Posts: 32
- Thank you received: 5
25 Feb 2019 23:07 - 25 Feb 2019 23:12 #127131
by rebelx
Replied by rebelx on topic 5i23 + 7i48 - No analog output
Thanks Peter. I was thinking along the same line, but couldn't exactly figure out how to approach/set /ENA0 and /ENA1. Perhaps I have been staring at it too long I will check it out tomorrow and let you know if this resolves the issue.
Best regards,
Eric
Best regards,
Eric
Last edit: 25 Feb 2019 23:12 by rebelx.
Please Log in or Create an account to join the conversation.
- rebelx
- Offline
- Junior Member
Less
More
- Posts: 32
- Thank you received: 5
26 Feb 2019 11:50 - 26 Feb 2019 14:57 #127152
by rebelx
Replied by rebelx on topic 5i23 + 7i48 - No analog output
In Pncconf while doing an Open Loop test and enable the amp, I see that both GPIO0 (/ENA0) and GPIO23 (/ENA1) both go low, so that should be okay. (I measured directly on the 5i23 P2 connector, pins 1 and 47) However, there is no analog out signal from the 7i48.
Last edit: 26 Feb 2019 14:57 by rebelx.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17860
- Thank you received: 4775
26 Feb 2019 14:57 - 26 Feb 2019 14:58 #127162
by PCW
Replied by PCW on topic 5i23 + 7i48 - No analog output
Its doubtful that LinuxCNC is crashing, it may however abort of there's an error in the hal file. Its helpful to run LinuxCNC from the command line to see what the complaint is.
Depending on the exact firmware used, GPIO 000 and GPIO 023 may be "owned" by the PWM generator in which case they will not be available as GPIO outputs and your commands to set them to output mode will cause an error (and LinuxCNC will exit).
The easiest way to tell is to run this command:
halcmd show pin *gpio*
When linuxcnc is running (comment out your latest changes)
If the gpio 000 and gpio 023 'out' pins are present, you can set them to output mode and control them, if one or both are _not_ present as gpio output pins, this means they are 'owned' by the pwmgen and controlled by the pwmgens enable pin (PWM 0 I think)
Depending on the exact firmware used, GPIO 000 and GPIO 023 may be "owned" by the PWM generator in which case they will not be available as GPIO outputs and your commands to set them to output mode will cause an error (and LinuxCNC will exit).
The easiest way to tell is to run this command:
halcmd show pin *gpio*
When linuxcnc is running (comment out your latest changes)
If the gpio 000 and gpio 023 'out' pins are present, you can set them to output mode and control them, if one or both are _not_ present as gpio output pins, this means they are 'owned' by the pwmgen and controlled by the pwmgens enable pin (PWM 0 I think)
Last edit: 26 Feb 2019 14:58 by PCW.
Please Log in or Create an account to join the conversation.
- rebelx
- Offline
- Junior Member
Less
More
- Posts: 32
- Thank you received: 5
26 Feb 2019 16:28 #127170
by rebelx
Replied by rebelx on topic 5i23 + 7i48 - No analog output
I think you replied to my previous comment, that I deleted/changed because I measured the wrong pins. I apologize for that.
Right now I do see that GPIO 000 and GPIO 023 go low, yet no analog output. I will see if I can measure the inputs of the opams on the 7i48 to see what happens with the PWM signals.
Right now I do see that GPIO 000 and GPIO 023 go low, yet no analog output. I will see if I can measure the inputs of the opams on the 7i48 to see what happens with the PWM signals.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17860
- Thank you received: 4775
26 Feb 2019 17:12 #127173
by PCW
Replied by PCW on topic 5i23 + 7i48 - No analog output
Can you post your hal/ini files?
Please Log in or Create an account to join the conversation.
- rebelx
- Offline
- Junior Member
Less
More
- Posts: 32
- Thank you received: 5
26 Feb 2019 18:45 #127177
by rebelx
Replied by rebelx on topic 5i23 + 7i48 - No analog output
I think I fixed the problem. There was nothing wrong with the configuration. It was a faulty ribbon cable between the 5i23 and 7i48 ! Sorry !!!!
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.084 seconds