Many PLC like SIEMENS SIMATIC S7 have a serial port based on RS 485. You can communicate over the standard USART/UART of a Microcontroller using an RS 485 voltage transceiver e.g. LTC486. The protocol should be available from the PLC manufacturer
Thank you sir for your answer. Sir I understand this thing but my question is what is the data format between PLC and HMI, means what is actual data packet. May be for sending whole packets it splits into 8 or 9 bits, but I want to know the actual communication data packet, like what PLC sends if its activates some output and what HMI sends to PLC if it gets some input etc.
If you want to use serial or ethernet based communication , you can adjust in PLC.But (!) if you want to use standard but manufacturer based protocols like MPI , Profibus, modbus etc. it is nearky impossible to take the protocol designs from manufacturer for big companys.
First you need to write you own HMI & PLC code (use programmer kit and InTouch software of wonderware for the GUI) for your machine and track errors. Understand the working principle of HMI, build a fully functional HMI program and interface it with a PLC Program, choose the right communication protocol, use different type of components inside HMI Screen, connect HMI with PLC or microcontroller practically.
Microcontroller must have an amount of RAM inside the chip; normally this RAM array should be 64 to 256 bytes. LadderWORK software can be configured to use the internal memory, the external memory or both. With LadderWORK you can easily create your custom mapping/compiler setting to fit the embedded board requirements and save it in files called profiles. LadderWORK Integrated Development Environment (IDE) could be useful here. LadderWORK software includes a standard set of LADDER DIAGRAM (RELAY LOGIC) devices and a set of extra components, like pure-logical ports and user-programmable functions.