Basic Pendant with 7i73

More
29 Apr 2017 10:24 #92333 by rotwang
rotwang created the topic: Basic Pendant with 7i73
My chance at last to contribute something back. These are my HAL files for a 7i73 with a 4x20 display and 4x8 keypad.
Connections as per 7i73 manual, except I connected the -ve pin of the backlight to OD0 so I can turn it on and off.
These files are just a beginning, I'm sure they can be improved and extended, but I couldn't find any useful information about configuring and using a 7i73, so here they are, make of them what you will.

First the custom.hal file

File Attachment:

File Name: custom.hal
File Size:1 KB


next the custom_postgui.hal

File Attachment:

File Name: custom_postgui.hal
File Size:0 KB


and finally the shutdown.hal file

File Attachment:

File Name: shutdown.hal
File Size:0 KB


The logic is as follows
when linuxcnc starts the lcd shows a banner display with the backlight off
once the gui has established, switch to a basic DRO screen, with backlight on
at normal shutdown, switch back to banner screen and turn backlight off

If you can improve it, and you probably can, do it and post back here.
Roger
Attachments:
The following user(s) said Thank You: tommylight
More
30 Apr 2017 22:24 #92388 by cmorley
cmorley replied the topic: Basic Pendant with 7i73
Could you post a pic of your display and mention the display and keyboard you used (and maybe where you got it?)
Thanks.

Chris M
More
01 May 2017 12:44 #92439 by rotwang
rotwang replied the topic: Basic Pendant with 7i73
The display is a bog-standard 20x4 LCD, Ebay special from China (I bought a bunch of them a while ago while I could still get black-on-yellow/green, since I hate white-on-blue) and the keyboard out of the scrap box is a 4x4 matrix made by Digitran of Pasadena.
Neither of them is anything special, they just happened to be to hand.
The only identifier on the display is "QC2004A", no makers name or any other brand. Its quite large, the PCB is 4" by 2 1/4" and the actual display area is 3" by 1".

The contrast is fine just left as 7i73 default.
Really, all the smarts are in the 7i73.
I'd be ashamed to show the inside of the box, its just a rat-nest of dupont female-female jumper cables wired straight out of the 7i73 manual.
Cut one end off a straight-thru cat5 cable, connect the ends to TB3 on the 7i76 as per the 7i76 manual, set the 7i73 jumpers for display and keypad and you're up and running slick as goose grease on a china doorknob.
I'd hazard a guess that ANY 20x4 display would work and the worst you'd have to do is fit a contrast adjustment pot instead of using the VEE pin on the 7i73. Likewise the keypad, practically and type, membrane or click-dome switch should work, even discrete pushbuttons.
I did look once at using an arduino, but having now got the 7i73 I'd never look at using one again. To anything like match the 7i73 I'd need to use an arduino-mega (to get enough gpio pins) and even then I'd need to throw out the standard arduino libraries for display and keypad because they are so SLOOOOOOW, and write my own routines. I've done this once for a PIC18F and I never want to see that code again.

Usual disclaimer - My only connection to Mesa is as a customer, having said that, if you're looking to fit a pendant and you're using Mesa cards then definitely look at the 7i73.
Also - big shoutout to BigJohnT of MesaUs (you might of heard of him on these boards once in a while) who sells mesa boards at sensible prices and is happy to ship to the UK where I am based.
Hope this helps a little, I've posted some hal files in the hal setups which show the hal connections.
Roger
Attachments:
More
01 May 2017 12:51 #92440 by rodw
rodw replied the topic: Basic Pendant with 7i73
Have you played with adding an encoder wheel for jogging? Thats one thing holding me back..
More
01 May 2017 13:08 #92443 by rotwang
rotwang replied the topic: Basic Pendant with 7i73
I'll try that tonight, shouldn't be any problems beyond finding the right options.
Roger
More
01 May 2017 13:50 #92446 by rotwang
rotwang replied the topic: Basic Pendant with 7i73
Turns out using encoders is easy.
First in pncconf make sure 7i73 shows up and is set to mode1, then goto analog/encoders tab of 7i73 setup and make sure encoders and analog show.
Then connect encoder phase A and B to pins IN8 and IN9 on 7i73/J2 (that's pin numbers 14 and 15), I'm using an encoder with mechanical switches, so I need to connect the centre leg to ground as IN8 and IN9 seem to have pull-ups. If you were using a powered encoder you'd pick up +5v and GND on J2 and connect the A/B phase outputs as above.
Now when you fire up linuxcnc and call up the hal configuration you should find (deep breath)
under pins - hm2_5i25.0.7i73.0.1.enc0.count and friends, and putting a watch on count should show the encoder count varying as you twiddle the knob.
Connecting the hal pins to get jogging motion is left as an exercise for the reader, as they say.
In connection with jogging, axisui doesn't appear to export the value of jogspeed, although it exports feed- rapid- and spindle-override. Or am I just looking in the wrong place?
Roger
More
01 May 2017 20:42 #92478 by rodw
rodw replied the topic: Basic Pendant with 7i73
Thanks, can the 7i73 accept an MPG wheel that only has single sided inputs (+5v, -5v, A+, A-)?

This is how I got a MPG going on a 7i763 using its MPG input. It should get you going with using it.

forum.linuxcnc.org/show-your-stuff/32029...build?start=20#85279
More
02 May 2017 10:32 #92505 by rotwang
rotwang replied the topic: Basic Pendant with 7i73
I'm going to assume you meant (+5v,GND,A+,B+) so yes that's the only sort of encoder that the 7i73 accepts. I guess the logic is that any encoder would be physically close to the 7i73 (in the same enclosure even), and therefore doesn't need differential signaling. Also as it's probably going to be used to adjust values up/down it doesn't need index either.
Roger
The following user(s) said Thank You: rodw
Time to create page: 0.234 seconds
Powered by Kunena Forum