Openplc runtime stops when it attempts to connect to Modbus Slave.
Logs on webgui showed OpenPLC runtime stopped every time i tried to Start PLC
Attempted to run ./core/openplc and found that it was throwing 'Floating Point Exception'
Added "g" flag to g++ complier in compile_program.sh and recompiled openplc for analysis with gdb
GDB flags line 421 in modbus_master.cpp. It seems to be a division by zero error.
Below is the modbus slave device setting. Note that baud rate is not set for Modbus TCP slave.
I am seeing this error only when running OpenPLC docker on my Windows host. There was no error when i ran the same OpenPLC docker on my Ubuntu Host. Not sure why division by zero was not flagged by the openplc program.
Openplc runtime stops when it attempts to connect to Modbus Slave.
Logs on webgui showed OpenPLC runtime stopped every time i tried to
Start PLC
Attempted to run
./core/openplc
and found that it was throwing 'Floating Point Exception'Added "g" flag to g++ complier in
compile_program.sh
and recompiledopenplc
for analysis with gdbGDB flags line 421 in
modbus_master.cpp
. It seems to be a division by zero error.Below is the modbus slave device setting. Note that baud rate is not set for Modbus TCP slave.
I am seeing this error only when running OpenPLC docker on my Windows host. There was no error when i ran the same OpenPLC docker on my Ubuntu Host. Not sure why division by zero was not flagged by the
openplc
program.Should be an easy fix.