Obsidean_VM/03-Revised/93660 - Supervisione Sipa/Reporte/Notes.md

73 lines
4.0 KiB
Markdown
Raw Normal View History

2025-02-18 05:37:27 -03:00
PLC IP:
1. The line supervisor (X-Data) selects an available recipe from the machine. They then press the "Send Recipe" button.
2. The line supervisor sets the variable "GV_IOT_PRJ.cmm.b_rcp_chn_req" to 1, indicating a recipe change request.
3. They also input the requested recipe number in the variable "GV_IOT_PRJ.cmm.i_rcp_nr_req" and the recipe name in "GV_IOT_PRJ.cmm.str_rcp_chn_req_name."
4. When "GV_IOT_PRJ.cmm.b_rcp_chn_req" is set to 1, a notification appears on the local machine supervisors screen, alerting the operator that a recipe change has been requested.
5. The PLC or local machine supervisor then sets "GV_IOT_PRJ.cmm.b_rcp_chn_ack" to 1. As long as the notification is active, this variable remains at 1.
6. To close the notification, choose an option (send recipe or close screen), which will reset the "GV_IOT_PRJ.cmm.b_rcp_chn_ack" variable, letting the line supervisor know the request has been acknowledged.
7. Once the new recipe is sent to the machine, "GV_IOT_PRJ.cmm.i_rcp_nr_slct" will assume the value of "GV_IOT_PRJ.cmm.i_rcp_nr_req," and both "GV_IOT_PRJ.cmm.b_rcp_chn_req" and "GV_IOT_PRJ.cmm.b_rcp_chn_ack" will be reset to 0 by the local machine supervisor.
8. This allows the line supervisor to know that the machine has successfully processed the new recipe and they can display the recipe acceptance status on the screen. The variable "GV_IOT_PRJ.cmm.b_rcp_chn_req" can also be used to show a "remote recipe loading pending" alert to the machine operator.
#### The Steps are:
***
1. The HMI Supervisor picks a recipe on a machine and hits "Send."
2. The Supervisor sets a "change recipe" signal to "on."
3. The Supervisor also inputs the recipe number and name.
4. A pop-up shows on the machine, telling the operator that the Supervisor wants to change the recipe.
5. The machine also sets its own "acknowledge" signal to "on."
6. To close the pop-up, the operator picks an option, which turns the "acknowledge" signal off. This tells the Supervisor that the message was seen.
7. When the new recipe is actually in the machine, some numbers match up, and the signals are turned off.
8. The Supervisor can now see that everything went well, and can also set up alerts for the operator.
```mermaid
graph TD
A[Supervisor selects recipe] --> B[Trigger 'Change recipe']
B --> C[Supervisor enters details]
C --> D[Variables updated]
D --> E[Operator notified]
E --> F[Machine acknowledges]
F --> G[Operator closes alert]
G --> H[New recipe loaded]
```
#### recipes.txt
La lista di ricette verranno modificate/aggiunte solo da supervisore locale di macchina il quale provvederà ad esportare in una cartella interna, e condivisa con il supervisore di linea, il file
“recipes.txt” con la lista completa delle ricette disponibili per quella macchina. Il file “recipes.txt“ dovrà essere composto per ogni riga dal numero ID della ricetta, un separatore “;” e successivamente il nome ricetta.
#### Read of Recipes Names:
with GetDataRecordName
##### Use in the function list
***
GetDataRecordName (Recipe number, Data record number, Recipe name, Data record name, Processing status)
##### Parameters
***
* Imput:
* Recipe number
* Number of the recipe whose name is written in the specified tag.
* Data record number
* Number of the recipe data record, whose name is written to the specified tag.
* Outputs:
* Recipe name
* The tag to which the recipe name is written. The tag must be of the STRING type.
* Data record name
* The tag to which the name of the recipe data record is written. The tag must be of the STRING type.
##### Processing status
Returns the processing status of the system function. You can use the return value, for example, to delay execution of other system functions until this system function has been successfully completed:
2 = System function is being performed.
==4 = System function was successfully completed.==
12 = System function was not performed because an error has occurred.
You can only use one HMI tag for the parameter.