Is there a method to extract the Cfg_Label (string) parameter from this instruction and transfer it to a string tag? For example, if the P_AIN tag is configured with label, tag, and description all as string tags in the parameters, is it feasible to replicate that information for use in another controller-scoped (string) tag? While the HMI can access it in the associated Object, the parameters of the AOI (such as PIT_1201) do not provide accessibility when drilled down.
The Cfg_Label variable is set to Public access, allowing the SCADA system to access it, but not the PLC. By converting it to an input parameter, you can make it usable within the PLC. However, this change may cause compatibility issues if someone uses a downloaded version of the AOI rather than your modified one. What is the specific reason for making this adjustment?
JPM_121923 queried about extracting the Cfg_Label (string) parameter from a certain instruction and transferring it to a string tag. For example, is it possible to duplicate the configuration from the P_AIN tag, which includes label, tag, and description set as string tags, for use in a different controller-scoped string tag? Although the HMI can access it in the associated Object, the parameters might not be accessible when navigating through the .parameters of the AOI, such as PIT_1201. One way to achieve this is by sending a CIP data table read message from the controller to itself. Additionally, you can copy the AOI to a "raw" UDT with the same size as the AOI and extract the information from there. If you need to make changes to the AOI, you can create a new parameter that links to the .LEN member of the string and then transfer that parameter to another string.
JeremyM mentioned that it is possible to send a CIP data table read message from the controller to itself. Another option is to copy the AOI to a "raw" UDT of similar size and retrieve the information from there. By modifying the AOI, a new parameter can be created to alias the .LEN member of the string, which can then be copied into another string. Can copying the AOI instance to another variable give access to the data fields without calling it? More details on this process are needed.
User cardosocea asked for clarification on accessing data fields in an AOI instance. By copying the AOI instance to another variable, you can access its data fields without calling it directly. This means that the instances of AOI are structured types that can be accessed without explicitly calling the AOI itself.
In most cases, the Local scoped variables of the AOI in the UDT are not visible.
In my experience, there isn't a direct method to extract the Cfg_Label parameter from your instruction and transfer it to another string tag. However, you could potentially create a workaround by utilizing the MSG instruction. This would allow you to read the configuration of the P_AIN tag or the required parameters, and write that information to a defined tag, which can then be used in another controller. Be aware though, this method could bring added complexity and might not be ideal based on the frequency of data updates you need.
I think what you're asking is indeed possible. Essentially, you'd have to create a controller-level string tag that you map, on a one-to-one basis, with each I/O point configured. Then within your user-defined type or AOI, create a Local_Tag_Name/Description parameter that mirrors the tag name/description of your I/O points. Now, that said, it might get a tad messy managing the replication across the platform, but at least it gives you the opportunity to manipulate or display these attributes elsewhere in the program, beyond just the specific AOI. Remember that this manual work comes with an overhead of keeping everything up-to-date. If your HMI allows it, you should consider pulling this data from the PLC directly.
✅ 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. How can I extract the Cfg_Label parameter from a PlantPax P_Ain instruction? - To extract the Cfg_Label parameter from a PlantPax P_Ain instruction, you can use a method to transfer it to a string tag within the controller.
Answer: - Yes, it is feasible to replicate the information such as label, tag, and description from the P_Ain tag configuration to another controller-scoped string tag for use in other applications.
Answer: - The parameters of the AOI may not provide direct accessibility when drilled down due to limitations in the software or the way the AOI is designed. This can make it difficult to extract specific information like the Cfg_Label parameter.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.