Let me provide a comprehensive solution based on your situation. After PLC firmware updates that change OPC UA address space structure, you need to address three key areas: PLC firmware compatibility, OPC UA tag mapping, and MES data collector configuration.
Step 1: Update OPC UA Tag Mappings
Edit <MES_HOME>/config/datacollector/opcua_mappings.xml to reflect the new namespace and node structure:
<TagMapping>
<Source>ns=3;s=QualityControl.Station_01.InspectionResult</Source>
<Destination>QC_STATION_01_RESULT</Destination>
<DataType>Int32</DataType>
</TagMapping>
Note the namespace change from ns=2 to ns=3 and the hierarchical path structure. Use UaExpert to verify exact node IDs for all your quality inspection points.
Step 2: Configure Data Type Compatibility
AB firmware v24 changed default data types. Update your data collector transformation rules in <MES_HOME>/config/datacollector/transformations.xml:
<Transform tag="QC_STATION_01_RESULT">
<TypeConversion from="Int32" to="Int16"/>
<TimestampConversion from="UTC" to="Local"/>
</Transform>
This handles the data type changes and timestamp format differences between firmware versions.
Step 3: Update MES Quality Module Data Source Mappings
In Honeywell MES:
- Navigate to Quality Management > Configuration > Data Sources
- Edit your SCADA data source connection
- Update the OPC UA server endpoint if the PLC IP or port changed
- Test the connection to verify the MES can reach the PLC
Then update inspection attribute mappings:
- Go to Quality Management > Inspection Templates
- For each template using SCADA data, select Data Source Mapping
- Remap each quality attribute to its new OPC UA tag path
- Verify data types match between PLC tags and MES quality attributes
Step 4: Configure Data Collector Service
Update polling and error handling in <MES_HOME>/config/datacollector/service.properties:
opcua.polling.interval=5000
opcua.reconnect.attempts=3
opcua.read.timeout=10000
Restart the MES Data Collector service:
service mes-datacollector restart
Step 5: Validation and Monitoring
Monitor the data collector logs at <MES_HOME>/logs/datacollector.log for successful tag reads. You should see entries like:
INFO: Tag read successful - ns=3;s=QualityControl.Station_01.InspectionResult = 1
INFO: Data mapped to MES attribute QC_STATION_01_RESULT
In the MES quality module, trigger a test inspection from your SCADA system and verify the data appears in the quality record within your configured polling interval.
Additional Considerations:
- If you have multiple PLCs or quality stations, repeat the tag mapping updates for each
- Document your new OPC UA tag structure for future reference
- Consider creating a tag mapping validation script to catch mismatches after future firmware updates
- Update your disaster recovery documentation with the new configuration
This systematic approach addresses the PLC firmware compatibility issues, corrects OPC UA tag mappings, and properly configures the MES data collector for the new tag structure. Your quality inspection data should now sync correctly from SCADA to MES.