Claes,
Thanks for the response. That part I had correct.
I figured out what one problem was.
The biggest issue was that I didn't realize (until reading this post
Proview youtube channel for beginners) that the *order* of the ChanDi,Li,Ai,etc. matter.
I had my channel objects scattered as I wrote them up, not realizing that they *must* be organized linearly in chunks.
An additional issue seems to be that I can only have one Modbus Module for read and write per Slave.
So the memory area is broken up like so
40001[Readable Bits]
40002[Readable Bits]
40003-40018[Readable Float32]
40019[Writeable Bits]
40020-40043[Writable Float32]
40044[4 Readable bits]
40044[6 Writable bits]
40045-40050[Readable Float32]
I currently have partly working:
->Modbus_Slave(ip=my device, Port=502, standard options)
-->Modbus_Module(FC=ReadHoldingRegisters, Address=0, UnitId=1, standard options)
--->Multiple ChanDi(Number=0..16,0..16,Bit16, standard options) This works
--->Multiple ChanAi(Number=2..17,float32 This works
-->Modbus_Module(FC=WriteMultipleRegisters, Address=18, UnitId=1, standard options)
--->Multiple ChanDo(Number=0..16,Bit16, standard options) This works
-->Modbus_Module(FC=ReadHoldingRegisters, Address=43, UnitId=1, standard options)
--->Multiple ChanDi(Number=0..4,Bit16, standard options) This DOES NOT work
1. Is it possible to have multiple Reads and Writes attached to the same connection?
2. If so, do the Modules need to be in memory order AND complete, meaning no empty gaps between addresses like I have above?
Thanks for all your hard work Claes, and everyone else here that posts.
Thanks again,
Matt