Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpa
libs
pucrio-tecgraf
Commits
5bbeb8b1
Commit
5bbeb8b1
authored
Sep 01, 2021
by
Bernardo Quaresma Dias
Browse files
Correção de erro na aplicação de du_proteção padrão
- atualização de painel antigolf INSTMPA-1328
parent
843acd0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib-antigolf-4_3.mpad
View file @
5bbeb8b1
...
...
@@ -2,9 +2,9 @@
-- Copyright (C) 2003-2021 Tecgraf/PUC-Rio, PETROBRAS S/A
-- Instituto Tecgraf <mpa@tecgraf.puc-rio.br>
-- Arquivo gerado pelo programa MPA
-- Verso: 6.6
rc20210713
-- Verso: 6.6
-- Arquivo: lib-antigolf.mpad
-- Data:
2
1/0
7
/2021 10:2
4:39
-- Data:
0
1/0
9
/2021 10:2
6:11
-- =============================================================================
MPA_5_0 = true
...
...
@@ -3389,7 +3389,7 @@ Diagrams = {
beforemsg = nil,
aftermsg = nil,
expressions = {
"
-
9999",
"9999",
},
variables = {
"du_prot",
...
...
lua/pannels/antigolf.lua
View file @
5bbeb8b1
...
...
@@ -81,8 +81,14 @@ local function createModAntigolfPannel(instid, classid)
local
mon_pfundo
=
getinstance
(
tag_mon_pfundo
,
'mod_antigolf_monPrsFundo'
)
local
poco
=
getinstance
(
antigolf
.
e_poco
,
'poco'
)
local
sdv
=
getinstance
(
poco
.
sdv
,
'valvula_on_off'
)
local
choke
=
getchoke
(
instid
)
local
sdv_box
=
{
alignment
=
'ACENTER'
}
sdv_box
[
#
sdv_box
+
1
]
=
sdv
.
indicacao_fechado
and
ihm
.
Named
(
ihm
.
Boolean
(
sdv
.
indicacao_fechado
),
"SDV Fch."
)
sdv_box
[
#
sdv_box
+
1
]
=
sdv
.
indicacao_aberto
and
ihm
.
Named
(
ihm
.
Boolean
(
sdv
.
indicacao_aberto
),
"SDV Ab."
)
-- opcionais
local
otm_sp
local
tag_otm_sp
=
antigolf
.
m_otm_pos_alvo_choke
...
...
@@ -125,6 +131,11 @@ local function createModAntigolfPannel(instid, classid)
local
chave_hab_otm
=
otm_sp
and
getinstance
(
otm_sp
.
chave_hab
,
'chave'
)
local
habs_box
=
{
alignment
=
'ACENTER'
}
habs_box
[
#
habs_box
+
1
]
=
ihm
.
Named
(
ihm
.
Boolean
(
chave_hab
.
atuacao
),
"Hab."
)
habs_box
[
#
habs_box
+
1
]
=
chave_hab_otm
and
ihm
.
Named
(
ihm
.
Boolean
(
chave_hab_otm
.
atuacao
),
"Hab. Otm."
)
local
box
=
{
alignment
=
'ARIGHT'
;
ihm
.
Named
(
ihm
.
Number
(
tag_ptopo
),
"Prs. Topo"
),
ihm
.
Named
(
ihm
.
Number
(
ptopo_max
),
"Prs. Topo Mx."
),
...
...
@@ -135,10 +146,10 @@ local function createModAntigolfPannel(instid, classid)
ihm
.
Named
(
ihm
.
Number
(
pos_max
),
"Pos. Mx."
),
ihm
.
Named
(
ihm
.
Number
(
cmd_pos
),
"Cmd. Pos."
),
ihm
.
Named
(
ihm
.
Number
(
ind_pos
),
"Ind. Pos."
),
ihm
.
Named
(
ihm
.
Boolean
(
chave_hab
.
atuacao
),
"Hab."
),
iup
.
hbox
(
sdv_box
),
iup
.
hbox
(
habs_box
),
ihm
.
Named
(
ihm
.
Number
(
sp_choke
),
"SP Pos."
),
iup
.
fill
{
expand
=
"VERTICAL"
},
chave_hab_otm
and
ihm
.
Named
(
ihm
.
Boolean
(
chave_hab_otm
.
atuacao
),
"Hab. Otm."
),
tag_mon_osc
and
ihm
.
Named
(
ihm
.
Number
(
tag_mon_osc
,
'mod_antigolf_monOscPrsFundo'
,
'calc_amp_osc'
),
"Amp Osc."
),
}
...
...
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