Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: davidbgtx on November 07, 2014, 11:02:39 AM
-
I am trying to get KepServerEX to read Real values from the the h2-DM1E. I am using kepware Modbus TCP/IP Ethernet driver. I am using MOVE instruction
for example R0 to MHR4:RD (the D pops in on it's own). Kepware set to 400004 Float. This works, but is it the best method? The drivers available for me in Kepware are AutomationDirect DirectNet, AutomationDirect EBC, AutomationDirect ECOM, AutomationDirect KSequence. I am using multiple racks EBC 100's. I will also need to write data from kepeware down to Do-More (mostly bit level), if that affects the best driver to use.
-
Does Kepware have a native Do-more driver (that's a Kepware question)? If so, THAT is best. If not, your Modbus implementation is correct.
If you end up sticking with the Modbus/TCP driver, you might look at the PUBLISH and SUBSCRIB instructions for doing block transfers into/out of Do-more Modbus data-blocks from/to native "Do-more" data-blocks (like R). Also, look at utilizing "byte casts" on bits on byte boundaries to move blocks of 8 bits at a time, e.g. X24:UB to/from MI40:UB would move X24-X31 as an UNSIGNED BYTE into MI40-MI47 as an UNSIGNED BYTE. Moving a bunch of bits individually is "slow" relative to moving blocks of BYTEs on BYTE boundaries.
-
Your other option is to use the AD ECOM driver and then use DLX, DLY, and DLV addresses.