— 38 —
Appendix C. Digital Switching with NMEA 2000 Bridge
The program below turns on the ballast pump (see Figure 1 in Section VII) if the heeling is above 20 degrees
and if the tank on the relevant side is not 100% full. Please, refer to NMEA 2000 Bridge YDNB-07 manual
for details.
# Switch direction and run pump commands, PGN 127502
SLOT1 = 000EF20D FF 08 00D1FFFFFFFFFFFF # One direction (on,off,on)
SLOT2 = 000EF20D FF 08 00D4FFFFFFFFFFFF # And another (on,on,off)
SLOT3 = 000EF20D FF 08 00CFFFFFFFFFFFFF # Stop pump (off,n/a,n/a)
# Process "Fluid Level" PGN 127505
match(CAN1, 0x01F21100, 0x01FFFF00 )
{
I = get(DATA, UINT8)
F = get(DATA+1, INT16)
if (F != 0x7FFF) # Are data valid?
{
if (I == 0){
A = F * 0.004 # Tank A, %
}
if (I == 3){
D = F * 0.004 # Tank D, %
}
}
}
Содержание YDTA-04N
Страница 1: ...User Manual Tank Adapter YDTA 04 also covers models YDTA 04N Firmware version 1 00 2021...
Страница 6: ...6 I Product Specification Figure 1 Drawing of Tank Adapter YDTA 04N...
Страница 28: ...28 Figure 1 Automatic management of ballast tanks with YDCC 04 and YDTA 04...
Страница 33: ...33 Figure 1 Firmware update with CAN Log Viewer...
Страница 40: ......