internal:proddocs:3155
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| internal:proddocs:3155 [2021/09/30 10:21] – chrissy | internal:proddocs:3155 [2023/11/27 10:16] (current) – kacper | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======3155 Build Instructions ====== | + | ======3155/9011 Build Instructions ====== |
| ====== Programming ====== | ====== Programming ====== | ||
| | | ||
| - | Connect the Modbus | + | Connect the Modbus to the NMEA Network and STM32 Programmer |
| - | {{: | + | {{: |
| - | The Pink Stripe | + | Turn on 12V NMEA Power. |
| - | Connect the CAN Power source 12volt from the power supply | + | |
| - | Open AVR Studio 5.1 | + | {{: |
| - | {{: | + | Open STM32CubeProgrammer and open the programming tab |
| - | Upon opening of AVR Studio 5.1 you will be greeted with these two screens | + | {{: |
| - | After the program has loaded click “Tools” then “AVR Programming” | + | |
| - | | + | |
| - | {{: | + | |
| - | You will then see this screen | + | Connect to the Unit and select the file path: S: |
| - | 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. | + | {{: |
| - | Select the device you wish to use, in this case we are using the “Atmel AT90CAN64” so make sure this is selected from the drop down menu. | + | click 'Start Programming' |
| - | The interface we will to use is “ISP” (in system programming) | + | Open Monex and click "Get Serial" |
| - | Then Click the Apply button. | + | {{: |
| - | | + | Now go to the Programming tab |
| - | After you have clicked Apply this window should now appear. | + | {{: |
| - | Set the ISP Clock frequency to 125khz if not already set. | + | |
| - | {{: | + | 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 | + | {{: |
| - | You shall then be greeted with this screen where we will need to change some values. | + | Press Reprogram! and select S: |
| - | + | ||
| - | Check you have selected the required parameters then click the “Program” button | + | |
| - | | + | 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' |
| - | * 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 | + | |
| - | After you have successfully set and programmed the fuses it is now the time to load the firmware onto the device. | + | {{: |
| - | Now select the file to flash | + | |
| - | Click the memories tab | + | |
| - | {{: | ||
| - | |||
| - | 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 | ||
| - | |||
| - | | ||
| - | |||
| - | 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” | ||
| - | |||
| - | {{: | ||
| - | |||
| - | 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. | ||
| - | |||
| - | |||
| - | Apply glue to the led's on board, then insert the yellow button. | ||
| - | |||
| - | {{: | ||
| - | |||
| - | Insert side (cut to size) panel and secure cable ties in position | ||
| - | |||
| - | {{: | ||
| - | |||
| - | Insert the front panel, final side panel check position is level | ||
| - | |||
| - | {{: | ||
| - | |||
| - | Click all other parts together partially then insert spring into orange clip and slide into position. | ||
| - | |||
| - | {{: | ||
| - | |||
| - | | ||
| - | |||
| - | label unit with the required label and print manual | ||
| - | |||
| - | Select Monex and set serial number the check Prod info. | ||
| - | |||
| - | {{: | ||
| ====== Test Procedure ====== | ====== Test Procedure ====== | ||
| Line 117: | 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**). | ||
| - | {{: | + | {{: |
| ==== Step 2 ==== | ==== Step 2 ==== | ||
| Line 146: | 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: | + | |
| + | Start Address: | ||
| Number of Registers: 1 | Number of Registers: 1 | ||
| + | |||
| Data Format: Hex | Data Format: Hex | ||
| + | |||
| {{: | {{: | ||
| Line 161: | Line 112: | ||
| ==== Step 7 ==== | ==== Step 7 ==== | ||
| + | |||
| + | Open Monex, then from the transmit controls on the left, press the "Tx Enable" | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ==== Step 8 ==== | ||
| Click the Scan Button | Click the Scan Button | ||
| {{: | {{: | ||
| - | A 4 digit number should appear in the big white box below, it should | + | A 4 digit number should appear in the big white box below, it should |
| {{: | {{: | ||
| - | **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 ' |
| + | |||
| + | Set Qmodbus master settings again to 4,800 Baudrate, Odd Parity, 1 stop bit | ||
| + | |||
| + | {{: | ||
| + | |||
| + | the hex switch should have been left on ' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Request the data again and the data shown should be the same as above | ||
| + | |||
| + | **If a Values are received successfully | ||
| ==== Packaging ==== | ==== Packaging ==== | ||
| Line 175: | Line 144: | ||
| Use RPT112 | Use RPT112 | ||
| - | add pic here | + | {{: |
| + | |||
| + | --- // | ||
internal/proddocs/3155.1632997315.txt.gz · Last modified: 2023/07/12 14:11 (external edit)