Plancia configurabile su Modbus RTU

Due programmi che condividono uModbusRTU e uGauge:

- Console/PlanciaConsole: plancia nautica descritta da file XML, con
  modalita' plancia e modalita' configurazione. Comandi, spie, selettori,
  strumenti e allarmi sonori; il bus gira in un thread suo perche' la
  finestra non si fermi mai.
- ProjectPlancia: il programma di prova piu' vecchio, usato per collaudare
  i canali.

Le plance sono in Console/*.xml, la documentazione in Console/LEGGIMI.md.
Esclusi dal versionamento i compilati (.exe, .dcu), i file dell'IDE e un
audio da 17 MB.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
f.bittiandClaude Opus 5 committed 2026-09-22 16:56:34 +02:00
commit 4a01a2ec88
69 files changed
+11658

No files matched your search

+92
View File
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8"?>
<plancia version="1">
<connection port="COM7" baud="9600" timeoutMs="500" pollMs="500"/>
<panel title="ZEBRA + ANTAGO - Plancia multifunzione" width="1900" height="1080" background="mfd-sfondo" ink="#E6E8EA"/>
<images>
<image name="mfd-sfondo" file="immagini\mfd-sfondo.png"/>
<image name="antago-barca-chiara" file="immagini\antago-barca-chiara.png"/>
</images>
<elements>
<element kind="switch" caption="WHITE LT" slave="1" channel="4" left="36" top="42" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="NAVIGATION LTS" slave="1" channel="5" left="36" top="126" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="STERN LT" slave="1" channel="6" left="36" top="210" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="ANCHOR LT" slave="1" channel="8" left="36" top="294" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="COMPASS LT" slave="1" channel="9" left="36" top="378" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="SUB LIGHT" slave="1" channel="11" left="36" top="462" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="INSTRUM.LTS" slave="1" channel="22" left="36" top="546" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="INSTRUMENTS" slave="1" channel="12" left="36" top="630" width="160" height="64" fontSize="13" color="#4090FF" shape="screen"/>
<element kind="switch" caption="PORT WIPER" slave="1" channel="1" left="1704" top="42" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="STBD WIPER" slave="1" channel="1" left="1704" top="126" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="button" caption="WATER WIPERS" slave="1" channel="2" left="1704" top="210" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="WASH PUMP" slave="1" channel="16" left="1704" top="294" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="WINCH ON" slave="1" channel="17" left="1704" top="378" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="button" caption="WINCH UP" slave="1" channel="10" left="1704" top="462" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="button" caption="WINCH DOWN" slave="1" channel="3" left="1704" top="546" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="GSM" slave="1" channel="20" left="1704" top="630" width="160" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="gauge" caption="230V AC VOLTMETER" slave="0" channel="0" left="245" top="48" width="240" height="268" fontSize="14" rawMin="0" rawMax="4095" engMin="0" engMax="300" units="V" warnBelow="-1E30" warnAbove="1E30" style="dial" decimals="0"/>
<element kind="gauge" caption="230V AC AMMETER" slave="0" channel="0" left="525" top="48" width="240" height="268" fontSize="14" rawMin="0" rawMax="4095" engMin="0" engMax="100" units="A" warnBelow="-1E30" warnAbove="1E30" style="dial" decimals="1"/>
<element kind="gauge" caption="SERVICES BATT. AMMETER" slave="0" channel="0" left="805" top="48" width="240" height="268" fontSize="14" rawMin="0" rawMax="4095" engMin="-100" engMax="100" units="A" warnBelow="-1E30" warnAbove="1E30" style="dial" decimals="1"/>
<element kind="gauge" caption="24V DC VOLTMETER" slave="0" channel="0" left="1085" top="48" width="240" height="268" fontSize="14" rawMin="0" rawMax="4095" engMin="0" engMax="40" units="V" warnBelow="-1E30" warnAbove="1E30" style="dial" decimals="1"/>
<element kind="display" caption="SERVICES BATT. CHARGER" slave="0" channel="0" left="1370" top="50" width="296" height="122" fontSize="15" digits="4" decimals="1" rawMin="0" rawMax="4095" engMin="0" engMax="100" units="A" warnBelow="-1E30" warnAbove="1E30"/>
<element kind="display" caption="START BATT. CHARGER" slave="0" channel="0" left="1370" top="182" width="296" height="122" fontSize="15" digits="4" decimals="1" rawMin="0" rawMax="4095" engMin="0" engMax="100" units="A" warnBelow="-1E30" warnAbove="1E30"/>
<element kind="label" caption="" left="230" top="318" width="850" height="286" color="#3A3F45" frame="rect" frameWidth="1"/>
<element kind="image" caption="" left="248" top="370" width="815" height="191" image="antago-barca-chiara"/>
<element kind="lamp" caption="" slave="2" channel="0" left="450" top="360" width="22" height="22" color="#E0C020"/>
<element kind="lamp" caption="" slave="2" channel="1" left="528" top="370" width="22" height="22" color="#E0C020"/>
<element kind="lamp" caption="" slave="2" channel="2" left="475" top="365" width="22" height="22" alarm="true" sound="engyclick-fire-alarm-beep-sound-effect-419969.mp3" color="#E0C020"/>
<element kind="lamp" caption="" slave="2" channel="3" left="505" top="390" width="22" height="22" color="#E04030"/>
<element kind="lamp" caption="" slave="2" channel="4" left="278" top="455" width="22" height="22" color="#E04030"/>
<element kind="lamp" caption="" slave="2" channel="5" left="246" top="498" width="22" height="22" color="#E04030"/>
<element kind="lamp" caption="" slave="2" channel="6" left="333" top="522" width="22" height="22" color="#E04030"/>
<element kind="lamp" caption="" slave="2" channel="7" left="493" top="505" width="22" height="22" color="#E04030"/>
<element kind="lamp" caption="" slave="2" channel="0" left="500" top="530" width="22" height="22" color="#E04030"/>
<element kind="lamp" caption="" slave="2" channel="1" left="833" top="547" width="22" height="22" color="#E08020"/>
<element kind="lamp" caption="" slave="2" channel="2" left="422" top="539" width="24" height="24" color="#E04868"/>
<element kind="label" caption="BILGES" left="388" top="567" width="92" height="24" fontSize="15"/>
<element kind="lamp" caption="" slave="2" channel="3" left="650" top="529" width="24" height="24" color="#40C040"/>
<element kind="lamp" caption="" slave="2" channel="4" left="686" top="529" width="24" height="24" alarm="true" sound="cicalino.wav" color="#E0C020"/>
<element kind="lamp" caption="" slave="2" channel="5" left="716" top="529" width="24" height="24" alarm="true" sound="cicalino.wav" color="#E0C020"/>
<element kind="label" caption="GREY WATER TANKS" left="553" top="567" width="215" height="24" fontSize="15"/>
<element kind="lamp" caption="" slave="2" channel="6" left="868" top="547" width="24" height="24" color="#E08020"/>
<element kind="label" caption="W.C. TANKS" left="818" top="571" width="140" height="24" fontSize="15"/>
<element kind="label" caption="" left="1100" top="318" width="566" height="286" color="#3A3F45" frame="rect" frameWidth="1"/>
<element kind="label" caption="PORT ENGINE" left="1116" top="330" width="250" height="30" fontSize="15" color="#4A9BFF" fontName="Arial" spacing="2" frame="round" frameWidth="2"/>
<element kind="label" caption="STBD ENGINE" left="1400" top="330" width="250" height="30" fontSize="15" color="#4A9BFF" fontName="Arial" spacing="2" frame="round" frameWidth="2"/>
<element kind="button" caption="SCROLL" slave="1" channel="25" left="1116" top="376" width="120" height="62" fontSize="13" color="#40D850" shape="screen"/>
<element kind="button" caption="RESET" slave="1" channel="26" left="1246" top="376" width="120" height="62" fontSize="13" color="#40D850" shape="screen"/>
<element kind="button" caption="STOP" slave="1" channel="30" left="1116" top="448" width="120" height="62" fontSize="13" color="#FF5038" colorOff="#3C1410" shape="screen"/>
<element kind="button" caption="START" slave="1" channel="31" left="1246" top="448" width="120" height="62" fontSize="13" color="#40D060" colorOff="#123A1C" shape="screen"/>
<element kind="button" caption="RESET" slave="1" channel="28" left="1400" top="376" width="120" height="62" fontSize="13" color="#40D850" shape="screen"/>
<element kind="button" caption="SCROLL" slave="1" channel="29" left="1530" top="376" width="120" height="62" fontSize="13" color="#40D850" shape="screen"/>
<element kind="button" caption="START" slave="1" channel="14" left="1400" top="448" width="120" height="62" fontSize="13" color="#40D060" colorOff="#123A1C" shape="screen"/>
<element kind="button" caption="STOP" slave="0" channel="0" left="1530" top="448" width="120" height="62" fontSize="13" color="#FF5038" colorOff="#3C1410" shape="screen"/>
<element kind="switch" caption="PARALLEL" slave="1" channel="27" left="1270" top="530" width="92" height="62" fontSize="13" color="#40D850" shape="screen"/>
<element kind="lamp" caption="FIRE ALARM" slave="2" channel="7" left="227" top="634" width="150" height="64" fontSize="13" color="#FF4030" colorOff="#3A1210" captionPos="center" shape="screen"/>
<element kind="lamp" caption="OIL STEERING" slave="2" channel="0" left="389" top="634" width="150" height="64" fontSize="13" color="#FF4030" colorOff="#3A1210" captionPos="center" shape="screen"/>
<element kind="switch" caption="STEERING" slave="1" channel="15" left="551" top="634" width="150" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="AUTOPILOT" slave="1" channel="13" left="713" top="634" width="150" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="switch" caption="TVCC" slave="1" channel="19" left="875" top="634" width="150" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="button" caption="HORN" slave="1" channel="21" left="1037" top="634" width="150" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="button" caption="TACIT" slave="1" channel="23" left="1199" top="634" width="150" height="64" fontSize="14" color="#40D850" shape="screen"/>
<element kind="switch" caption="Luce" slave="1" channel="26" left="1361" top="634" width="150" height="64" fontSize="13" color="#40D850" shape="screen"/>
<element kind="button" caption="Horn" slave="1" channel="27" left="1523" top="634" width="150" height="64" fontSize="15" color="#40D850" shape="screen"/>
<element kind="rotary" caption="24V DC FAN" slave="1" channel="18" left="39" top="740" width="190" height="150" fontSize="13" positions="2" legend="OFF ◀ ▶ ON"/>
<element kind="rotary" caption="CONTACT PORT" slave="0" channel="0" left="1120" top="520" width="110" height="80" fontSize="13" positions="2" legend=""/>
<element kind="rotary" caption="" slave="0" channel="0" left="1370" top="510" width="120" height="90" fontSize="13" positions="3" legend="PORT ◀ 0 ▶ STBD"/>
<element kind="rotary" caption="CONTACT STBD" slave="0" channel="0" left="1530" top="520" width="120" height="80" fontSize="13" positions="2" legend=""/>
<element kind="rotary" caption="230V AC FAN" slave="1" channel="24" left="240" top="740" width="190" height="150" fontSize="13" positions="3" legend=" FAN ◀ 0 ▶ BLOWER"/>
<element kind="rotary" caption="230V AC VOLTMETER" slave="1" channel="15" left="1480" top="730" width="190" height="150" fontSize="13" positions="3" legend="S.SUPPLY ◀ 0 ▶ GENERAT."/>
<element kind="rotary" caption="24V DC VOLTMETER" slave="1" channel="2" left="1680" top="730" width="190" height="150" fontSize="13" positions="3" legend="SERV.BTT. ◀ 0 ▶ START BTT."/>
<element kind="rotary" caption="GENERATOR" slave="1" channel="4" left="830" top="730" width="190" height="150" fontSize="13" positions="3" legend="STOP ◀ 0 ▶ START" momentary="true"/>
<element kind="rotary" caption="MAIN POWER" slave="1" channel="8" left="640" top="730" width="190" height="150" fontSize="13" positions="3" legend="SHORE ◀ 0 ▶ GEN."/>
<element kind="rotary" caption="AIR CONDITIONER" slave="1" channel="6" left="39" top="896" width="190" height="150" fontSize="13" positions="2" legend="OFF ◀ ▶ ON"/>
<element kind="rotary" caption="ALARMS" slave="1" channel="10" left="243" top="896" width="190" height="150" fontSize="13" positions="3" legend="TACIT ◀ 0 ▶ TEST" momentary="true"/>
<element kind="rotary" caption="SEWAGE PUMP" slave="1" channel="12" left="440" top="900" width="190" height="150" fontSize="13" positions="2" legend="OFF ◀ ▶ ON"/>
<element kind="rotary" caption="SERV. BATT." slave="1" channel="14" left="1210" top="730" width="190" height="150" fontSize="13" positions="2" legend="OFF ◀ ▶ ON"/>
<element kind="rotary" caption="START BATT." slave="1" channel="16" left="1020" top="730" width="190" height="150" fontSize="13" positions="2" legend="OFF ◀ ▶ ON"/>
<element kind="rotary" caption="ENG.ROOM PUMP" slave="1" channel="18" left="640" top="900" width="190" height="150" fontSize="13" positions="2" legend="OFF ◀ ▶ ON"/>
<element kind="rotary" caption="AFT AUT. P." slave="1" channel="20" left="830" top="900" width="190" height="150" fontSize="13" positions="3" legend="PORT ◀ 0 ▶ STBD"/>
<element kind="rotary" caption="FORE AUT. PUMP" slave="1" channel="22" left="1020" top="900" width="190" height="150" fontSize="13" positions="2" legend="OFF ◀ ▶ ON"/>
<element kind="rotary" caption="CNT AUT. PUMP" slave="1" channel="24" left="1210" top="900" width="190" height="150" fontSize="13" positions="2" legend="OFF ◀ ▶ ON"/>
</elements>
</plancia>