7i73 Pendent Control

More
04 Sep 2012 22:26 #23895 by PCW
Replied by PCW on topic Re:7i73 Pendent Control
if they are just simple pushbuttons and MPGs its should be trivial as these will show up as HAL pins,

Heres a list of 7I73 pins: (In a mode with LCD enabled but no keypad)

10 float OUT 0.02588235 hm2_5i25.0.7i73.0.2.analogin0 -- four 0 -> 3.3V analog inputs
10 float OUT 0.03882353 hm2_5i25.0.7i73.0.2.analogin1
10 float OUT 0 hm2_5i25.0.7i73.0.2.analogin2
10 float OUT 0.02588235 hm2_5i25.0.7i73.0.2.analogin3
10 u32 IN 0x00000000 hm2_5i25.0.7i73.0.2.display -- this is the LC display data stream port
10 s32 OUT 0 hm2_5i25.0.7i73.0.2.enc0 -- these are four encoders for MPG
10 s32 OUT 0 hm2_5i25.0.7i73.0.2.enc1
10 s32 OUT 0 hm2_5i25.0.7i73.0.2.enc2
10 s32 OUT -1 hm2_5i25.0.7i73.0.2.enc3
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-00 -- the rest are input and output bits
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-00-not
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-01
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-01-not
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-02
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-02-not
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-03
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-03-not
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-04
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-04-not
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-05
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-05-not
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-06
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-06-not
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-07
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-07-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-08
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-08-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-09
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-09-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-10
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-10-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-11
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-11-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-12
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-12-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-13
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-13-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-14
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-14-not
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-15
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-15-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-16
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-16-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-17
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-17-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-18
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-18-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-19
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-19-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-20
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-20-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-21
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-21-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-22
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-22-not
10 bit OUT TRUE hm2_5i25.0.7i73.0.2.input-23
10 bit OUT FALSE hm2_5i25.0.7i73.0.2.input-23-not
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-00
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-01
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-02
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-03
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-04
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-05
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-06
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-07
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-08
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-09
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-10
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-11
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-12
10 bit IN FALSE hm2_5i25.0.7i73.0.2.output-13

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

More
05 Sep 2012 09:52 #23907 by bigalex
Replied by bigalex on topic Re:7i73 Pendent Control
Thank you so much PCW !
I really appreciate.

bigalex :blink:

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

More
09 Sep 2012 09:49 #24089 by andypugh
Replied by andypugh on topic Re:7i73 Pendent Control
bigalex wrote:

Is there a component in HAL that can be used to to this ?
If it's not , do you know how to do it inside LinuxCNC ?


Not as far as I know, but it sounds like fun, so I am going to order an LCD and have a go.
However, I won't be anywhere near my LinuxCNC PC for another week.

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

More
09 Sep 2012 11:05 #24093 by bigalex
Replied by bigalex on topic Re:7i73 Pendent Control
Hi Andy

It would be nice to have an HAL comp that can manage the LCD option on this Mesa Card.
Because so many Mesa users are trying so many different solutions for a pendant and because
an LCD is like "a must to have" on it , I hope that people like you, PCW and other "guru" can
give to the community another useful "brick" for a better LinuxCNC integration into the real world.
I'm an industrial automation integrator using "commercial" solutions .
I've not a developer background and expertise to go into the deep soul of the LinuxCNC . :(
But LinuxCNC is growing day by day in the right direction to use it as a robust and reliable solution
comparable to "commercial" competitors.

Thank you for help and efforts . ;)

:blink: bigalex

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

More
09 Sep 2012 22:34 #24107 by cmorley
Replied by cmorley on topic Re:7i73 Pendent Control
the latest pncconf supports the 7i73's simple buttons, analog input, and mpg - minimally tested of course :)
I didn't have an LCD to test with and personally couldn't figure out what you would really need it for...
But that's a personal opinion of course.

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

More
10 Sep 2012 06:41 #24114 by bigalex
Replied by bigalex on topic Re:7i73 Pendent Control
Hi Chris

at least I need to have displayed on the LCD the axis actual position and the jog override speed selected.
Also interesting the mode selected (JOG-MDI-AUTO) and the Emergency status.
In the application I'm talking about (cartesian 3-4 axis robot/manipulator or cylindrical robot/manipulator 5-6 axis mainly) there is the main display (touch HMI panel 10,4" Ethernet connected where to fit the axis position values (using a parametric programming interface) and where is possible to select all the options for the machine operations.
The pendant configuration (on the actual application using a "commercial" solution) is made by some push buttons for the jog axis movement and a touch display 3,5" where the axis positions are displayed and where is possible to set jog feed override value.
The communication connection is a Modbus RS485 19200 baud .
I'm trying to understand if I can use LinuxCNC for this kind of applications.
Into the list of features needed one of them is the pendant and because I'm thinking about using Mesa cards 5i25+7i77+7i73 the pendant with an LCD working could be nice. :)

:blink: bigalex

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

More
30 Sep 2012 03:21 #24721 by andypugh
Replied by andypugh on topic Re:7i73 Pendent Control
bigalex wrote:

It would be nice to have an HAL comp that can manage the LCD option on this Mesa Card.


picasaweb.google.com/lh/photo/aAihldBxgU...pFm0?feat=directlink

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

More
30 Sep 2012 07:33 #24723 by bigalex
Replied by bigalex on topic Re:7i73 Pendent Control
This is nice ! :woohoo:
Good job Andy.
Please can you detail what you did for this LCD application (LCD display used and how to connect it and .....) ?

bigalex :blink:

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

More
30 Sep 2012 14:30 - 01 Oct 2012 08:22 #24730 by andypugh
Replied by andypugh on topic Re:7i73 Pendant Control
bigalex wrote:

Please can you detail what you did for this LCD application (LCD display used and how to connect it and .....) ?


It is a fairly generic display as described here: en.wikipedia.org/wiki/Hitachi_HD44780_LCD_controller
(I bought it from eBay , choosing the cheapest. However the one I have seems to have poor contrast so I may not recommend that specific part)
I wired it up directly to the 7i73 according to the pinout from both sets of docs (all the pins are in the same order in this case, but that might not always be the case.)

Then I wrote a HAL module called "lcd". This takes an input string with a set of format specifiers (rather a lot like the c printf formats described here:http://en.wikipedia.org/wiki/Printf

That particular display was created with this line in the HAL:
loadrt lcd fmt_strings="LinuxCNC - Tool %2inX Pos = %4.4fnY Pos =%4.4fnZ Pos = %4.4f|Long Numbern%015.2fn"
That creates 2 possible display pages, (separated by "") and 5 HAL pins, one s32 and 4 floats.
Those pins can be connected to HAL signals/pins then the display will show those values, formatted as specified.
Extra pins include "page_num" to select the displayed page and "contrast" to adjust the contrast. (I am not sure if that works)

I will probably push the component to Master in the next week or so (it needs docs and more testing) but if you are in a hurry it ought to be possible to comp --install the attached C file.

I expected it to be a lot easier than it turned out to be when I started, but then found that the built-in printf available to kernel-mode drivers like HAL components doesn't deal with floating point numbers at all. So I ended up writing sprintf from scratch.

Attachment lcd.zip not found

Attachments:
Last edit: 01 Oct 2012 08:22 by andypugh.

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

More
30 Sep 2012 15:27 - 30 Sep 2012 16:06 #24740 by PCW
Replied by PCW on topic Re:7i73 Pendant Control
I notice that the 4 line Optrex display we tested with (and listed in the manual)
has now changed its PN to C-51847NFQJ-LW-AAN
(since Optrex is now owned by Kyocera)

This display has the advantage that its known to work
well with the contrast control.
Last edit: 30 Sep 2012 16:06 by PCW.

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

Moderators: cmorley
Time to create page: 0.105 seconds
Powered by Kunena Forum