This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
comfilehmi:exampe_projects:index [2023/06/30 05:46] COMFILE Technology [Interfacing with an FADUINO (Analog IO)] |
comfilehmi:exampe_projects:index [2023/10/23 13:57] (current) COMFILE Technology |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Example Projects ====== | + | ====== FADUINO Sample Applications ====== |
+ | This example use Simple-Modbus library developed by Comfile Technology. | ||
+ | |||
+ | {{ :comfilehmi:exampe_projects:simplemodbusrtu_mega2560.zip |}} | ||
+ | |||
+ | The example below was created using FA-DUINO-32TA. | ||
===== Interfacing with an FADUINO (Digital IO) ===== | ===== Interfacing with an FADUINO (Digital IO) ===== | ||
Line 66: | Line 71: | ||
#include <SimpleModbusRtu_mega2560.h> | #include <SimpleModbusRtu_mega2560.h> | ||
- | |||
uint16_t au16data[16]; | uint16_t au16data[16]; | ||
Line 81: | Line 85: | ||
Serial3.begin(57600); | Serial3.begin(57600); | ||
usart1init(57600); // 9600, 19200, 38400, 57600 , Serial channel1 | usart1init(57600); // 9600, 19200, 38400, 57600 , Serial channel1 | ||
- | startSimpleModbus(1,au16data, au8data); // slave address, register, coil | + | startSimpleModbus(1,au16data, au8data); // slave address, register, coil |
- | + | ||
} | } | ||