Ошибка компиляции Modbus Slave

Использование протокола Modbus
Ответить
NightScream
Рядовой
Сообщения: 21
Зарегистрирован: 29.02.2016{, 10:58}
Репутация: 0
Откуда: Краснодар

Ошибка компиляции Modbus Slave

#1

Сообщение NightScream » 11.07.2016{, 15:55}

В этой теме немного http://forum.flprogwiki.ru/viewtopic.php?f=18&t=1158
Создал новый проект на ардуино мега, назначил свободный порт на modbus slave, при компиляции такие ошибки на любом порту.

pr9.ino: In function 'void setup()':
pr9.ino:16:1: error: 'Serial3' was not declared in this scope
pr9.ino:19:1: error: 'Serial1' was not declared in this scope
pr9.ino: In function 'void loop()':
pr9.ino:23:37: error: 'Serial1' was not declared in this scope
pr9.ino: In function 'byte _modbusSlavePoll()':
pr9.ino:66:23: error: 'Serial3' was not declared in this scope
pr9.ino: In function 'void _modbusSlaveSendTxBuffer()':
pr9.ino:174:1: error: 'UCSR3A' was not declared in this scope
pr9.ino:174:22: error: 'TXC3' was not declared in this scope
pr9.ino:177:1: error: 'Serial3' was not declared in this scope
pr9.ino: In function 'byte _modbusGetSlaveRxBuffer()':
pr9.ino:189:10: error: 'Serial3' was not declared in this scope
Ошибка компиляции.

Что не так?

Ответить

Вернуться в «Modbus»