Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: start pwrdemo as 'operator'

start pwrdemo as 'operator' 15 years 10 months ago #217

  • aop
  • aop's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 59
  • Karma: 0
Hello

I installed pwrdemo45 on a Proview development system.

I can access the graphics from the pwrdemo45 application by using the rt_xtt and open the pwrdemo graph by typing \"open graph pwrdemo\" in the xtt command propt.
Everything is working fine so far.

I wonder now, how I can get access to the Operator window from a console. Is there a way to call a script which opens the login window, where I can login as a user and then the operator window opens? Let's say the common way to access the HMI from the operator's view.

Thanks in advance
Peter
The administrator has disabled public write access.

Re:start pwrdemo as 'operator' 15 years 10 months ago #218

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Hi Peter,

To start xtt in operator mode you send an OpPlace object as argument to rt_xtt. In the demo project there is an OpPlace object, Nodes-DemoNode-Op, that you can use.

The normal way to setup an operator station is to create a linux user and add a session startup script in the deskop for xtt. The script could look something like

[code:1]#!/bin/bash
source /etc/pwrp_profile
$pwr_exe/rt_xtt Nodes-DemoNode-Op -q -l sv_se &[/code:1]

In Gnome the script is added in Sessions/Startup Program.

The proview user is feched from the UserName attribute of the User object (Nodes-DemoNode-Op-User.UserName in the demo project) and this user gives the privileges for the operator. You can use one of the predefined users (system, op1, op2 etc) or create new users in the user database.

/Claes

Post edited by: claes, at: 2008/05/20 15:18
The administrator has disabled public write access.

Re:start pwrdemo as 'operator' 15 years 10 months ago #219

  • aop
  • aop's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 59
  • Karma: 0
That's it - It works!
Thank you for your support, Claes.

Hope there will come a time, where I can bring my part to this forum.

Cheers Peter
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 9.012 seconds