Thank you for your reply. I do have another issue with the example code ModbusTCPSlave from your GitHub. It throws a lot of errors regarding the timers at compilation. Perhaps, the example was not revised to support 10 IOs PLC Family?
Here are the errors:
Arduino: 1.8.6 (Windows 10), Board: "10 IOS PLC Family, 10 IOS PLC"
C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp: In function 'void startPulses(int, uint32_t, uint8_t)':
C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:49:8: error: 'TIMER0A' was not declared in this scope
case TIMER0A:
^~~~~~~
C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:49:8: note: suggested alternative: 'TIMERA0'
case TIMER0A:
^~~~~~~
TIMERA0
C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:50:4: error: 'TCCR0A' was not declared in this scope
TCCR0A |= 0b01000010;
^~~~~~
C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:50:4: note: suggested alternative: 'TCA0'
TCCR0A |= 0b01000010;
^~~~~~
TCA0
C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:51:4: error: 'TCCR0B' was not declared in this scope
TCCR0B |= 0b10000000 | tccr;
^~~~~~
C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:51:4: note: suggested alternative: 'TCA0'
TCCR0B |= 0b10000000 | tccr;
^~~~~~
TCA0
C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:52:4: error: 'OCR0A' was not declared in this scope
OCR0A = cmp;
^~~~~
..............
Has anyone successfully compiled the code for 10 IOS PLC?
Thank you,
Ha