Guide on Writing Text to LS Area in GP Pro/PBIII

Question:

Hello everyone, I trust you are all doing well. I am currently in the process of updating an HMI project for the GP2500 and have come across a challenge that I could use some help with. The project involves using D-Script to move text from various LS0300+ areas to LS1005, where it is displayed on the screen when the corresponding button is pressed. Upon further investigation, I have discovered text files within the project, with my belief being that text is extracted from file X21 for the English language. The designated area in the backup settings of the GP settings is the starting address LS0300, with a size of 110. However, I am having difficulty understanding the process of transferring text from X21 to LS0300. My objective is to input my text into LS0313, which is currently vacant. If anyone could offer guidance or assistance in clarifying this for me, I would greatly appreciate it. Thank you all in advance for your support.

Top Replies

I recently discovered a hidden W Tag Setting on the same screen, which proved to be the solution to my issue. By triggering LS203805, I was able to write Constant 217 to LS0313, which represents the empty row in the X21 file. This has resolved my problem. However, I was unable to locate a look-up or cross-referencing tool in GP Pro/PBlll. Is such a tool available?

Hey there, it sounds like you're handling quite a complex task. As per your description, if I'm not mistaken, you want to transfer text from X21 to the LS0313 area in your HMI project using D-Script. If that's the case, you might want to look into the functionality of the 'COPY' instructions in D-Script. These can be used to copy data from one location to another, in this case from X21 to LS0313. Remember, you'll need to ensure that the destination location has enough space for the incoming data to avoid overrun errors. I'm not an expert here, but from a programming perspective, this approach should work. That said, I recommend double-checking with the D-Script manual or an expert. Stay persistent!

Hey there! It sounds like you've got quite a project on your hands. From what I understand, you're trying to transfer text from X21 to LS0300, and then input that into LS0313, right? For moving text within D-Script, the syntax usually goes 'MOVE "YOUR TEXT HERE" TO DESTINATION'. So if you want to move text from X21 to LS0300, you may try 'MOVE X21 TO LS0300'. Then, you probably want to move that into LS0313, so you'd say again, 'MOVE LS0300 TO LS0313'. Of course, you'll need to replace 'YOUR TEXT HERE' with the actual text you're wanting to move. You should also make sure that LS0313 has enough space to hold the text you're moving. Good luck with your project!

Hello! It sounds like you're on the right track. The D-Script in the GP2500 should indeed allow for the transfer of text from X21 to LS0300 and it can get a little tricky. Given that your goal is to put text in LS0313, you might want to look into whether the LS0300+ areas are being used sequentially, which is often the case in these setups. Remember to ensure the settings for your text files in X21 are correct as well. Primarily double-check the encoding settings of your text files, they should match the decoding settings of your HMI. From there, it should just be a simple matter of pointing the output from the D-Script to LS0313 instead of the initially set LS0300. Hope this helps a bit!

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: 1. How can I transfer text from file X21 to LS0300 in my GP2500 HMI project?

Answer: - To transfer text from file X21 to LS0300 in your GP2500 HMI project, you can use D-Script to move text from the designated areas to LS1005, where it will be displayed on the screen when the corresponding button is pressed.

FAQ: 2. What is the purpose of text files within the project and how are they utilized for displaying text?

Answer: - Text files within the project, such as file X21 for the English language, are used to extract text that can be displayed on the screen. By designating the starting address and size in the backup settings of the GP settings, you can manage the transfer and display of text effectively.

FAQ: 3. How can I input text into a specific area like LS0313 in my GP2500 project?

Answer: - To input text into a specific area like LS0313 in your GP2500 project, ensure that the area is vacant and utilize the appropriate methods in D-Script or other programming tools to transfer and display the text as needed.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’