I might not be understanding your question properly. Normally when you attach an HMI to PLC you don't need to make changes to the PLC program. The HMI asks the PLC for data. However, I know that some simple Siemens HMIs are programmed via the PLC software. Maybe if you can say which HMI you want to use we can help more.