19.07.2023, 05:22
Admin, I have a similar issue where my modbusprofile file cannot read any data, even if I add 'read'_ Delay '', but still without any help, What other methods can I try to solve the problem of data not being read?
Here is my profile:
---------------------
{
"manufacturer": "Embedded Systems_FAN",
"timeout": 3,
"read_delay": 1,
"description": "CSJC",
"mapping": [
{ "name": "Zeroing","bus_datatype": "uint16","type": "register", "writable": 1, "write_only": true,"address": 0x04 },
{ "name": "Voltage","bus_datatype": "float16","type": "register", "address": 0x07, "value_multiplier": 0.01,"units": "V"},
{ "name": "Voltage","bus_datatype": "float16","type": "register", "address": 0x08, "value_multiplier": 0.01,"units": "V"},
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x09, "value_multiplier": 0.01,"units": "A" },
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x0A, "value_multiplier": 0.01,"units": "A" },
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x0B, "value_multiplier": 0.01,"units": "A" },
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x0C, "value_multiplier": 0.01,"units": "A" },
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x0D, "value_multiplier": 0.01,"units": "A" },
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x0E, "value_multiplier": 0.01,"units": "A" },
{ "name": "Apparent power","bus_datatype": "float16","type": "register", "address": 0x19, "value_multiplier": 0.001,"units": "KVA"},
{ "name": "Apparent power","bus_datatype": "float16","type": "register", "address": 0x1A, "value_multiplier": 0.001,"units": "KVA"},
{ "name": "Apparent power","bus_datatype": "float16","type": "register", "address": 0x1B, "value_multiplier": 0.001,"units": "KVA" },
{ "name": "Apparent power","bus_datatype": "float16","type": "register", "address": 0x1C, "value_multiplier": 0.001,"units": "KVA" },
{ "name": "Apparent power","bus_datatype": "float16","type": "register", "address": 0x1D, "value_multiplier": 0.001,"units": "KVA" },
{ "name": "Power factor","bus_datatype": "float16","type": "register", "address": 0x1E, "value_multiplier": 0.001 },
{ "name": "Power factor","bus_datatype": "float16","type": "register", "address": 0x1F, "value_multiplier": 0.001 },
{ "name": "Power factor","bus_datatype": "float16","type": "register", "address": 0x20, "value_multiplier": 0.001 },
{ "name": "Power factor","bus_datatype": "float16","type": "register", "address": 0x21, "value_multiplier": 0.001 },
{ "name": "Power factor", "bus_datatype": "float16","type": "register", "address": 0x22, "value_multiplier": 0.001 },
{ "name": "Frequency","bus_datatype": "float16", "type": "register","address": 0x23, "value_multiplier": 0.01,"units": "HZ" },
{"name": "Electric energy","bus_datatype": "float32","type": "register","address": 0x38,"read_swap":"w","datatype": "uint32", "value_multiplier": 0.01,"units": "KWh"},
{"name": "Electric energy","bus_datatype": "float32","type": "register","address": 0x3A,"read_swap":"w","datatype": "uint32", "value_multiplier": 0.01,"units": "KWh"},
{"name": "Electric energy","bus_datatype": "float32","type": "register","address": 0x3C,"read_swap":"w","datatype": "uint32", "value_multiplier": 0.01,"units": "KWh"},
{"name": "Electric energy","bus_datatype": "float32","type": "register","address": 0x3E,"read_swap":"w","datatype": "uint32", "value_multiplier": 0.01,"units": "KWh"},
{"name": "Electric energy","bus_datatype": "float32","type": "register","address": 0x40,"read_swap":"w","datatype": "uint32", "value_multiplier": 0.01,"units": "KWh"}
]
}
Here is my profile:
---------------------
{
"manufacturer": "Embedded Systems_FAN",
"timeout": 3,
"read_delay": 1,
"description": "CSJC",
"mapping": [
{ "name": "Zeroing","bus_datatype": "uint16","type": "register", "writable": 1, "write_only": true,"address": 0x04 },
{ "name": "Voltage","bus_datatype": "float16","type": "register", "address": 0x07, "value_multiplier": 0.01,"units": "V"},
{ "name": "Voltage","bus_datatype": "float16","type": "register", "address": 0x08, "value_multiplier": 0.01,"units": "V"},
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x09, "value_multiplier": 0.01,"units": "A" },
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x0A, "value_multiplier": 0.01,"units": "A" },
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x0B, "value_multiplier": 0.01,"units": "A" },
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x0C, "value_multiplier": 0.01,"units": "A" },
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x0D, "value_multiplier": 0.01,"units": "A" },
{ "name": "Current","bus_datatype": "float16","type": "register", "address": 0x0E, "value_multiplier": 0.01,"units": "A" },
{ "name": "Apparent power","bus_datatype": "float16","type": "register", "address": 0x19, "value_multiplier": 0.001,"units": "KVA"},
{ "name": "Apparent power","bus_datatype": "float16","type": "register", "address": 0x1A, "value_multiplier": 0.001,"units": "KVA"},
{ "name": "Apparent power","bus_datatype": "float16","type": "register", "address": 0x1B, "value_multiplier": 0.001,"units": "KVA" },
{ "name": "Apparent power","bus_datatype": "float16","type": "register", "address": 0x1C, "value_multiplier": 0.001,"units": "KVA" },
{ "name": "Apparent power","bus_datatype": "float16","type": "register", "address": 0x1D, "value_multiplier": 0.001,"units": "KVA" },
{ "name": "Power factor","bus_datatype": "float16","type": "register", "address": 0x1E, "value_multiplier": 0.001 },
{ "name": "Power factor","bus_datatype": "float16","type": "register", "address": 0x1F, "value_multiplier": 0.001 },
{ "name": "Power factor","bus_datatype": "float16","type": "register", "address": 0x20, "value_multiplier": 0.001 },
{ "name": "Power factor","bus_datatype": "float16","type": "register", "address": 0x21, "value_multiplier": 0.001 },
{ "name": "Power factor", "bus_datatype": "float16","type": "register", "address": 0x22, "value_multiplier": 0.001 },
{ "name": "Frequency","bus_datatype": "float16", "type": "register","address": 0x23, "value_multiplier": 0.01,"units": "HZ" },
{"name": "Electric energy","bus_datatype": "float32","type": "register","address": 0x38,"read_swap":"w","datatype": "uint32", "value_multiplier": 0.01,"units": "KWh"},
{"name": "Electric energy","bus_datatype": "float32","type": "register","address": 0x3A,"read_swap":"w","datatype": "uint32", "value_multiplier": 0.01,"units": "KWh"},
{"name": "Electric energy","bus_datatype": "float32","type": "register","address": 0x3C,"read_swap":"w","datatype": "uint32", "value_multiplier": 0.01,"units": "KWh"},
{"name": "Electric energy","bus_datatype": "float32","type": "register","address": 0x3E,"read_swap":"w","datatype": "uint32", "value_multiplier": 0.01,"units": "KWh"},
{"name": "Electric energy","bus_datatype": "float32","type": "register","address": 0x40,"read_swap":"w","datatype": "uint32", "value_multiplier": 0.01,"units": "KWh"}
]
}