7i92/G540/C10/THCAD

More
6 years 3 months ago - 6 years 3 months ago #174396 by PCW
Replied by PCW on topic 7i92/G540/C10/THCAD
Right if you need that encoder you cannot use the B pin for GPIO but the index pin can be used.

I assumed the the G540 could not use its inputs for the THCAD because they are likely too slow. In this case having an alternate encoder feature is harmless since it does not interfere with use of the encoder pins as GPIO inputs

How is the C10 board used? (I dont think there is G540/C10 firmware), but G540x2 firmware should work if just used
as GPIO+ encoder on the C10
Last edit: 6 years 3 months ago by PCW.

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

More
6 years 3 months ago #174397 by crowloy
Replied by crowloy on topic 7i92/G540/C10/THCAD
my understanding is that the G540 is not really a great device to use for the encoder due to slow response as well as incompatiblility with the G540 input voltage from what I've been reading. A good reason to switch it over to the C10 on P1. My G540 is an older unit bought when I made my first CNC back in 2015 or so. The C10 is a new style board with surface mount components

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

More
6 years 3 months ago - 6 years 3 months ago #174398 by PCW
Replied by PCW on topic 7i92/G540/C10/THCAD
That should be fine with g540x2 firmware as long as the C10 inputs can read to 32 KHz or so
Last edit: 6 years 3 months ago by PCW.
The following user(s) said Thank You: tommylight

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

More
6 years 3 months ago #174399 by tommylight
Replied by tommylight on topic 7i92/G540/C10/THCAD

PCW wrote: Right if you need that encoder you cannot use the B pin for GPIO but the index pin can be used.

I was not aware of that, thank you.

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

More
6 years 3 months ago - 6 years 3 months ago #174405 by crowloy
Replied by crowloy on topic 7i92/G540/C10/THCAD

crowloy wrote: my understanding is that the G540 is not really a great device to use for the encoder due to slow response as well as incompatiblility with the G540 input voltage from what I've been reading. A good reason to switch it over to the C10 on P1. My G540 is an older unit bought when I made my first CNC back in 2015 or so. The C10 is a new style board with surface mount components


So how do you specify an encoder on the P1 port? In your HAL you specify that you have an encoder, but the default is encoder 0 which happens to be on P2. I don't see an option on the loadrt hm2_eth to say you want an encoder on another port or for that matter in hostmot2.

The 7i92 is configured with G540x2 bitfile. The G540 bit is close enough to the C10 i/o that there is not much differance. Also one thing I've noticed and so far have not been able to change is that when linuxcnc is not running, the outputs on P1 seem to be high. I've got a cheap chinese relay board hooked up to the C10 on 2,3,4,5 pins. They are all active until linuxcnc runs and setp's the gpio to output. Only then do they turn off and control of them can occur.

File Attachment:

File Name: plasmag540.ini
File Size:10.34 KB

File Attachment:

File Name: plasmag540.hal
File Size:12.19 KB
Last edit: 6 years 3 months ago by crowloy.

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

More
6 years 3 months ago #174409 by PCW
Replied by PCW on topic 7i92/G540/C10/THCAD
To get access to the second encoder you set "num_encoders=2" in the
hm2_eth command line, the second encoder will be encoder 01

The 7I92 outputs are high at start-up (all pins are inputs at start-up and all inputs have pullup resistors) So its better to arrange for active low inputs if possible or have a common active low output that controls relay power or relay board +5V

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

Moderators: PCW, jmelson
Time to create page: 0.178 seconds
Powered by Kunena Forum