Skip to content

Demonstration of using Beckhoff TE 2000 1.12. API to enable and disable users from HMI

License

Notifications You must be signed in to change notification settings

lukabelingar/Enable-or-disable-users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(Dis/En)able users

Sample project demonstrates, how users can be enabled or disabled via HMI. The Users.ts function uses the UserManagement's API to execute the command and writes back response as text.

export function Users(ctx: any, user: any, enable: any) {
  TcHmi.Server.UserManagement.updateUser(user, { "enabled": enable }, function (data) {
    console.log(data);
    ctx.success(data);
  });
}

This particular operation requires a couple additional read+write permissions:

  • AddOrChangeUser
  • TcHmiUserManagement.DisableUser
  • TcHmiUserManagement.EnableUser

euser

Tested

1.12.760.59

Running the code

Publish the HMI project and login as user demo, which is member of group pawr. Try modifying user luka by pressing the only button and checkbox available on the visualization.

About

Demonstration of using Beckhoff TE 2000 1.12. API to enable and disable users from HMI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published