Compare commits
7 Commits
d1a2b032ec
...
modbus_tcp
| Author | SHA1 | Date | |
|---|---|---|---|
| 2b49e0069e | |||
| f92bfb2e08 | |||
| 9de66f740a | |||
| a1e67d0835 | |||
| 8beff99135 | |||
| e96ca9d3f5 | |||
| 7f8361ae5b |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -45,3 +45,4 @@ JLinkLog.txt
|
||||
|
||||
# Other Files
|
||||
|
||||
/john103C6T6/MDK-ARM/john103C6T6.uvoptx
|
||||
|
||||
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -1,3 +1,7 @@
|
||||
[submodule "external_flash_eeprom"]
|
||||
path = external_flash_eeprom
|
||||
url = https://git.arktika.cyou/set506/external_flash_eeprom.git
|
||||
[submodule "labview_proj"]
|
||||
path = labview_proj
|
||||
url = https://git.arktika.cyou/Andrey/labview_proj.git
|
||||
branch = master
|
||||
|
||||
BIN
Project Backups/schem [Autosaved].pdsprj
Normal file
BIN
Project Backups/schem [Autosaved].pdsprj
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
||||
[My Computer]
|
||||
My Computer = "127.0.0.1"
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
[ProjectWindow_Data]
|
||||
ProjectExplorer.ClassicPosition[String] = "124,868,1361,1826"
|
||||
|
||||
[AB_Cache_{C8EBF7D6-657A-4E65-AEE3-B862EABA3F7F}]
|
||||
Cache_Path[Path] Line0001 = "/C/Users/z/AppData/Local/Temp/AB_Cache_{C8EBF7D6-6"
|
||||
Cache_Path[Path] Line0002 = "57A-4E65-AEE3-B862EABA3F7F}.txt"
|
||||
|
||||
[AB_Cache_{087EE1D5-3790-4A5C-A7A3-C86684E2BE1D}]
|
||||
Cache_Path[Path] Line0001 = "/C/Users/z/AppData/Local/Temp/AB_Cache_{087EE1D5-3"
|
||||
Cache_Path[Path] Line0002 = "790-4A5C-A7A3-C86684E2BE1D}.txt"
|
||||
|
||||
[AB_Cache_{B7340701-DE2A-44B0-AF07-6C66FF5DCD86}]
|
||||
Cache_Path[Path] Line0001 = "/C/Users/z/AppData/Local/Temp/AB_Cache_{B7340701-D"
|
||||
Cache_Path[Path] Line0002 = "E2A-44B0-AF07-6C66FF5DCD86}.txt"
|
||||
|
||||
[AB_Cache_{EE6280B4-6A30-4F73-8030-E414CD637626}]
|
||||
Cache_Path[Path] Line0001 = "/C/Users/z/AppData/Local/Temp/AB_Cache_{EE6280B4-6"
|
||||
Cache_Path[Path] Line0002 = "A30-4F73-8030-E414CD637626}.txt"
|
||||
|
||||
119
ds18b20.lvproj
119
ds18b20.lvproj
@@ -1,119 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Project Type="Project" LVVersion="19008000">
|
||||
<Item Name="My Computer" Type="My Computer">
|
||||
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
|
||||
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
|
||||
<Property Name="server.tcp.enabled" Type="Bool">false</Property>
|
||||
<Property Name="server.tcp.port" Type="Int">0</Property>
|
||||
<Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property>
|
||||
<Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property>
|
||||
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
|
||||
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
|
||||
<Property Name="specify.custom.address" Type="Bool">false</Property>
|
||||
<Item Name="gomno.vi" Type="VI" URL="../../gomno.vi"/>
|
||||
<Item Name="modbus_master.vi" Type="VI" URL="../modbus_master.vi"/>
|
||||
<Item Name="modbus_slave.vi" Type="VI" URL="../../HV_Source/modbus_slave.vi"/>
|
||||
<Item Name="termDallas.vi" Type="VI" URL="../termDallas.vi"/>
|
||||
<Item Name="Dependencies" Type="Dependencies">
|
||||
<Item Name="vi.lib" Type="Folder">
|
||||
<Item Name="Clear Errors.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Clear Errors.vi"/>
|
||||
<Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Error Cluster From Error Code.vi"/>
|
||||
<Item Name="Modbus Master.lvclass" Type="LVClass" URL="/<vilib>/Modbus/master/Modbus Master.lvclass"/>
|
||||
<Item Name="Modbus Slave.lvclass" Type="LVClass" URL="/<vilib>/Modbus/slave/Modbus Slave.lvclass"/>
|
||||
<Item Name="SubVIs.lvlib" Type="Library" URL="/<vilib>/Modbus/subvis/SubVIs.lvlib"/>
|
||||
</Item>
|
||||
</Item>
|
||||
<Item Name="Build Specifications" Type="Build">
|
||||
<Item Name="My DLL" Type="DLL">
|
||||
<Property Name="App_copyErrors" Type="Bool">true</Property>
|
||||
<Property Name="App_INI_aliasGUID" Type="Str">{40E93CB7-FDA1-4C19-8AE3-0F2342690D29}</Property>
|
||||
<Property Name="App_INI_GUID" Type="Str">{D4D69FF4-7E4E-46F9-A918-DB8071436980}</Property>
|
||||
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
|
||||
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
|
||||
<Property Name="Bld_buildCacheID" Type="Str">{B7340701-DE2A-44B0-AF07-6C66FF5DCD86}</Property>
|
||||
<Property Name="Bld_buildSpecName" Type="Str">My DLL</Property>
|
||||
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
|
||||
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
|
||||
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
|
||||
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/My DLL</Property>
|
||||
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
|
||||
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
|
||||
<Property Name="Bld_previewCacheID" Type="Str">{EE6280B4-6A30-4F73-8030-E414CD637626}</Property>
|
||||
<Property Name="Bld_version.build" Type="Int">1</Property>
|
||||
<Property Name="Bld_version.major" Type="Int">1</Property>
|
||||
<Property Name="Destination[0].destName" Type="Str">SharedLib.dll</Property>
|
||||
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/My DLL/SharedLib.dll</Property>
|
||||
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
|
||||
<Property Name="Destination[0].type" Type="Str">App</Property>
|
||||
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
|
||||
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/My DLL/data</Property>
|
||||
<Property Name="DestinationCount" Type="Int">2</Property>
|
||||
<Property Name="Dll_compatibilityWith2011" Type="Bool">false</Property>
|
||||
<Property Name="Dll_delayOSMsg" Type="Bool">true</Property>
|
||||
<Property Name="Dll_headerGUID" Type="Str">{D40D4CE1-A3D4-4337-A107-D7FF181A1F6A}</Property>
|
||||
<Property Name="Dll_libGUID" Type="Str">{6BF091CB-5B82-4A69-8232-D98FEA75C60C}</Property>
|
||||
<Property Name="Dll_privateExecSys" Type="Bool">true</Property>
|
||||
<Property Name="Source[0].itemID" Type="Str">{6EC34403-A46C-4C4D-AA54-72C2544BDDF7}</Property>
|
||||
<Property Name="Source[0].type" Type="Str">Container</Property>
|
||||
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
|
||||
<Property Name="Source[1].itemID" Type="Ref">/My Computer/termDallas.vi</Property>
|
||||
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
|
||||
<Property Name="Source[1].type" Type="Str">ExportedVI</Property>
|
||||
<Property Name="SourceCount" Type="Int">2</Property>
|
||||
<Property Name="TgtF_fileDescription" Type="Str">My DLL</Property>
|
||||
<Property Name="TgtF_internalName" Type="Str">My DLL</Property>
|
||||
<Property Name="TgtF_legalCopyright" Type="Str">Copyright © 2025 </Property>
|
||||
<Property Name="TgtF_productName" Type="Str">My DLL</Property>
|
||||
<Property Name="TgtF_targetfileGUID" Type="Str">{FA36A048-F0EF-42EE-B21D-99F1B1A89CD6}</Property>
|
||||
<Property Name="TgtF_targetfileName" Type="Str">SharedLib.dll</Property>
|
||||
<Property Name="TgtF_versionIndependent" Type="Bool">true</Property>
|
||||
</Item>
|
||||
<Item Name="termDallas" Type="EXE">
|
||||
<Property Name="App_copyErrors" Type="Bool">true</Property>
|
||||
<Property Name="App_INI_aliasGUID" Type="Str">{6FFBC329-834E-4724-A67C-F272BFAC2E01}</Property>
|
||||
<Property Name="App_INI_GUID" Type="Str">{5F4A30D2-D400-477F-A778-24EB5FDFA319}</Property>
|
||||
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
|
||||
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
|
||||
<Property Name="Bld_buildCacheID" Type="Str">{C8EBF7D6-657A-4E65-AEE3-B862EABA3F7F}</Property>
|
||||
<Property Name="Bld_buildSpecName" Type="Str">termDallas</Property>
|
||||
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
|
||||
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
|
||||
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
|
||||
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/termDallas</Property>
|
||||
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
|
||||
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
|
||||
<Property Name="Bld_previewCacheID" Type="Str">{087EE1D5-3790-4A5C-A7A3-C86684E2BE1D}</Property>
|
||||
<Property Name="Bld_version.build" Type="Int">1</Property>
|
||||
<Property Name="Bld_version.major" Type="Int">1</Property>
|
||||
<Property Name="Destination[0].destName" Type="Str">Application.exe</Property>
|
||||
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/termDallas/Application.exe</Property>
|
||||
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
|
||||
<Property Name="Destination[0].type" Type="Str">App</Property>
|
||||
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
|
||||
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/termDallas/data</Property>
|
||||
<Property Name="DestinationCount" Type="Int">2</Property>
|
||||
<Property Name="Source[0].itemID" Type="Str">{6EC34403-A46C-4C4D-AA54-72C2544BDDF7}</Property>
|
||||
<Property Name="Source[0].type" Type="Str">Container</Property>
|
||||
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
|
||||
<Property Name="Source[1].itemID" Type="Ref">/My Computer/termDallas.vi</Property>
|
||||
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
|
||||
<Property Name="Source[1].type" Type="Str">VI</Property>
|
||||
<Property Name="Source[2].itemID" Type="Ref">/My Computer/gomno.vi</Property>
|
||||
<Property Name="Source[2].properties[0].type" Type="Str">Run when opened</Property>
|
||||
<Property Name="Source[2].properties[0].value" Type="Bool">false</Property>
|
||||
<Property Name="Source[2].properties[1].type" Type="Str">Allow debugging</Property>
|
||||
<Property Name="Source[2].properties[1].value" Type="Bool">false</Property>
|
||||
<Property Name="Source[2].propertiesCount" Type="Int">2</Property>
|
||||
<Property Name="Source[2].type" Type="Str">VI</Property>
|
||||
<Property Name="SourceCount" Type="Int">3</Property>
|
||||
<Property Name="TgtF_fileDescription" Type="Str">termDallas</Property>
|
||||
<Property Name="TgtF_internalName" Type="Str">termDallas</Property>
|
||||
<Property Name="TgtF_legalCopyright" Type="Str">Copyright © 2025 </Property>
|
||||
<Property Name="TgtF_productName" Type="Str">termDallas</Property>
|
||||
<Property Name="TgtF_targetfileGUID" Type="Str">{FFC19120-369B-4C06-8250-2488CB234A4F}</Property>
|
||||
<Property Name="TgtF_targetfileName" Type="Str">Application.exe</Property>
|
||||
<Property Name="TgtF_versionIndependent" Type="Bool">true</Property>
|
||||
</Item>
|
||||
</Item>
|
||||
</Item>
|
||||
</Project>
|
||||
@@ -64,7 +64,7 @@ typedef struct
|
||||
#define reset_blink_delay 50
|
||||
#define rest_iter 10
|
||||
#define GPIOB11_valve MB_DATA.Coils.coils[0].state_val_bit.state_val_01
|
||||
|
||||
#define ralay_5v_on GPIOA->ODR&(1<<10);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -53,12 +53,12 @@ void MX_GPIO_Init(void)
|
||||
/*Configure GPIO pin Output Level */
|
||||
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4
|
||||
|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8
|
||||
|GPIO_PIN_9|GPIO_PIN_10|One_wire_Pin, GPIO_PIN_RESET);
|
||||
|GPIO_PIN_9|GPIO_PIN_10|One_wire_Pin, GPIO_PIN_SET);
|
||||
|
||||
/*Configure GPIO pin Output Level */
|
||||
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_10
|
||||
|GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14
|
||||
|GPIO_PIN_15, GPIO_PIN_RESET);
|
||||
|GPIO_PIN_15, GPIO_PIN_SET);
|
||||
|
||||
/*Configure GPIO pin : PA0 */
|
||||
GPIO_InitStruct.Pin = GPIO_PIN_0;
|
||||
|
||||
@@ -51,6 +51,8 @@ int fputc(int ch, FILE *f)
|
||||
/* Private define ------------------------------------------------------------*/
|
||||
/* USER CODE BEGIN PD */
|
||||
uint16_t iter,cnt=5;
|
||||
|
||||
uint8_t ralay_5v_on_var=0;
|
||||
/* USER CODE END PD */
|
||||
|
||||
/* Private macro -------------------------------------------------------------*/
|
||||
@@ -93,6 +95,7 @@ void SystemClock_Config(void);
|
||||
* @retval int
|
||||
*/
|
||||
int main(void)
|
||||
|
||||
{
|
||||
|
||||
/* USER CODE BEGIN 1 */
|
||||
@@ -118,6 +121,7 @@ int main(void)
|
||||
|
||||
/* Initialize all configured peripherals */
|
||||
MX_GPIO_Init();
|
||||
|
||||
MX_TIM1_Init();
|
||||
MX_USART1_UART_Init();
|
||||
MX_TIM2_Init();
|
||||
@@ -155,9 +159,12 @@ int main(void)
|
||||
/* USER CODE BEGIN WHILE */
|
||||
while (1)
|
||||
{
|
||||
|
||||
|
||||
if (_debug_init||MB_DATA.Coils.init_param)
|
||||
{
|
||||
_debug_init=0;
|
||||
|
||||
MB_DATA.Coils.init_param=0;
|
||||
for(int i=0;i<hdallas.onewire->RomCnt;i++)
|
||||
{
|
||||
@@ -165,8 +172,6 @@ int main(void)
|
||||
sens[i].hyst=MB_DATA.HoldRegs.set_hyst[i];
|
||||
}
|
||||
|
||||
// init_all_T_sense();
|
||||
//DS18B20_Search(&DS, &OW);
|
||||
|
||||
|
||||
}
|
||||
@@ -184,31 +189,43 @@ int main(void)
|
||||
sens[i].set_temp = MB_DATA.HoldRegs.set_Temp[i];
|
||||
MB_DATA.InRegs.sens_Temp[i]=sens[i].temperature*10;
|
||||
|
||||
if (sens[i].temperature<sens[i].set_temp-sens[i].hyst)
|
||||
|
||||
|
||||
ralay_5v_on_var=MB_DATA.Coils.coils[1].state_val_bit.state_val_05;
|
||||
if (ralay_5v_on_var)
|
||||
{
|
||||
|
||||
MB_DATA.Coils.coils[0].all|=1<<i;
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
|
||||
if (sens[i].temperature>sens[i].set_temp+sens[i].hyst)
|
||||
{
|
||||
|
||||
MB_DATA.Coils.coils[0].all&=~(1<<i);
|
||||
|
||||
}
|
||||
if(GPIOB11_valve)
|
||||
{
|
||||
GPIOB->ODR|=1<<11;
|
||||
GPIOA->ODR|=1<<10;
|
||||
}
|
||||
else
|
||||
{
|
||||
GPIOB->ODR&=~(1<<11);
|
||||
|
||||
GPIOA->ODR&=~(1<<10);
|
||||
}
|
||||
|
||||
//// if (sens[i].temperature<sens[i].set_temp-sens[i].hyst)
|
||||
////
|
||||
//// {
|
||||
////
|
||||
//// MB_DATA.Coils.coils[0].all|=1<<i;
|
||||
////
|
||||
//// }
|
||||
////
|
||||
//// else
|
||||
////
|
||||
//// if (sens[i].temperature>sens[i].set_temp+sens[i].hyst)
|
||||
//// {
|
||||
////
|
||||
//// MB_DATA.Coils.coils[0].all&=~(1<<i);
|
||||
////
|
||||
//// }
|
||||
//// if(GPIOB11_valve)
|
||||
//// {
|
||||
//// GPIOB->ODR|=1<<11;
|
||||
//// }
|
||||
//// else
|
||||
//// {
|
||||
//// GPIOB->ODR&=~(1<<11);
|
||||
////
|
||||
//// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -215,6 +215,41 @@
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>sTime</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>13</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>ralay_5v_on_var</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>14</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>MB_DATA.Coils.coils[1].state_val_bit.state_val_01,0x0A</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>15</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>MODBUS_MSG</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>16</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>RS_RES</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>17</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>rx_buffer</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>18</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>RS_msg</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>19</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>pMessagePtr</ItemText>
|
||||
</Ww>
|
||||
</WatchWindow1>
|
||||
<WatchWindow2>
|
||||
<Ww>
|
||||
@@ -231,7 +266,7 @@
|
||||
<periodic>1</periodic>
|
||||
<aLwin>1</aLwin>
|
||||
<aCover>0</aCover>
|
||||
<aSer1>0</aSer1>
|
||||
<aSer1>1</aSer1>
|
||||
<aSer2>0</aSer2>
|
||||
<aPa>0</aPa>
|
||||
<viewmode>1</viewmode>
|
||||
@@ -266,46 +301,6 @@
|
||||
<pSingCmdsp></pSingCmdsp>
|
||||
<pMultCmdsp></pMultCmdsp>
|
||||
<SystemViewers>
|
||||
<Entry>
|
||||
<Name>System Viewer\BKP</Name>
|
||||
<WinId>35895</WinId>
|
||||
</Entry>
|
||||
<Entry>
|
||||
<Name>System Viewer\GPIOA</Name>
|
||||
<WinId>35904</WinId>
|
||||
</Entry>
|
||||
<Entry>
|
||||
<Name>System Viewer\GPIOB</Name>
|
||||
<WinId>35900</WinId>
|
||||
</Entry>
|
||||
<Entry>
|
||||
<Name>System Viewer\GPIOC</Name>
|
||||
<WinId>35896</WinId>
|
||||
</Entry>
|
||||
<Entry>
|
||||
<Name>System Viewer\IWDG</Name>
|
||||
<WinId>35905</WinId>
|
||||
</Entry>
|
||||
<Entry>
|
||||
<Name>System Viewer\PWR</Name>
|
||||
<WinId>35899</WinId>
|
||||
</Entry>
|
||||
<Entry>
|
||||
<Name>System Viewer\RCC</Name>
|
||||
<WinId>35898</WinId>
|
||||
</Entry>
|
||||
<Entry>
|
||||
<Name>System Viewer\RTC</Name>
|
||||
<WinId>35897</WinId>
|
||||
</Entry>
|
||||
<Entry>
|
||||
<Name>System Viewer\TIM1</Name>
|
||||
<WinId>35903</WinId>
|
||||
</Entry>
|
||||
<Entry>
|
||||
<Name>System Viewer\TIM2</Name>
|
||||
<WinId>35901</WinId>
|
||||
</Entry>
|
||||
<Entry>
|
||||
<Name>System Viewer\USART1</Name>
|
||||
<WinId>35902</WinId>
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
<TargetCommonOption>
|
||||
<Device>STM32F103C6</Device>
|
||||
<Vendor>STMicroelectronics</Vendor>
|
||||
<PackID>Keil.STM32F1xx_DFP.2.4.0</PackID>
|
||||
<PackURL>http://www.keil.com/pack/</PackURL>
|
||||
<PackID>Keil.STM32F1xx_DFP.2.4.1</PackID>
|
||||
<PackURL>https://www.keil.com/pack/</PackURL>
|
||||
<Cpu>IRAM(0x20000000-0x200027FF) IROM(0x8000000-0x8007FFF) CLOCK(8000000) CPUTYPE("Cortex-M3") TZ</Cpu>
|
||||
<FlashUtilSpec></FlashUtilSpec>
|
||||
<StartupFile></StartupFile>
|
||||
@@ -133,7 +133,7 @@
|
||||
<UseTargetDll>1</UseTargetDll>
|
||||
<UseExternalTool>0</UseExternalTool>
|
||||
<RunIndependent>0</RunIndependent>
|
||||
<UpdateFlashBeforeDebugging>1</UpdateFlashBeforeDebugging>
|
||||
<UpdateFlashBeforeDebugging>0</UpdateFlashBeforeDebugging>
|
||||
<Capability>1</Capability>
|
||||
<DriverSelection>4101</DriverSelection>
|
||||
</Flash1>
|
||||
|
||||
@@ -134,6 +134,10 @@ typedef struct
|
||||
/** @brief Structure for modbus messsage */
|
||||
typedef struct // RS_MsgTypeDef
|
||||
{
|
||||
uint16_t Transaction_ID; ///< Modbus TCP Transaction_ID
|
||||
uint16_t Protocol_ID; ///<
|
||||
uint16_t Pack_length;
|
||||
|
||||
uint8_t MbAddr; ///< Modbus Slave Address
|
||||
MB_FunctonTypeDef Func_Code; ///< Modbus Function Code
|
||||
MB_DevIdMsgTypeDef DevId; ///< Read Device Identification Header struct
|
||||
|
||||
@@ -107,6 +107,8 @@ PA0-WKUP.Locked=true
|
||||
PA0-WKUP.Signal=GPIO_Input
|
||||
PA1.Locked=true
|
||||
PA1.Signal=GPIO_Output
|
||||
PA10.GPIOParameters=GPIO_Label
|
||||
PA10.GPIO_Label=Relay_dc5v
|
||||
PA10.Locked=true
|
||||
PA10.Signal=GPIO_Output
|
||||
PA11.Mode=CAN_Activate
|
||||
@@ -236,8 +238,8 @@ RCC.USBPrescaler=RCC_USBCLKSOURCE_PLL_DIV1_5
|
||||
RCC.VCOOutput2Freq_Value=8000000
|
||||
RTC.IPParameters=OutPut
|
||||
RTC.OutPut=RTC_OUTPUTSOURCE_SECOND
|
||||
SPI1.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_2
|
||||
SPI1.CalculateBaudRate=36.0 MBits/s
|
||||
SPI1.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_4
|
||||
SPI1.CalculateBaudRate=18.0 MBits/s
|
||||
SPI1.Direction=SPI_DIRECTION_2LINES
|
||||
SPI1.IPParameters=VirtualType,Mode,Direction,BaudRatePrescaler,CalculateBaudRate
|
||||
SPI1.Mode=SPI_MODE_MASTER
|
||||
|
||||
1
labview_proj
Submodule
1
labview_proj
Submodule
Submodule labview_proj added at fcba827e91
BIN
modbus_master.vi
BIN
modbus_master.vi
Binary file not shown.
BIN
schem.pdsprj
Normal file
BIN
schem.pdsprj
Normal file
Binary file not shown.
37
schem.pdsprj.DESKTOP-FJP9EG2.friman.workspace
Normal file
37
schem.pdsprj.DESKTOP-FJP9EG2.friman.workspace
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||
<WORKSPACE>
|
||||
<FRAME activewindow="0">
|
||||
<PLACEMENT>2c0000000200000003000000ffffffffffffffffffffffffffffffff70f6ffffb1000000bcfeffff07060000</PLACEMENT>
|
||||
<WINDOW type="default" module="ISIS">
|
||||
<editor metric="0" gridmajor="2540000" mode="00000001" zoom="0" scale="126" flipped="0" gridminor="254000" gridmode="32" snapidx="1" snap="127000" xcursor="0" orgmode="0" snaprange="100793">
|
||||
<world y1="-8890000" x1="-12700000" y2="8890000" x2="12700000"/>
|
||||
<centre x="0" y="0"/>
|
||||
<origin x="0" y="0"/>
|
||||
</editor>
|
||||
</WINDOW>
|
||||
<WINDOW type="default" module="ARES">
|
||||
<editor metric="1" gridmajor="10000000" mode="00000000" zoom="-1" scale="82" flipped="0" gridminor="250000" gridmode="32" snapidx="3" snap="250000" xcursor="0" orgmode="0" snaprange="154878">
|
||||
<world y1="-12700000" x1="-15240000" y2="12700000" x2="15240000"/>
|
||||
<centre x="0" y="0"/>
|
||||
<origin x="0" y="0"/>
|
||||
</editor>
|
||||
</WINDOW>
|
||||
</FRAME>
|
||||
<MODULE name="ARES">
|
||||
<editor metric="1" gridmajor="10000000" mode="00000000" zoom="-1" scale="82" flipped="0" gridminor="250000" gridmode="32" snapidx="3" snap="250000" xcursor="0" orgmode="0" snaprange="154878">
|
||||
<world y1="-12700000" x1="-15240000" y2="12700000" x2="15240000"/>
|
||||
<centre x="0" y="0"/>
|
||||
<origin x="0" y="0"/>
|
||||
</editor>
|
||||
</MODULE>
|
||||
<MODULE name="ISIS">
|
||||
<editor metric="0" gridmajor="2540000" mode="00000001" zoom="0" scale="126" flipped="0" gridminor="254000" gridmode="32" snapidx="1" snap="127000" xcursor="0" orgmode="0" snaprange="100793">
|
||||
<world y1="-8890000" x1="-12700000" y2="8890000" x2="12700000"/>
|
||||
<centre x="0" y="0"/>
|
||||
<origin x="0" y="0"/>
|
||||
</editor>
|
||||
</MODULE>
|
||||
<MODULE name="VSMDEBUG">
|
||||
<PWI/>
|
||||
</MODULE>
|
||||
</WORKSPACE>
|
||||
BIN
termDallas.vi
BIN
termDallas.vi
Binary file not shown.
Reference in New Issue
Block a user