PLCWannabe, looks pretty straightforward to me. You could use your STRPRINT to format 4 20-character strings (1 for each line of the LCD display), or 1 80-character string (as long as you know that it is 20-characters per line). Then, use the STRGETB to get the ASCII bytes out of each of your 4 strings (or the one long one), and store that somewhere. For example, if you did 4 strings (one for each line on the LCD, then you might have 4 STRPRINTs:
- SS0 = "Mary had a lamb"
- SS1 = "Fleece was white"
- SS2 = "Everywhere Mary went"
- SS3 = "Lamb sure to go"
Then use 4 STRGETBs:
- SS0 --> V100-109
- SS1 --> V110-119
- SS2 --> V120-129
- SS3 --> V130-139
Then use 1 MWX writing 40 Holding Registers (FC = 16 "Write Multiple Holding Registers") starting at Holding Register "40001" which should be Register zero as shown in the manual page 13.
Of course, this is just a test to get it working. But it should work. Then you can tweak your PLC code to make the display look the way you want.
Also, you can use the MRX to read (FC = 03 "Read Holding Registers") to read Holding Registers 40040-40059 (20 registers) to get the status of things listed on page 14. You can store these wherever you like in the BRX PLC. Or use multiple MRXs and just get then one at a time.
Anyway, you get the idea. Hope this helps.