7i73 LCD shows rubisch

More
09 Feb 2018 21:18 #105658 by Mike_Eitel
Replied by Mike_Eitel on topic 7i73 LCD shows rubisch
For me that is a proof that either in the composing ( making the string) or the transmission something happens. As soon as the data transfer to the 7i73 stops ( red light on my panel) the scrambling stops. Pushing the string must have probably missing characters. When adding the scrambling would probably show some moving effects. But as the video shows it is somehow quite random.

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

More
09 Feb 2018 21:20 #105659 by andypugh
Replied by andypugh on topic 7i73 LCD shows rubisch
Why do you think that the data transfer stops when you stop the programme?

Maybe we are talking at crossed-purposes. Do you mean stopping the G-code programme or actually stopping LinuxCNC?

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

More
09 Feb 2018 21:30 #105661 by Mike_Eitel
Replied by Mike_Eitel on topic 7i73 LCD shows rubisch
I use your test.hal.
When i quit that the red led (communication watchdog) of the 7i73 goes on.
I guess that the 7i76e stops in that very moment with the sserial transfers

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

More
09 Feb 2018 21:33 #105662 by andypugh
Replied by andypugh on topic 7i73 LCD shows rubisch
Ah, yes.
The LCD has it's own logic and just shows what it showed last if no more data is shown.

Can you definitely confirm that your LCD used to work perfectly? And can you remember when and with what version of LinuxCNC?

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

More
09 Feb 2018 21:46 #105664 by Mike_Eitel
Replied by Mike_Eitel on topic 7i73 LCD shows rubisch
Yes it worked like a charm! And more than only this one as i tested severals until i decided that big size. It was definitely always 2.8. never went 2.7.
For the version: very difficult. I had big problems to setup the system as it is today. Stretch is not easy for me and i started sever times with a wiped disk. I was around Christmas. But from with master version i do not know. It was surely based on the last iso. But sorry, cant even remember if i did an update in between.

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

More
09 Feb 2018 22:09 #105667 by andypugh
Replied by andypugh on topic 7i73 LCD shows rubisch

Yes it worked like a charm! .


What format string were you using? Maybe I can try that.

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

More
09 Feb 2018 22:18 - 09 Feb 2018 22:19 #105669 by Mike_Eitel
Replied by Mike_Eitel on topic 7i73 LCD shows rubisch
I do not understand. Do you mean string content? Does not matter. Every variation i tried has the same scrambling.

But actually i use the file exactly as posted yesterday in this thread.



I have 7i76e so had to modify your code to:

loadrt hostmot2
loadrt hm2_eth board_ip="192.168.1.121" config="sserial_port_0=21xxxx"
loadrt lcd fmt_strings="LinuxCNC - Tool %2i\n%b* X Pos = %11.4f%b* Y Pos = %11.4f%b* Z Pos = %10.3f|Long Number\n%015.2f\n"
loadrt threads
loadrt siggen
addf hm2_7i76e.0.read thread1
addf hm2_7i76e.0.write thread1
addf lcd thread1
addf siggen.0.update thread1
net chars lcd.00.out hm2_7i76e.0.7i73.0.1.display
start
setp lcd.00.contrast 0.7
net stuff lcd.00.page.00.arg.02 siggen.0.sine
net stuff1 lcd.00.page.00.arg.04 siggen.0.cosine
net stuff2 lcd.00.page.00.arg.06 siggen.0.triangle
setp lcd.00.page.00.arg.03 1
setp siggen.0.amplitude 1000
setp siggen.0.frequency 0.000005
Last edit: 09 Feb 2018 22:19 by Mike_Eitel.

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

More
09 Feb 2018 22:24 #105670 by andypugh
Replied by andypugh on topic 7i73 LCD shows rubisch
I was asking if you could send me the string that used to work perfectly and now doesn't.

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

More
09 Feb 2018 22:31 #105671 by andypugh
Replied by andypugh on topic 7i73 LCD shows rubisch
Another thought, do you have the manual for your exact LCD display?

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

More
09 Feb 2018 22:41 #105672 by Mike_Eitel
Replied by Mike_Eitel on topic 7i73 LCD shows rubisch
I had several configs running ok. Mostly based on files I got from Norbert.

Here a part of his config :

loadrt hm2_eth board_ip="192.168.1.121" config="num_encoders=1 num_pwmgens=0 num_stepgens=3 sserial_port_0=21xxxx"

########################################
# 7i73 hal connections for the display #
# (c) Norbert Schechner #
########################################

# load the lcd component
loadrt lcd fmt_strings="Tool %2d ZO %8.3f\nX Pos = %8.3f\nY Pos = %8.3f\nZ Pos = %8.3f|Line = %5d\nLength = %5d\nProgress = %3.1f | \n Machine in ESTOP| \n Machine ON\n but not homed"

# add the component to a thread, otherwise it will never be updated
addf lcd servo-thread

#setp lcd.00.decimal-separator 44

net display lcd.00.out => hm2_7i76e.0.7i73.0.1.display

net toolnumber lcd.00.page.00.arg.00 <= iocontrol.0.tool-number
net tooloffset-z lcd.00.page.00.arg.01
net x-pos lcd.00.page.00.arg.02 <= halui.axis.x.pos-relative
net y-pos lcd.00.page.00.arg.03 <= halui.axis.y.pos-relative
net z-pos lcd.00.page.00.arg.04 <= halui.axis.z.pos-relative

net prog-line lcd.00.page.01.arg.00 <= gmoccapy.program.current-line
net length lcd.00.page.01.arg.01 <= gmoccapy.program.length
net progress lcd.00.page.01.arg.02 <= gmoccapy.program.progress

# page 0 page-manual
# page 1 page-auto
# page 2 page-estop
# page 3 page-on
# we need a pin to change pages according to the machine states
net page lcd.00.page_num


No I have no data sheet of the LCD, I have several different ones (from wastebins) all based on the same controllers.
All worked perfect.

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

Moderators: PCWjmelson
Time to create page: 0.220 seconds
Powered by Kunena Forum