Modbus Plugin
Purpose
Usage
#
# This is the Modbus config file
#
# Commands
# These are the commands to run
_cmd, mbpoll -m rtu -r 1101 -c 110 -t 4 -1 -p {PORT} {ENDPOINT}
_cmd, mbpoll -m tcp -r 1275 -c 10 -t 4 -1 -p {PORT} {ENDPOINT} --translate 50000
_cmd, mbpoll -m {TCP_RTU} -r 1275 -c 10 -t 4 -1 -p {PORT} {ENDPOINT} --translate 50000
_cmd, mbpoll -m enc -r 1275 -c 10 -t 4 -1 -p {PORT} {ENDPOINT} --translate 50000
# Table, Source Name, Variable Name, Register, Num of Regs, Type, Units, Scale, RO/RW/INV, Lookup Table, Sum/Conditional Registers, Conditional Bit
solar, inverter, AC Voltage 1, 1101, 1, dec, V, 1+10, RO,
solar, inverter, Grid Freq, 1104, 1, dec, Hz, 0.01, RO,
solar, inverter, Cos Phi, 1111, 1, dec, ., 100, RO,
solar, inverter, Temperature, 1167, 1, udec, C, 1, RO,
turbine, eng, Status, 1275, 1, int8, , 1, RO, /home/ardexa/status.dict
turbine, eng, Minutes, 75, 1, lo8, , 1, RO,
turbine, eng, Seconds, 76, 1, hi8, , 1, RO,
turbine, eng, Total Hours, 1208, 1, ge_fix, h, 0.1, RO,
turbine, eng, Total Hours, 1208, 1, dec, h, 0.1, RO,
turbine, eng, DC Current 1, 1221, 1, dec, A, 1, RO,
turbine, eng, DC Current 17, 21, 4e, dec, A, 1, RO,
PLC_710, hec, DC Current Sum, 0, 1, sum, A, 1, RO, , 1221 1222 1223 1224 1225
PLC_710, hec, Total Energy, 0, 1, after, Wh, 1, RO, , 1194 1196
PLC_710, hec, Setpoint Mode, 77, 1, bitb, bool, 1, RO, 1
PLC_710, hec, Run Auto, 71, 1, bitb, bool, 1, RO, 2
PLC_710, hec, Run Manual, 71, 1, bitb_int, bool, 1, RO, 3
PLC_710, hec, Key Switch, 30227, 1, str, , 1, RO, /home/ardexa/sma_central/mode.dict
PLC_710, hec, Brand Name, 1133, 1, str, , 10, RO,
PLC_710, hec, Key Switch2, 30227, 1, str_rep, , 1, RO, /home/ardexa/sma_central/mode.dict
PLC_710, ibm, Key Switch543, 312, 8, str_rev, , 1, RO, /home/ardexa/sma_central/reverse.dict
PLC_710, pid_box, Voltage, 17, 1, int, V, 1, RO,
PLC_710, pid_box, Current, 18, 1, int, mA, 1, RO,
Station, alarm, Alarm 0 Keyword, 4000, 1, bit, , 1, RO, /home/ardexa/ess_modbus/dict/container_alarm0.dict
Station, alarm, Alarm 1 Keyword, 4001, 1, bit, , 1, RO, /home/ardexa/ess_modbus/dict/container_alarm1.dict
Station, alarm, Alarm 2 Keyword, 4002, 1, bit, , 1, RO, /home/ardexa/ess_modbus/dict/container_alarm2.dict
Station, alarm, Alarm 3 Keyword, 4003, 1, bit, , 1, RO, /home/ardexa/ess_modbus/dict/container_alarm3.dict
Station, alarm, Alarm 1, 4001, 1, bool, , 1, RO,
Station, alarm, Alarm 2, 4002, 1, bool, , 1, RO,
Station, alarm, Alarm 3, 4003, 1, bool, , 1, RO,
Station, alarm, Alarm 4, 4004, 1, int_bool, , 1, RO,
PLC_710, hec, DC Current 2, 1222, 1, swap16, A, 0.1, RO,
weather, status, Status1, 35, 1, cond_bit, , 1, RO, /home/ardexa/conditional.dict, 45, 1
weather, status, Status2, 36, 1, cond_bit, , 1, RO, /home/ardexa/conditional.dict, 45, 2
weather, status, Status3, 37, 1, cond_bit, , 1, RO, /home/ardexa/conditional.dict, 45, 3
weather, status, Daytime Status, 309, 1, mask, , 1, RO, /home/ardexa/daytime.dict, 2, 4
weather, hyc, Total Current, 12, 1, dec, h, 0.1, >100000,
weather, status, Binary Status Raw, 356, 1, bin, , 1, RO,
weather, ATC, AC Power 1, 365, 1, log_scale, W, 3, RO, 569
weather, ATC, AC Power 4, 365, 1, reg_scale, W, 0.1, RO, 565
weather, ATC, AC Power 5, 365, 1, reg_scale, W, 0.1, RO, 565, /home/ardexa/reg_scale_lookup.dict
battery, module, DC Current 1, 64, 1, depend, A, 0.1, RO, 2456, 1
battery, module, DC Current 2, 65, 1, depend, A, 0.1, RO, 2457, 2
battery, module, DC Current 3, 66, 1, depend, A, 0.1, RO, 2458, 1
battery, module, DC Current 4, 67, 1, depend, A, 0.1, RO, 2459, 2
battery, module, AC Power, 87, 1, master, W, 1, RO, 111
battery, module, AC Power, 97, 1, slave, W, 1, RO, 111Arguments
Example of "bit" lookup
Example of "str" lookup file
Example of "str_rev" lookup file
Example of "reg_scale" lookup file
Example of a "conditional lookup" file
Troubleshooting
Was this helpful?