background image

— 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, %

  

  } 

 }

}

Summary of Contents for YDTA-04N

Page 1: ...User Manual Tank Adapter YDTA 04 also covers models YDTA 04N Firmware version 1 00 2021...

Page 2: ...Yacht Devices Tank Adapter YDTA 04 is certified by the National Marine Electronics Association NMEA 2000 is a registered trademark of the National Marine Electronics Association SeaTalk NG is a regist...

Page 3: ...ion with Presets Button 18 VI Configuration with Installation Description Strings 20 VII Digital Switching 27 VIII Firmware Updates 32 Appendix Troubleshooting 34 Appendix B NMEA 2000 Messages Support...

Page 4: ...s are supported or in parallel with a Volvo Penta engine s MDI Mechanical Diesel Interface box The four measuring channels of the Device may have individual settings Fluid tank level sensor readings c...

Page 5: ...cost of equipment installation and configuration as well as shipping of the defective Device to the manufacturer 5 Responsibility of the manufacturer in case of any damage as a consequence of the Dev...

Page 6: ...6 I Product Specification Figure 1 Drawing of Tank Adapter YDTA 04N...

Page 7: ...6 V Voltage output sensor supported range 0 16 V Fluid level sensors resistance range 0 400 Ohm Analog gauge coils resistance range 0 10 000 Ohm Sensor resistance voltage measurement accuracy 1 Device...

Page 8: ...by water The Device has two mount holes see Section I 4 mm in diameter Use the supplied screws to fix the Device on a flat surface The orientation is not important However when the holes of wire termi...

Page 9: ...t to RESISTIVE refer to Section VI this is the factory setting 1 2 Sensor for Volvo engines with MDI unit If the fuel tank level sensor is connected to the Volvo engine MDI Mechanical Diesel Interface...

Page 10: ...your tank level sensor can be of two types with one measuring coil the gauge has only two terminals or with two measuring coils the gauge has three terminals You may have a combined gauge equipped wit...

Page 11: ...nal to the fuel sensor s ground terminal If you have the combined gauge connect the SENS terminal to the fluid level sensor output or before the button You should also configure the channel and set th...

Page 12: ...see Figure 3 and the GND terminal to the gauge s Ground terminal You should also configure the channel and set the CONNECTION setting to 2COIL for connection scheme shown on the right part of Figure 3...

Page 13: ...in the range of 0 16 Volts Configure the sensor to activate this output mode if necessary Connect the SENS terminal to the Voltage output of the sensor and the GND terminal to Ground or of the sensor...

Page 14: ...ctor to ensure its water resistance and reliability The Device is powered from the NMEA 2000 network and has LEDs which flash red or green After the NMEA 2000 network power is turned on the status LED...

Page 15: ...eration the Device s status LED blinks every 2 5 seconds GREEN flashes mean that all messages were sent by the Device without errors RED indicates a problem on the NMEA 2000 backbone Channel LEDs do n...

Page 16: ...ed with the second method will be lost after switching the preset with the first method When you selected the preset with the first method and alter any setting with the second method the actual prese...

Page 17: ...he second method only can improve the accuracy of readings D Calibration Resistive fuel level sensors do not take the shape of the fuel tank into account therefore the readings usually have substantia...

Page 18: ...D is on binary 0001 Settings of the active preset will be applied immediately and you can check the configuration on MFD screen or instrument displays are numbers correct or not To save the selected p...

Page 19: ...0 33 Ohm 9 1001 A MDI unit fuel tank 0 B waste tank 0 CD fresh water 0 and 1 Sensors are of resistive type EUR 10 180 Ohm 10 1010 AB MDI units fuel tanks 0 and 1 CD fresh water 0 and 1 Sensors are of...

Page 20: ...lers to specify the device location or to leave notes or contact information They can be set with a PC software and a hardware gateway to the NMEA 2000 network Some models of chart plotters also allow...

Page 21: ...Devices NMEA 2000 Wi Fi Gateway Yacht Devices NMEA 2000 Ethernet Gateway Yacht Devices NMEA 2000 USB Gateway or Yacht Devices NMEA 2000 Wi Fi Router is required to connect the PC to the NMEA 2000 netw...

Page 22: ...993 127505 or 127496 see Appendix B Set transmitting interval for specified PGN the value is in milliseconds OFF or 0 disable periodic PGN transmission Example 1 Set the periodic transmission interval...

Page 23: ...e tank of channel B to fresh water two options YD FLUID B WATER YD FLUID B 1 2 3 YD CAPACITY A D UNKNOWN 0 99999 Sets the capacity of tank at the specified channel in liters Factory setting is UNKNOWN...

Page 24: ...number corresponds to an empty tank and the second to a full tank or as EUR equal to 10 180 USA 240 33 or JAP 0 310 The range specified by numbers is limited by 0 400 or 400 0 intervals borders can be...

Page 25: ...connection types 3 5 YD VOLTS_SENSOR A D 0 00 16 00 0 00 16 00 This setting is applicable to the VOLTAGE connection type only The second parameter in Volts is the sensor s voltage when the tank is em...

Page 26: ...bration point 7th value in the calibration string To simplify obtaining the calibration string we prepared an Excel file available on our web site You only need to specify your gauge s readings and th...

Page 27: ...d with Standard PGNs 127501 and 127502 The Device can send commands to turn on off electrical loads connected to external NMEA 2000 two state devices e g relay banks The Tank Adapter is compatible not...

Page 28: ...28 Figure 1 Automatic management of ballast tanks with YDCC 04 and YDTA 04...

Page 29: ...shown above You can specify one ON and one OFF rule with the same number Example 1 Turn on the digital switching channel 1 of the digital switching bank 5 if the sensor connected to channel D is not...

Page 30: ...evice to manage the ballast tank system shown in Figure 1 When tank 2 s level connected to channel D is less than 20 for 10 seconds or more turn on the pump until the level in tank 2 is more than 70 W...

Page 31: ...Turns on digital switching channel 3 on bank 0 if the level in the tank connected to channel A is less than 20 for at least 10 seconds After 5 minutes 300 seconds plus 10 seconds for activation of th...

Page 32: ...the YDTA04 BIN file to the disk The README TXT file inside the archive can contain important information regarding the update 1 Click the NMEA 2000 Devices item in the View menu 2 Click the Refresh b...

Page 33: ...33 Figure 1 Firmware update with CAN Log Viewer...

Page 34: ...ridge YDNB 07 to divide your network into separate segments Channel LED flashes RED every 2 5 seconds MFD displays Equipment failure alert for the Device 1 Fluid level sensor connection issue Check if...

Page 35: ...Perform calibration as described in Section VI 4 1 The Device is displayed in the list of devices on the chart plotter but fluid level data does not appear on the screen status LED flashes GREEN 1 In...

Page 36: ...0xEE00 Yes Yes ISO Commanded Address PGN 65240 0xFED8 Yes No NMEA Group Function PGN 126208 0x1ED00 Yes Yes PGN List Group Function PGN 126464 0x1EE00 No Yes Heartbeat PGN 126993 0x1F011 No Yes 1 Pro...

Page 37: ...in the Adapter s settings refer to Section VI Note 3 Sent only if YD JOIN command was used see Section VI 4 the default transmission internal is 1 second can be changed in Adapter s settings If some o...

Page 38: ...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 o...

Page 39: ...valid load SLOT3 Prepare stop pump command H H 0 0180 M_PI To degrees if H 0 Heeling to starboard if H 20 0 if A 100 Is level in A not 100 load SLOT1 Run pump command else Heeling to port if H 0 20 0...

Page 40: ......

Reviews: