Set64rs-Channel-Management-Form

From *** My Personal Wiki ***
Jump to navigation Jump to search

Software_Design_Notes_-_MultiChannel_Set64rs

Scanning Channel Installation Tool

  • Assume a known fully installed serial port


DataBase Design

Fields = Channel# | NickName | Installed | Controller Type


  • SoftwareChannel will be both software channel identifier and modbus address > forcing user to sync software channel & modbus address
  • ModBusAddress unit addresses
  • NickName name of channel such as "glass melting kiln"
  • ControllerType Example: set64rs > for future use to allow mixed controller usage

Installation - Address Setup

Notes System may need to preserve certain ModBus addresses for other than this software - thus:

  • a channel to modbus map is needed
  • some addresses may be skipped


Steps

  • prompt user to install in order they want to number the channels > channel #1 goes 1st!
    • allow user to set installed modbus number > default to next available address
  • connect controllers 1 at a time.
    • detect controller address
    • set controller address to next open channel
    • detect controller address again to verify successful setting of address
  • put controller in to data base

Initialization Scan

  • Do initial scan to see which controller addresses are installed
  • Stores status in the database table under INSTALLED?


Manual Method

  • User looks at database and selects address
  • User can manual set / select controller modbus address using controller front panel


Automated Method where computer helps


  • Prompt User > connect unit to be installed > disconnect all other controller communication cables
  • Scan address 1 - 64 until unit is found > look for valid reply
  • Check to see if this address is already used:
    • Prompt User > This address is already in system use by NICKNAME | This address is not already in use
    • Prompt User > You can Change address by clicking X Button. ( has textbox display and button pair + number only parsing ) > verify not already in use!
    • If user changes address > rescan to verify change in effect > Prompt User > change effected
  • Prompt User> Store this in channel database? Click Store Channel