Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of 2-ComfileHMI_Modbus by
main.cpp
- Committer:
- hyx2001
- Date:
- 2016-09-09
- Revision:
- 3:f234e151b888
- Parent:
- 2:f0fc57045b3d
- Child:
- 4:217cca9f2592
File content as of revision 3:f234e151b888:
#include "mbed.h" #include "SimpleModbus.h" static u8 MDcoil[100]={0,0,0,}; static u16 MDregister[100]={100,200,300,400,}; int main() { StartModbus(PC_10, PC_11, 115200, 1, MDregister, MDcoil); while (1) { wait_ms(300); MDregister[0]; MDregister[1]; MDregister[2]; MDregister[3]; } }