Hello everyone, I have been tasked with using a GE SCE330 Processor for a customer project. I am facing challenges while working with the new GE Proficy 9.50 IDE, particularly with string manipulation tasks. I need to create a string constant of 16 characters and combine it with a string received from the customer's Conveyor Line PLC via ProfiNET. I am unable to find any LD or STL string manipulation instructions in the IDE. Although I can create a string, I am unsure how to access the data within the string or how to concatenate it with another string. After concatenating the strings, I need to transfer the complete string into an integer array for transmission to a Laser Marker for updating part data. I have a few questions: 1. Does the GE PLC offer string manipulation instructions that I may be overlooking? 2. How can I merge two strings and where should I store the combined result? 3. Which instruction should I utilize to transfer the string into an Integer array? Thank you for your assistance. I am currently encountering difficulties with GE products.
Question 1: While the PLC does not directly support string handling, you can utilize subroutines written in C to achieve this functionality. If your project involves a GE HMI, it offers a limited set of string handling instructions that can be leveraged. By creating a script in the HMI that reads data from the PLC, performs necessary string manipulations, and writes the results back to the PLC, you can achieve the desired outcome. For Questions 2 and 3: It is recommended to utilize addressed memory for your string variables. The starting address of the incoming string via Profinet is typically one higher than the address of the last two characters of the string. Strings are stored as two ASCII characters per 16-bit address. To manipulate the string, such as swapping the high and low bytes, consider creating an INT variable array that shares the same address range as your string. If you are facing challenges with GE products, it's important to adapt to their behavior rather than trying to force them to mimic another brand's PLC. This approach can help mitigate frustration and ensure smoother operations.
Manipulating strings becomes simple when you view each character as a byte and organize them into arrays. Utilize the "ARRAY" handling function blocks or custom function blocks to easily split or combine strings as required. Each software provider has their own unique strengths and weaknesses. Avoid trying to make new software operate like your outdated system. Instead, embrace its features and leverage them to optimize your workflow.
I have a user-defined type (UDT) with various elements, including real, bool, and a need for a String. When I tried to create an array variable using the UDT, I encountered an issue when attempting to write data from another variable into a specific index of the array. The problem arose when I used a for loop with the loop index in a variable, as PME flagged an error stating that a string array requires a constant index value and cannot accept a variable index. Do you have any suggestions on how to resolve this issue?
Hello there! It certainly sounds like you're in deep waters with the GE SCE330 Processor and the Proficy 9.50 IDE. String manipulation in PLC is not always straightforward. However, GE PLC does offer built-in string operations. You can find them under the “string operations” or “string manipulation” category in the functions menu. As for merging strings, you can accomplish that using the CONCAT function. To store the merged strings, you will likely need to use an extended memory block. With regards to your third question, you might need to implement a more customized solution. You can create an array of integers and then fill it by converting the characters of the string into ASCII values using ASCII function and storing them into the array. Hope this helps a bit. If you need more, feel free to ask!
Hello, it seems you are in a bit of a bind. While working with Proficy Machine Edition IDE can be tricky, it certainly has functionality for string manipulation. You can use the CONCAT instruction to merge two strings. The resulting string can be stored in a temporary STRING variable in the PLC before it is transferred. Not sure about SCE330 series, but with RX3i and some others, you can use the STRING_TO_INT function block to convert each character of a string to an ASCII representation and store it in an array of integers. Remember to allocate enough memory for your variables to prevent data overflow. Consult the IDE help or the GE Intelligent Platforms customer support for more detailed guidance. Also, don't hesitate to share any specific error codes or issues you come across.
âś… Work Order Management
âś… Asset Tracking
âś… Preventive Maintenance
âś… Inspection Report
We have received your information. We will share Schedule Demo details on your Mail Id.
Answer: 1. Does the GE PLC offer string manipulation instructions that I may be overlooking? - The GE Proficy 9.50 IDE may not have explicit LD or STL string manipulation instructions, but there are alternative methods to perform string operations using other available functions or programming techniques.
Answer: - To merge two strings in GE Proficy 9.50 IDE, you can create a new string variable and use assignment operations or functions to concatenate the strings. The combined result can be stored in a designated string variable for further processing.
Answer: - To transfer a string into an Integer array in GE Proficy 9.50 IDE, you can convert the string into its corresponding ASCII values and then store these values in an Integer array for transmission to the Laser Marker for updating part data.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.