157 lines
4.1 KiB
Markdown
157 lines
4.1 KiB
Markdown
|
|
## For setup the WinCC Tia Portal:
|
|
|
|
|
|
#### RFID LOGON: - RF1060R and Option+
|
|
***
|
|
|
|
#### Enable OPC-Server on the HMI:
|
|
|
|
![[Pasted image 20231023134819.png]]
|
|
|
|
|
|
* Copy the tags `06_Option+_PMLogon` from the example project
|
|
* ![[Pasted image 20231024170948.png]]
|
|
|
|
* Copy the Scripts: `PMLOGON_UID_Changed` and `UpdatePopUp`
|
|
|
|
* Change the Update Event of the PLC Time tag:
|
|
![[Pasted image 20231024171057.png]]
|
|
|
|
Copy the Text field 3 on Layer_12 on the Template to have the message for the User Logged:
|
|
|
|
![[Pasted image 20231024172004.png]]
|
|
|
|
##### Creating all user on the HMI Panel:
|
|
***
|
|
We must to delete all users except the Superuser. The Superuser must have a new password and this user it will be used for seting up all the operators on the HMI Panel.
|
|
Then all the UID can be read with the AccessControlDemo and the UID without the 0x will be the password to be used for every user/card.
|
|
|
|
##### Creating users on the Tia Portal
|
|
***
|
|
Using the DEMO software AccessControlDemo and inverting the UID
|
|
|
|
![[Pasted image 20231023170326.png]]
|
|
|
|
The UID can be read and then on the user admin of the Tia Portal can be created all the necessary's users with the password replaced by the UID
|
|
|
|
![[Pasted image 20231023170944.png]]
|
|
|
|
|
|
|
|
The documentation of reference is: 3.7 from SimaticHMIOptionPlus : https://1drv.ms/b/s!Ap46vAtZDpwSiro8IljITp1twd6WEw?e=UReKIQ
|
|
|
|
|
|
### AUDIT - GMP
|
|
***
|
|
|
|
|
|
* Enable GMP
|
|
|
|
![[Pasted image 20231020161702.png]]
|
|
|
|
|
|
### Audit report
|
|
|
|
https://support.industry.siemens.com/cs/mdm/109096785?c=24425383435&dl=en&lc=es-CO
|
|
|
|
|
|
|
|
![[Pasted image 20231020164328.png]]
|
|
* Every tag that need to be tracked
|
|
|
|
![[Pasted image 20231024100007.png]]
|
|
* Must be added one item on the Historical data
|
|
* Select where to save the data and the type of file
|
|
|
|
![[Pasted image 20231024100616.png]]
|
|
![[Pasted image 20231024100628.png]]
|
|
|
|
#### Storage location
|
|
- Storage location
|
|
You can choose between:
|
|
- RDB file
|
|
- a CSV file (ASCII)
|
|
- a TXT file (Unicode)
|
|
- Path
|
|
Depending on the HMI device, enter the storage location of the Audit Trail under "Path".
|
|
- Minimum space in MB
|
|
Specify the size of remaining storage space that triggers the "Little available memory" event.
|
|
|
|
#### Inspector window settings
|
|
***
|
|
You can set the following parameters under "Audit trail > Properties > Properties > Settings":
|
|
|
|
Logging activation
|
|
- Enable logging at runtime start
|
|
Forcing
|
|
- Bypass electronic signature
|
|
Specifies whether the administrator is permitted to run operator actions without entering an electronic signature or comments.
|
|
- Forcing allowed if storage space is exhausted
|
|
This function allows the administrator to interrupt audit trail logging in the following scenarios:
|
|
- There is no free storage space available.
|
|
- The storage medium is missing.
|
|
- Access to required storage medium is not possible.
|
|
|
|
You can thus prevent the process from stopping.
|
|
After Forcing was carried out, the audit trail log switches off.
|
|
After the end of "Forcing", the audit trail must be restarted with the system function "StartLogging".
|
|
|
|
|
|
|
|
|
|
#### The Scripts:
|
|
***
|
|
```pascal
|
|
Sub PMLOGON_UID_Changed()
|
|
|
|
Dim Panel_LogonUid_Value
|
|
Panel_LogonUid_Value = SmartTags("Panel_LogonUid")
|
|
|
|
' Card not available
|
|
If Panel_LogonUid_Value = "-1" Then
|
|
Logoff
|
|
SmartTags("StatusRFID") = 0
|
|
|
|
' Card available
|
|
Else
|
|
Dim Password
|
|
Password = Panel_LogonUid_Value
|
|
Logon Password, "UserName"
|
|
SmartTags("StatusRFID") = 1
|
|
GetUserName "CurrentUser"
|
|
|
|
' User does not exist
|
|
Dim s_user
|
|
Dim lenght
|
|
s_user = SmartTags("CurrentUser")
|
|
lenght = Len(s_user)
|
|
|
|
If lenght < 1 Then
|
|
SmartTags("StatusRFID") = 2
|
|
ActivateScreen "901- Utenti",901
|
|
Else
|
|
SmartTags("PopUpLogon") = 5
|
|
End If
|
|
End If
|
|
|
|
End Sub
|
|
```
|
|
|
|
```pascal
|
|
Sub UpdatePopUp()
|
|
|
|
If SmartTags("PopUpLogon") > 0 Then
|
|
SmartTags("PopUpLogon") = SmartTags("PopUpLogon") - 1
|
|
End If
|
|
|
|
End Sub
|
|
```
|
|
|
|
`SmartTags("PopUpLogon") = 5 ` this set the second that the message of user logged is active
|
|
|
|
|
|
### To resolve the problem when the superuser login with the normal way and then the last batch user try to login
|
|
|
|
* On the template add this event to clear the Tag used for the Option+ to login
|
|
![[Pasted image 20231026104046.png]] |