Hi!
Im trying to get LK204-25 to draw a horizontal bar for my application. I want the bar on the third row starting at the first column and the direction from left to right.
I've used the initialize horizontal bar command:
FE 68
And are trying to draw the bar with:
FE 7C 01 03 00 50
All numbers are sent in hex and i used no spacing between characters.
What i get is three lines of diffrent pixel width in the first three columns only.
Am i using the command correctly?
Troubles with Horizontal Bars
Hello Sebbe,
Thanks for your post.
First, I am going to assume that you have the most current PCB Rev for the LK204-25 which is PCB Rev 2.0.
I wonder if you please try something out for me.
After sending command FE 68, send 0 1 2 3 4 5 6 7 to the display, this will make the module display the custom characters.
If properly initialized and the custom character bank in the module has not been overwritten, you should see 8 characters that make up the horizontal bars, from thinnest (1 line) to the thickest (5 lines) and back down to thinnest (but the opposite end of the block).
Please let me know what you find.
Thanks,
Thanks for your post.
First, I am going to assume that you have the most current PCB Rev for the LK204-25 which is PCB Rev 2.0.
I wonder if you please try something out for me.
After sending command FE 68, send 0 1 2 3 4 5 6 7 to the display, this will make the module display the custom characters.
If properly initialized and the custom character bank in the module has not been overwritten, you should see 8 characters that make up the horizontal bars, from thinnest (1 line) to the thickest (5 lines) and back down to thinnest (but the opposite end of the block).
Please let me know what you find.
Thanks,
Raquel Malinis
Design and Development
Matrix Orbital
Design and Development
Matrix Orbital
Yes, i have Rev 2.0.First, I am going to assume that you have the most current PCB Rev for the LK204-25 which is PCB Rev 2.0.
I tried sending:I wonder if you please try something out for me.
After sending command FE 68, send 0 1 2 3 4 5 6 7 to the display, this will make the module display the custom characters.
If properly initialized and the custom character bank in the module has not been overwritten, you should see 8 characters that make up the horizontal bars, from thinnest (1 line) to the thickest (5 lines) and back down to thinnest (but the opposite end of the block).
FE 68 00 01 02 03 04 05 06 07
All numbers in hex and got nothing at all in the display.
I then tried single numbers and found that if i omitted "00" i got the lines you talked about except the single line in at the first pixel and the case when all pixels in the column were lit.
FE 68 01 02 03 04 05 06 07 (no spacing)
How do i proceed?
Hello Sebbe,
I am unsure why sending FE 68 00 01 02 03 04 05 06 07 did not work and omitting 00 helped.
Sending 00 means just displaying the custom character on Id # 0.
Try sending the following commands to save the horizontal custom character definitions on the EEPROM:
(they are in decimal)
254//193//1//0//16//16//16//16//16//16//16//16/
254//193//1//1//24//24//24//24//24//24//24//24/
254//193//1//2//28//28//28//28//28//28//28//28/
254//193//1//3//30//30//30//30//30//30//30//30/
254//193//1//4//1//1//1//1//1//1//1//1/
254//193//1//5//3//3//3//3//3//3//3//3/
254//193//1//6//7//7//7//7//7//7//7//7/
254//193//1//7//15//15//15//15//15//15//15//15/
254//192//1/ or FE 68
then send the data
00 01 02 03 04 05 06 07
Commands 192 and 193 details can be found on sections 6.4 and 6.5 of the manual.
Let me know how it turns out.
Thanks,
I am unsure why sending FE 68 00 01 02 03 04 05 06 07 did not work and omitting 00 helped.
Sending 00 means just displaying the custom character on Id # 0.
Try sending the following commands to save the horizontal custom character definitions on the EEPROM:
(they are in decimal)
254//193//1//0//16//16//16//16//16//16//16//16/
254//193//1//1//24//24//24//24//24//24//24//24/
254//193//1//2//28//28//28//28//28//28//28//28/
254//193//1//3//30//30//30//30//30//30//30//30/
254//193//1//4//1//1//1//1//1//1//1//1/
254//193//1//5//3//3//3//3//3//3//3//3/
254//193//1//6//7//7//7//7//7//7//7//7/
254//193//1//7//15//15//15//15//15//15//15//15/
254//192//1/ or FE 68
then send the data
00 01 02 03 04 05 06 07
Commands 192 and 193 details can be found on sections 6.4 and 6.5 of the manual.
Let me know how it turns out.
Thanks,
Raquel Malinis
Design and Development
Matrix Orbital
Design and Development
Matrix Orbital
Thanks for all the help Raquel but unfortunately this is taking to much time. Im programming in Structured Text on a PLC and as far as i know i can only send characters in hex or ascii format.
I played around with the code you supplied and think my problems are caused by the 0x00. When i send that code everything after that never get sent. Perhaps its some kind of transmission endcode even though i have endcode set to none in the options.
Ill try some more if i get the time.
Thanks again!
I played around with the code you supplied and think my problems are caused by the 0x00. When i send that code everything after that never get sent. Perhaps its some kind of transmission endcode even though i have endcode set to none in the options.
Ill try some more if i get the time.
Thanks again!
Hmm, this makes me think that maybe the PLC does something to the 0x00 (null) character. You might want to check into that. At some point, you will need make sure that 0x00 data is received by the display properly.
And also, the commands that I sent you last post, you do not have to do that in your code. You can have that done and tested using uProject. You will need to temporarily disconnect your display from your system though.
Thanks,
And also, the commands that I sent you last post, you do not have to do that in your code. You can have that done and tested using uProject. You will need to temporarily disconnect your display from your system though.
Thanks,
Raquel Malinis
Design and Development
Matrix Orbital
Design and Development
Matrix Orbital