Startup state-machine
Following steps are taken to complete the communication and download the last recipe data to the PLC variables on the machine startup:
- On the startup the PLC does not have any recipe data because the HMI may start a session later. The PLC will set the
DataRequestPLC
flag to TRUE and theDataValidPlc
flag to FALSE. - The HMI client will read
DataRequestPLC
variable on initialization and setDataRequestPLCActiveHmi
to TRUE to indicate it has received the request. - The recipe that is saved as the active temporary recipe will be activated from the HMI and will set the values to all the related PLC variables.
- The HMI client will write FALSE to
DataRequestPLCActiveHmi
and TRUE toDataRequestPLCQuitHMI
to indicate the complete activation. - The PLC will remove the request by resetting
DataRequestPlc
to FALSE.