2114 views|2 replies

18

Posts

0

Resources
The OP
 

Share a STMF105RBT6 and 103RCT6_keil_C++ source program [Copy link]

Hello everyone, I share a STMF105RBT6 and 103RCT6_keil_C++ source program: 1) DI/DO/AI/AO source program, these DI/DO/AI/AO can be monitored through the computer web page; 2) CAN advanced communication program: Simplify CAN communication programming, similar to CANOpen\DeviceNet\iCAN, the parameters of the circuit board can be monitored through the computer web page, which is convenient for circuit board debugging; 3) The circuit board configuration parameters (such as the address of the circuit board, communication speed, etc.) can be saved after power failure, and these parameters can be configured and read through the web page; 4) Support the power-off preservation function of real-time parameters, and the circuit board illustrates the program for powering on DO and AO to restore the state before power failure; 5) The circuit board reserves a CAN communication failure watchdog timer. When no valid CAN packet is received, the watchdog timer will accumulate time, which can be used for the circuit board CAN communication disconnection judgment processing; Hardware existing interfaces: CAN port, 4 DIs, 4 DOs, 1 AI, 1 AO Hardware expandable interfaces: SPI, I2C, RS485 双CAN_STMF105RBT6_Keil源程序.zip (516.27 KB, downloads: 39)

This post is from stm32/stm8

Latest reply

It’s useless to download it, it’s all packaged into a library   Details Published on 2020-7-3 11:12
Personal signatureCAN总线STM32F105_Keil工程C++源程序
https://bbs.eeworld.com.cn/thread-553036-1-1.html
 

18

Posts

0

Resources
2
 


CANWeb bus is a cost-effective fieldbus network integration technology CANWeb standard designed by Weiqun Electronics based on Jiaotong University, summarizing many years of design and production experience of IO modules of large power plant control systems, using advanced electronic technology, combining the advantages of CAN bus and Ethernet, and taking advantage of their strengths and avoiding their weaknesses.
It is simpler and easier to use than CANOpen\DeviceNet\iCAN;
CANWeb communication is reliable (optional redundancy), has many nodes (up to 98 CAN nodes), fast speed (1Mbps within 40 meters, no need for reincarnation query), and long communication distance (5Kbps can
reach 10 kilometers);
CANWeb interface cost is low (PCA82C251_3 yuan each), and the cost is the same as adding an RS485 interface (MAX13485_3 yuan each);
the price of chips with CAN interface is also very affordable: LPC11C14_5 yuan each, STM32F103C8T6_5 yuan each, STM32F103RCT6_6 yuan each, and the dual CAN
STM32F105RBT6 chip is only about 8 yuan;
CANWeb technology is fully open source, with no licensing fees, and provides free CANWeb advanced protocol C++Keil source code (customizable for user chips);
CANWebSTMF10x development board comes with CAN interface, 4 DI, 4 DO, 1 AI, 1 AO, 1 RS485 interface, 1 DS18B20 interface.
Based on the PCB file and Keil source code of this CAN development board, users can easily and quickly develop their own CAN bus products, such as multi-channel DI, DO, AI, AO modules
, temperature, pressure field intelligent instruments, electric control valves, solenoid valves, electricity meters, RS485 gateways (can communicate with RS485 devices) and other devices; we can also
help customers customize slave stations according to customer requirements.
Through the web page of the MST module, users can monitor and control the DI\DO\AI\AO hardware interfaces on the development board slave in real time;
through the web page of the MST module, users can monitor and control up to 48 internal WORD variables of the development board slave in real time;
through the web page of the MST module, users can configure up to 72 internal WORD configuration parameters of the development board slave, and the configuration parameters can be saved after power failure;
8 shared AOs are reserved for the CANWeb bus network, and MST can send shared AO values to multiple slaves at the same time;
the slave reserves a CANWeb communication failure watchdog timer. When no valid CAN packet is received, the watchdog timer will accumulate time, which can be used for the
judgment and processing of the CAN communication disconnection of the slave;
through the Ethernet or RS485 Modbus protocol of the MST module, the UDP packet automatic uploading and downloading protocol, it is convenient to exchange data with various controllers (configuration software, PLC, etc.) and Internet cloud servers
in real time.

The following figure shows the CANWeb single network structure: SIOx is a slave station of multiple CANWeb development boards, and the MST module is generally equipped with one


The following figure shows the CANWebSTM32F10x development board kit:

CANWeb_STM32F10xKeil开发板及源程序说明190916.zip (2.69 MB, downloads: 3)

This post is from stm32/stm8
 
Personal signatureCAN总线STM32F105_Keil工程C++源程序
https://bbs.eeworld.com.cn/thread-553036-1-1.html
 

22

Posts

0

Resources
3
 

It’s useless to download it, it’s all packaged into a library

This post is from stm32/stm8
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list