Advanced Modbus Module - Scripting Device Creation

As it happens, I've been improving this functionality, but not yet documented or tested. Feel free to try the following with the very latest driver version:

  1. The deviceType argument is "ModbusClient". The following keys are supported in deviceProps: framing, hostname, althost, backuphost, altbackuphost, maxoutstanding, exectimeout, tframeplus, shortbrowse, txidlimit, and unitscsv.

  2. Supply the complete configuration CSV for your slave units as a multiline string for the unitscsv device property.

Only hostname is required. All others have sane defaults.

{ I consider the unitscsv device prop to still be BETA quality. Bug reports welcome, but functionality is not officially supported. Prior versions use a binary encoded prop that doesn't play well with v8.3. So migration through my last v8.1 version will be required. }

4 Likes