SACE Emax2 with EKIP modbus to CI867
As i configure the MBTCPConnect It's all fine, i get the communication up and running, but...
I can't get it to work properly. I'm thinking that it's either the StartAdress or the data type on the Rd1 variable on the MBTCPRead function block that I can't get the right way.
I've been trying to figure out what to use for start adress, I found a Excelfile that describes that I need to use DEC register 206 to read the total power. In that same file I also understand that it's th 04-input I should read.
So, I've been trying with most of the %IW, %MW, %QW, %IX, %IW10#, %IW16#, aswell as I've been messing with the adress and trying a number of different variation like 30206, 0206, 00206 combined with the different %.
In the excelfile it also says that the data type is S32, for all I know it's an ordinary INT in 800xA.
I can also add that when I try to connect with Modbus Poll I get values on all the adresses 200-210 which tells me that the Ekip module, network and all is working just fine. The status code on the MBTCPRead is -4904.
So, if someone could help me with how to setup the correct StartAdress it would be very appreciated, and maybe as a bonus could confirm that S32 is infact a regular INT variabel that I should read from the emax2?
Try with setting everywhere in CI867 chain diagnostic pool time = 0 (ci867 and slave)
DEC register 206 should be %MW10#206 but you can try with IW or QW as well. Also it could be 205 or 207 in some cases
After each change of some setting of MBTCPRead block you have to restart it by means of disable/enable of En parameter online, in order the change to become valid
Data type S32 - try with DINT, INT or UINT type of variables for MBTCPRead block. All read variables to one Read block have to be the same format, e.g. DINT, you can't mix INT and DINT for example