7i73 Pendent Control

More
01 Oct 2012 06:53 #24775 by bigalex
Replied by bigalex on topic Re:7i73 Pendant Control
Thank you so much Andy and PCW!

bigalex :blink:

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

More
01 Oct 2012 08:28 - 01 Oct 2012 08:28 #24776 by andypugh
Replied by andypugh on topic Re:7i73 Pendant Control
I updated the file (in the earlier message) with a few bug fixes (contrast now works) and two new formats.
%c works like in C, it creates a HAL pin which directly sets the ASCII value of a character (values <32 (space) are suppressed).
%b{char1}{char2} creates a HAL bit pin, and displays {char1} if true and {char2} if false. Ascii values can be escaped with a backslash.
For examples "%bYN" would give you a Y / N pin. and "%b\FF " gives a block/blank.
Last edit: 01 Oct 2012 08:28 by andypugh.

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

More
08 Oct 2012 21:16 #25142 by andypugh
Replied by andypugh on topic Re:7i73 Pendant Control
Just pushed to the 2.5 branch. It should be available from the Buildbot tomorrow (or maybe even later today).
The proper submission has documentation.

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

More
24 Jul 2013 13:24 #36963 by PKM
Replied by PKM on topic Re:7i73 Pendent Control

the latest pncconf supports the 7i73's simple buttons, analog input, and mpg

How do I use analog inputs?
I see 7i73 but no analog pins there, 0-3 are usual bit inputs

The manual says about software modes 0-2, but I don't see such a parameter either

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

More
24 Jul 2013 15:27 #36969 by PKM
Replied by PKM on topic Re:7i73 Pendent Control

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


I don't have these pins. LCD and no keypad mode (W5 W6 down, W7 up)

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

More
24 Jul 2013 17:06 #36970 by andypugh
Replied by andypugh on topic Re:7i73 Pendent Control

I don't have these pins. LCD and no keypad mode (W5 W6 down, W7 up)

You may need to change the software mode.
www.linuxcnc.org/docs/html/man/man9/hostmot2.9.html#config modparam
sserial_port_0=0x0020000
for example.
(I probably need to think about other ways to do this, as it is not very logical with the alternative addressing mode)
The following user(s) said Thank You: PKM

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

More
24 Jul 2013 17:32 - 24 Jul 2013 17:32 #36971 by PKM
Replied by PKM on topic Re:7i73 Pendent Control
Thanks, it worked with sserial_port_0=0x02000000
It also changed hm2_5i25.0.7i73.0.1.display to hm2_5i25.0.7i73.0.1.display32

I guess I found a bug in LCD component (or my LCD display). The first string on the first page is blinking while other strings on other pages don't.
I found a symbols combination when it did not blink, but can't find it any more.
Last edit: 24 Jul 2013 17:32 by PKM.

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

More
24 Jul 2013 17:39 - 24 Jul 2013 17:40 #36972 by PKM
Replied by PKM on topic Re:7i73 Pendent Control
There are double quotes in LCD man www.linuxcnc.org/docs/html/man/man9/lcd.9.html

loadrt lcd fmt_strings=""Plain Text %4.4f\nAnd So on|Second Page, Next Inst""


But it won't load with double quotes, while single quotes go OK.
Last edit: 24 Jul 2013 17:40 by PKM.

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

More
24 Jul 2013 18:15 #36973 by andypugh
Replied by andypugh on topic Re:7i73 Pendent Control

There are double quotes in LCD man www.linuxcnc.org/docs/html/man/man9/lcd.9.html

loadrt lcd fmt_strings=""Plain Text %4.4f\nAnd So on|Second Page, Next Inst""

But it won't load with double quotes, while single quotes go OK.


I am a bit puzzled by that, but I should be able to change it.

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

More
24 Jul 2013 18:17 #36974 by andypugh
Replied by andypugh on topic Re:7i73 Pendent Control

I guess I found a bug in LCD component (or my LCD display). The first string on the first page is blinking while other strings on other pages don't..

It might be that the string is exactly one page width but also has a /n in it. For lines that are exactly one page-width long you need to leave out the /n.
(In fact, there is something to be said for not using /n at all)

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

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