Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
5c45bcff
Commit
5c45bcff
authored
Jun 24, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Login as Proview user required, login and show user command added
parent
62ac2af5
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
220 additions
and
147 deletions
+220
-147
src/lib/rt/src/rt_rtt_functions.h
src/lib/rt/src/rt_rtt_functions.h
+5
-2
src/lib/rt/src/rt_rtt_global.h
src/lib/rt/src/rt_rtt_global.h
+3
-1
src/lib/rt/src/rt_rtt_helptext.h
src/lib/rt/src/rt_rtt_helptext.h
+18
-1
src/lib/rt/src/rt_rtt_menu.c
src/lib/rt/src/rt_rtt_menu.c
+176
-122
src/lib/rt/src/rt_rtt_menu.h
src/lib/rt/src/rt_rtt_menu.h
+18
-21
No files found.
src/lib/rt/src/rt_rtt_functions.h
View file @
5c45bcff
/*
* Proview $Id: rt_rtt_functions.h,v 1.
2 2005-09-01 14:57:56
claes Exp $
* Proview $Id: rt_rtt_functions.h,v 1.
3 2008-06-24 07:39:57
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -23,7 +23,8 @@
/* Module rs_rtt_menu.c */
int
rtt_gdh_init
(
void
);
int
rtt_initialize
(
char
*
login
,
int
rtt_initialize
(
char
*
username
,
char
*
password
,
char
*
commandfile
,
char
*
mainmenu_title
);
...
...
@@ -393,6 +394,8 @@ char *rtt_pwr_dir( char *dir);
int
rtt_ctx_push
(
menu_ctx
ctx
);
int
rtt_ctx_pop
();
menu_ctx
rtt_current_ctx
();
int
rtt_logon_pict
(
unsigned
long
*
chn
,
unsigned
long
*
priv
);
/* Module rs_rtt_crr.c */
...
...
src/lib/rt/src/rt_rtt_global.h
View file @
5c45bcff
/*
* Proview $Id: rt_rtt_global.h,v 1.
4 2005-11-22 12:20:19
claes Exp $
* Proview $Id: rt_rtt_global.h,v 1.
5 2008-06-24 07:39:57
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -49,6 +49,7 @@ extern rtt_t_db rtt_appl_db[];
extern
rtt_t_db
rtt_rttsys_db
[];
extern
char
rtt_time
[
80
];
extern
unsigned
long
rtt_priv
;
extern
char
rtt_user
[
40
];
extern
char
rtt_ConfigureObject
[
80
];
extern
pwr_tObjid
rtt_UserObject
;
extern
char
rtt_DefaultVMSNode
[
80
];
...
...
@@ -125,6 +126,7 @@ unsigned long rtt_chn[4];
rtt_t_recall
*
rtt_recallbuff
;
rtt_t_recall
*
rtt_value_recallbuff
;
unsigned
long
rtt_priv
;
char
rtt_user
[
40
]
=
""
;
char
rtt_time
[
80
];
char
rtt_hw
[
20
];
char
rtt_platform
[
20
];
...
...
src/lib/rt/src/rt_rtt_helptext.h
View file @
5c45bcff
/*
* Proview $Id: rt_rtt_helptext.h,v 1.
3 2005-09-01 14:57:56
claes Exp $
* Proview $Id: rt_rtt_helptext.h,v 1.
4 2008-06-24 07:39:57
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -96,6 +96,7 @@ exit\n\
learn start/file=
\n
\
learn stop
\n
\
logging...
\n
\
login
\n
\
help
\n
\
page
\n
\
plcscan /on /off /hierarchy= /all
\n
\
...
...
@@ -134,6 +135,7 @@ show signals\n\
show system
\n
\
show subcli
\n
\
show subsrv
\n
\
show user
\n
\
show device
\n
\
store /file= /collect
\n
\
top
\n
\
...
...
@@ -187,6 +189,7 @@ pwr_rtt> show clock\n\
pwr_rtt> show alarm
\n
\
pwr_rtt> show event
\n
\
pwr_rtt> show symbol
\n
\
pwr_rtt> show user
\n
\
"
},
#ifdef OS_ELN
{
1
,
"SHOW SYSTEM"
,
""
,
...
...
@@ -492,6 +495,11 @@ Show the value of a symbol or show all the defined symbols.\n\n\
pwr_rtt> show symbol 'symbol_name'
\n
\
pwr_rtt> show symbol [/all]
\n
\
"
},
{
1
,
"SHOW USER"
,
""
,
"\
Show the current user with name and privileges.
\n\n
\
pwr_rtt> show user
\n
\
"
},
{
1
,
"MONITOR GRAFCET"
,
""
,
"\
Display the active steps and orders of a grafcet sequence.
\n\n
\
...
...
@@ -785,6 +793,15 @@ pwr_rtt> logging show /entry=\n\
pwr_rtt> logging store [/entry=]/file=
\n
\
pwr_rtt> logging store /all/file=
\n
\
"
},
{
1
,
"LOGIN"
,
""
,
"\
Login as a Proview user with username and password.
\n
\
The login command will open the login frame which promps for
\n
\
username and password.
\n
\
\n
\
pwr_rtt> login
\n
\
"
},
{
1
,
"SET"
,
""
,
"\
List of set commands:
\n\n
\
...
...
src/lib/rt/src/rt_rtt_menu.c
View file @
5c45bcff
This diff is collapsed.
Click to expand it.
src/lib/rt/src/rt_rtt_menu.h
View file @
5c45bcff
/*
* Proview $Id: rt_rtt_menu.h,v 1.
4 2005-09-06 14:17:56
claes Exp $
* Proview $Id: rt_rtt_menu.h,v 1.
5 2008-06-24 07:39:57
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -364,43 +364,40 @@ unsigned int rtt_exception( void *signalP, void *mechanismP); \
int main(int argc, char *argv[]) \
{ \
int sts, i; \
char login[20]; \
char username[40]; \
char password[40]; \
char commandfile[80]; \
\
VAXC$ESTABLISH( rtt_exception); \
rtt_args = argc - 1; \
for ( i = 0; i < rtt_args; i++) \
{ \
for ( i = 0; i < rtt_args; i++) { \
if ( i >= (int)(sizeof(rtt_arg)/sizeof(rtt_arg[0]))) \
break; \
strncpy( rtt_arg[i], argv[i+1], sizeof(rtt_arg[i]));\
rtt_toupper( rtt_arg[i], rtt_arg[i]); \
} \
if ( argc >= 2 ) \
{ \
strcpy( login, argv[1]); \
rtt_toupper( login, login); \
if ( argc >= 3 ) \
{ \
strcpy( commandfile, argv[2]); \
if (argc >= 4) \
{ \
strcpy(rtt_ConfigureObject,argv[3]); \
if (argc >= 5) \
{ \
strcpy( mainmenu_title, argv[4]); \
if ( argc >= 3 ) { \
strcpy( username, argv[1]); \
rtt_toupper( username, username); \
strcpy( password, argv[2]); \
if ( argc >= 4 ) { \
strcpy( commandfile, argv[3]); \
if (argc >= 5) { \
strcpy(rtt_ConfigureObject,argv[4]); \
if (argc >= 6) { \
strcpy( mainmenu_title, argv[5]); \
} \
} \
} \
else \
strcpy( commandfile, ""); \
} \
else \
{
\
strcpy(
login, "");
\
else
{
\
strcpy( username, "");
\
strcpy(
password, "");
\
strcpy( commandfile, ""); \
} \
sts = rtt_initialize(
login
, commandfile, mainmenu_title); \
sts = rtt_initialize(
username, password
, commandfile, mainmenu_title); \
sts = rtt_menu_new( 0, pwr_cNObjid, &mainmenu_ptr, rtt_mainmenu_title,\
0, RTT_MENUTYPE_STAT); \
rtt_error_msg(sts); \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment