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
691a27e1
Commit
691a27e1
authored
Nov 17, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt command 'event ack/auto' requires system priv, and doc
parent
489f952b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
2 deletions
+42
-2
src/doc/man/en_us/man_opg.dat
src/doc/man/en_us/man_opg.dat
+6
-0
src/doc/man/sv_se/man_opg.dat
src/doc/man/sv_se/man_opg.dat
+8
-2
src/wbl/pwrb/src/pwrb_c_messagehandler.wb_load
src/wbl/pwrb/src/pwrb_c_messagehandler.wb_load
+21
-0
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+7
-0
No files found.
src/doc/man/en_us/man_opg.dat
View file @
691a27e1
...
...
@@ -1984,6 +1984,12 @@ NOA acknowleges the last not A alarm.
Acknowledge all alarms.
<b>xtt> eventlist acknowledge /autoacknowledge=
Automatically acknowlege all alarms. The acknowlegde will be made cyclically with
the cycletime specified by /autoacknowledge. This function is made for test purposes
and requires System privilege.
<H2>related subjects
show alarmlist <LINK> show alarmlist
show eventlist <LINK> show eventlist
...
...
src/doc/man/sv_se/man_opg.dat
View file @
691a27e1
...
...
@@ -868,7 +868,7 @@ Database
<b>Fig Objektträdet i navigatorn
Under mappen 'Database' visas objektträdet. Här kan man navigera i objektsträdet, öppna
objekt och titta på innehållet i olika attribut i objektet. Om man har privil
i
gier kan man
objekt och titta på innehållet i olika attribut i objektet. Om man har privil
e
gier kan man
även ändra på attributvärden.
Högerklickar man på ett objekt öppnas en popupmeny med objektets metoder. Knappar för att
...
...
@@ -1942,6 +1942,12 @@ Ta bort h
Kvittera det sista larmet med angiven priritet. Prioriteten kan vara A, B, C, D, I
eller NOA. NOA kvitterar det sista larmet som inte är ett A larm.
<b>xtt> eventlist acknowledge /autoacknowledge=
Kvittera alla larm automatiskt. Kvitteringen kommer att ske cykliskt med cykeltiden
specificerad av /autoacknowledge. Den här funktionen är gjord for test och kräver
System privilegium.
<b>xtt> eventlist acknowledge /all
Kvittera alla larm.
...
...
@@ -1981,7 +1987,7 @@ helpfile <LINK> helpfile
<TOPIC> login <style> function
Kommando login
Inloggning med användare och passerord. Användarens privil
i
gier kommer
Inloggning med användare och passerord. Användarens privil
e
gier kommer
att hämtas från användardatabasen. Dessa avgör användarens behörighet.
<B>xtt> login 'username' 'password'
...
...
src/wbl/pwrb/src/pwrb_c_messagehandler.wb_load
View file @
691a27e1
...
...
@@ -72,16 +72,27 @@ SObject pwrb:Class
Body SysBody
Attr StructName = "MessageHandler"
EndBody
!/**
! Not yet implemented.
!*/
Object OutunitServer $Attribute 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
!/**
! If true, current alarm blocking are stored to file
! and recovered after a restart.
!*/
Object BlockFile $Attribute 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
!/**
! Size of event log.
! Max number of events that can be stored in the event log.
!*/
Object EventLogSize $Attribute 3
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt32"
...
...
@@ -120,11 +131,21 @@ SObject pwrb:Class
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
!/**
! Cycle time for detecting alarm conditions for supervision
! objects which detection is handled by the event monitor, that
! is supervision objects that is not in a PlcPgm and not under
! a signal object.
!*/
Object DetectTimer $Intern 6
Body SysBody
Attr TypeRef = "pwrs:Type-$Float32"
EndBody
EndObject
!/**
! Cycle time for reading status of supervision object and sending
! alarm messages.
!*/
Object MessageTimer $Intern 7
Body SysBody
Attr TypeRef = "pwrs:Type-$Float32"
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
691a27e1
...
...
@@ -2647,6 +2647,13 @@ static int xnav_eventlist_func( void *client_data,
if
(
ODD
(
dcli_get_qualifier
(
"/AUTOACKNOWLEDGE"
,
autoack_str
,
sizeof
(
autoack_str
))))
{
float
ftime
;
// Check authorization
if
(
!
(
xnav
->
priv
&
pwr_mPrv_System
))
{
xnav
->
message
(
'E'
,
"Not authorized for this operation"
);
return
XNAV__SUCCESS
;
}
int
nr
=
sscanf
(
autoack_str
,
"%f"
,
&
ftime
);
if
(
nr
!=
1
)
{
xnav
->
message
(
'E'
,
"Syntax error in time"
);
...
...
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