User Tools

Site Tools


internal:proddocs:3155

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
internal:proddocs:3155 [2021/09/22 13:13] chrissyinternal:proddocs:3155 [2023/11/27 10:16] (current) kacper
Line 1: Line 1:
-====== 3155 Build Instructions ======+======3155/9011 Build Instructions ======
  
 ====== Programming ====== ====== Programming ======
  Modbus to Nmea 2000 gateway flashing guide  Modbus to Nmea 2000 gateway flashing guide
-Connect the Modbus gateway to the Atmel AVR ISP via the 6 pin header labled PL2 on the Modbus gatew+Connect the Modbus to the NMEA Network and STM32 Programmer
  
-{{:internal:proddocs:3155.png?600|}}{{:internal:proddocs:3155-1.jpg?600|}}+{{:internal:proddocs:3155setup.jpg?600|}}
  
-The Pink Stripe on the Connector designates where pin one is located +Turn on 12V NMEA Power.
-Connect the CAN Power source 12volt from the power supply+
  
-Open AVR Studio 5.1+{{:internal:proddocs:3155supply.jpg?600|}}
  
-{{:internal:proddocs:3155_2.png?600|}}+Open STM32CubeProgrammer and open the programming tab
  
-Upon opening of AVR Studio 5.1 you will be greeted with these two screens +{{:internal:proddocs:stm32cubeprogrammer.png?600|}}
-After the program has loaded click “Tools” then “AVR Programming” +
-       +
-{{:internal:proddocs:3155-4.png?600|}}+
  
-You will then see this screen+Connect to the Unit and select the file path: S:\Code\Production\3155 Modbus Gateway\3155bootloader.bin
  
-Select the tool you wish to use for programming your device, in this case we need to use the “AVRISP mkII” so make sure this is selected from the drop down menu.+{{:internal:proddocs:3155programmingpath.png?600|}}
  
-Select the device you wish to usein this case we are using the “Atmel AT90CAN64” so make sure this is selected from the drop down menu.+click 'Start Programming', the unit should have its blue LED constantly on.
  
-The interface we will to use is “ISP” (in system programming)+Open Monex and click "Get Serial" and "Get ProdInfo", you should receive "OCEANIC BOOTLOADER 3155-L4"
  
-Then Click the Apply button.+{{:internal:proddocs:monex3155prodinfo.png?600|}}
  
- {{:internal:proddocs:3155-3.png?600|}}+Now go to the Programming tab
  
-After you have clicked Apply this window should now appear. +{{:internal:proddocs:monexprogrammingtab.png?600|}}
-Set the ISP Clock frequency to 125khz if not already set.+
  
-{{:internal:proddocs:3155-6.png?600|}}+Make sure the Target Device Instance matched the switch on the unit and click 3155
  
-After the ISP Clock is set you when then need to click on fuses in the left hand menu +{{:internal:proddocs:3155programmingbuttonmonex.png?600|}}
  
-You shall then be greeted with this screen where we will need to change some values. +Press Reprogram! and select S:\Code\Production\3155 Modbus Gateway\3155.bin
-  +
-Check you have selected the required parameters then click the “Program” button+
  
- {{:internal:proddocs:3155-7.png?600|}}+The unit will start to program, wait until "Re-booting to Application Code" is displayed, the unit will not have the Blue led flash every 2 seconds.
  
-  * Starting operation read registers +Go into Monex and press 'Get ProdInfo' again, it should display what you can see below:
-  * Reading register EXTENDED...OK +
-  * Reading register HIGH...OK +
-  * Reading register LOW...OK +
-  * Read register LOW...OK +
-  * Read registers...OK +
-   If everything went OK then this message should be output at the bottom of the AVR Programming window+
  
-After you have successfully set and programmed the fuses it is now the time to load the firmware onto the device. +{{:internal:proddocs:3155afterproggetprodinfo.png?600|}}
-Now select the file to flash  +
-Click the memories tab+
  
-{{:internal:proddocs:3155-8.png?600|}} 
- 
-It will then open this dialogue. Select the latest version .hex file from the Modbus gateway folder and click “Open”  
-Check you have selected the correct .hex file from the folder and that your settings are correct  
-  
-   {{:internal:proddocs:3155-9.png?600|}} 
-    
-   If you are satisfied that the correct .hex file is selected and your fuse and settings are correct then we can proceed in  
-flashing the .hex file to the Atmel 90CAN64 
-Click “Program”  
-  
-{{:internal:proddocs:3155-10.png?600|}}    
- 
-After Programming has completed you will be presented with this output at the bottom of the window 
-You can now close AVR Studio 5.1 and turn off the CAN Power at the power supply you may now disconnect the 
-CAN power source and the 6 pin AVR ISP plug from PL2 on the Modbus gateway. 
- 
- 
- 
-    
 ====== Test Procedure ====== ====== Test Procedure ======
  
Line 96: Line 61:
 Connect the USB to RS-485 Converter to the 3155 screw in terminal blocks as shown, tighten with flat head screwdriver (**not too hard**). Connect the USB to RS-485 Converter to the 3155 screw in terminal blocks as shown, tighten with flat head screwdriver (**not too hard**).
  
-{{:internal:proddocs:modbus_3155.jpg?800|}}+{{:internal:proddocs:3155modbusconnection.jpg?600|}}
  
 ==== Step 2 ==== ==== Step 2 ====
Line 125: Line 90:
  
 Modbus Mode: RTU Modbus Mode: RTU
 +
 Slave Address: 16 Slave Address: 16
 +
 Scan Rate: 1000 Scan Rate: 1000
 +
 Function Code: Read Input Registers (0x04) Function Code: Read Input Registers (0x04)
-Start Address: (Dec)+ 
 +Start Address: 52 (Dec) (**NOTE** For 9011 this value shall be 46) 
 Number of Registers: 1 Number of Registers: 1
 +
 Data Format: Hex Data Format: Hex
 +
  
 {{:internal:proddocs:rtu_readings.png?800|}} {{:internal:proddocs:rtu_readings.png?800|}}
Line 140: Line 112:
  
 ==== Step 7 ==== ==== Step 7 ====
 +
 +Open Monex, then from the transmit controls on the left, press the "Tx Enable" button for the first sender.
 +
 +{{:internal:proddocs:2.png?400|}}
 +
 +==== Step 8 ====
 Click the Scan Button  Click the Scan Button 
  
 {{:internal:proddocs:scan_rtu.png?600|}} {{:internal:proddocs:scan_rtu.png?600|}}
  
-A 4 digit number should appear in the big white box below, it should keep changing value with each new scan.+A 4 digit number should appear in the big white box below, it should read 0000. Move the slider in Monex to 50 and it should read 30D4. Move the slider to 100 and it should read 61A8.
  
 {{:internal:proddocs:rtu_value_receive.png?800|}} {{:internal:proddocs:rtu_value_receive.png?800|}}
  
-**If a Value is receive succesfully and keeps changing value then testing is completed**+Now test the modbus configuration by setting the Hex switch on the 3155 to '6'. Press a magnet up to the reed swith, the Blue led should light solid blue. 
 + 
 +Set Qmodbus master settings again to 4,800 Baudrate, Odd Parity, 1 stop bit 
 + 
 +{{:internal:proddocs:3155-6-settings.png?600|}} 
 + 
 +the hex switch should have been left on '6', so now change the slave address to 22 
 + 
 +{{:internal:proddocs:3155-slaveaddress22.png?600|}} 
 + 
 +Request the data again and the data shown should be the same as above 
 + 
 +**If a Values are received successfully then testing is completed - RETURN SWITCH TO 0 AND PRESS MAGNET TO DEVICE TO RETURN TO DEFAULT SETTINGS** 
 + 
 +==== Packaging ==== 
 + 
 +Use RPT112  with Insert 200374 
 + 
 +{{:internal:proddocs:3155..2.jpg?600|}} 
 + 
 + --- //[[chrissy@osukl.com|Christine Walsh]] 23/09/2021 08:41// updated  
internal/proddocs/3155.1632316427.txt.gz · Last modified: 2023/07/12 14:11 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki