thanks for the tips.. using debug and gdb i was able to see all of the function calls. Pointed out one large mistake i made along the way. I had renamed my Plc but didn't update the name in the build optoins
from there i was still getting an error when daveConnectPLC() was called. I compared code between rt_io_m_nodave_plc.c and the libnodave test program testAS511.c
Although the libnodave documentation says this isn't needed, I noticed that fds.wfd wasn't being set.
so i added in the second line below
local->fds.rfd = setPort( op->SerialDevice, serial_speed, serial_parity);
local->fds.wfd = local->fds.rfd;
magically, my connection now worked! (its also important to chown / chmod the plc file)
my nodave_plc is running and nodave_tran is initiated
Now i'm getting an error when i try to use chanli, but i haven't looked into it too far yet. I'll check into that shortly
Started pwr_plc_proc_999_0, prio: 5, pid: 1697
file: plc_ubuntu_0999_proc
connect::
0:0x00,0xF0,0x00,0xF0,0x00,0xEF,0x00,0xEF,0x80,0xEE,0x00,0xEC,0x00,0xED,0x00,0xEA,
10:0x00,0x8B,0x04,0xCF,0xFF,0x00,0x00,0x02,0x00,0x02,0x00,0x02,0x00,0x02,0x00,0x02,
20:0x00,0x00,0x00,0x00,0x00,0x0A,0x00,0xEF,0x04,0x00,0x0A,0x00,0x03,0x10,0x03,
start of inputs in memory ef00
start of outputs in memory ef80
start of flags in memory ee00
start of timers in memory ec00
start of counters in memory ed00
start of system data in memory ea00
IF1 daveEndTrans *** no accept of eot/ETX from plc.
IF1 *** Error in Exchange.EndTrans request.
IF1 *** Error in ReadS5Bytes.Exchange sequence.
IF1 *** Error in Exchange.ReqTrans request.
IF1 *** Error in BlockAddr.Exchange sequense.
IF1 *** Error in ReadS5Bytes.BlockAddr request.
IF1 *** Error in Exchange.ReqTrans request.
IF1 *** Error in BlockAddr.Exchange sequense.
IF1 *** Error in ReadS5Bytes.BlockAddr request.