# DH485.CFG # # Example file for the DH485 driver. This file contains a configuration to # support a peer node on a DH485 network. It will respond to request messages # for both data file and CIF access. The configuration also supports a # command list that will read and write data from another node. # # DATE : 02/06/2003 # LOCATION: Test Bench # MODIFIED: # # NOTE: This example is altered to support 2 DH-485 ports on a single module. # Tie the two ports together. # # This section of the file describes the database setup and module level # parameters. [Module] Module Name : DH485 Communication Module Test Error/Status Pointer : 3800 #Module status database offset (-1=ignore) Read Register Start : 0 #Starting DB address where read data stored Read Register Count : 500 #Number of regs to read from module by processor Write Register Start : 500 #Starting DB address where write data accessed Write Register Count : 500 #Number of regs to write to module from processor #Used to define the area in the Processor for the module to interface with 3x Register Start : 1 #3x start register where data moved from module to processor (1-n) 4x Register Start : 1 #4x start register where data moved from processor to module (1-n) Initialize Output Data : No #Read output values from controller (Yes or No) # This section is used to define the communication characteristics of the # DH485 driver port. [DH485 Port 0] Baud Rate : 19200 #Baud rate of 1200, 2400, 9600 or 19200 Node Address : 1 #My node address of 0 to 31 Maximum Node Address : 10 #Maximum node address in network (1-31) Token Hold Factor : 1 #Value from 0 to 31 for this node to hold token Response Timeout : 20 #Response timeout in 100mSec increments (0-50) Status DB Offset : 10 #DB loc for port status data (-1=ignore) Command Error DB Offset : 3100 #DB loc for cmd list error data (-1=ignore) CIF Read DB Offset : 4000 #DB byte loc <- CIF read data (-1=ignore) CIF Read Count : 100 #Numb of bytes to read from CIF data area (0-244) CIF Write DB Offset : 4200 #DB byte loc -> CIF write data (-1=ignore) First File : 7 #First file number to emulate in DB File Size : 200 #Number of words in each file emulated File Offset : 0 #DB start address for file emulation Min Command Delay : 100 #Min number of milliseconds between commands # This section contains the list of commands to execute on the DH485 driver # port. [DH485 Port 0 Commands] # # Enable Types : 0=Disable, 1=Poll at interval, 2=Conditional Poll # Swap Codes : 0=None, 1=Swap Words, 2=Swap bytes and words, 3=Swap bytes # Function Codes : 0=Read, 1=Write # FileType Codes : 0=status, 1=bit, 2=timer, 3=counter, 4=control, 5=int, # 6=float, 10=CIF # # Enbl DB Elem Swap Poll Node Func File File Element # Type Address Count Code Int # Code Type # Number START # 1 1000 10 0 0 6 0 5 11 0 # 1 1000 10 0 0 6 1 5 10 0 # 0 1000 100 0 0 5 0 5 7 0 //read status data # 1 500 50 0 0 20 1 5 7 0 //Write status data # 0 1500 10 0 0 6 1 5 10 0 //write status data # 0 1500 10 0 0 6 0 5 11 0 //read status data # 1 250 1 0 0 2 1 6 8 5 //write status data # 1 250 1 0 0 2 0 6 8 0 //Read status data # 0 2260 10 0 0 6 1 10 9 10 //write status data # 0 2260 10 0 0 6 0 10 9 0 //Read status data # END # This section contains a list of file override values to overlay the database. # The list will be searched by the driver for each data request made of the # driver on the specified port. If the file:element value in the request # matches an entry in the list, the database offset assigned to the entry # will be used in conjunction with the other data in the entry to return # or set the data. [DH485 Port 0 Maps] # DB_Address File_Number Element Length START # 0 110 0 100 # 100 112 0 100 END # This section is used to define the communication characteristics of the # DH485 driver port. [DH485 Port 1] Baud Rate : 19200 #Baud rate of 1200, 2400, 9600 or 19200 Node Address : 5 #My node address of 0 to 31 Maximum Node Address : 10 #Maximum node address in network (1-31) Token Hold Factor : 1 #Value from 0 to 31 for this node to hold token Response Timeout : 20 #Response timeout in 100mSec increments (0-50) Status DB Offset : 200 #DB loc for port status data (-1=ignore) Command Error DB Offset : 3300 #DB loc for cmd list error data (-1=ignore) CIF Read DB Offset : 5000 #DB byte loc <- CIF read data (-1=ignore) CIF Read Count : 100 #Numb of bytes to read from CIF data area (0-244) CIF Write DB Offset : 5200 #DB byte loc -> CIF write data (-1=ignore) First File : 7 #First file number to emulate in DB File Size : 200 #Number of words in each file emulated File Offset : 0 #DB start address for file emulation Min Command Delay : 100 #Min number of milliseconds between commands # This section contains the list of commands to execute on the DH485 driver # port. [DH485 Port 1 Commands] # # Enable Types : 0=Disable, 1=Poll at interval, 2=Conditional Poll # Swap Codes : 0=None, 1=Swap Words, 2=Swap bytes and words, 3=Swap bytes # Function Codes : 0=Read, 1=Write # FileType Codes : 0=status, 1=bit, 2=timer, 3=counter, 4=control, 5=int, # 6=float, 10=CIF # # Enbl DB Elem Swap Poll Node Func File File Element # Type Address Count Code Int # Code Type # Number START # 1 100 10 0 0 6 0 5 11 10 //read status data # 1 100 10 0 0 6 1 5 10 10 //Write status data # 1 1500 1 0 0 6 1 0 2 31 //write status data # 1 1500 1 0 0 6 0 0 2 30 //read status data # 1 1510 1 0 0 6 1 1 3 1 //write status data # 1 1510 1 0 0 6 0 1 3 0 //read status data # 1 1520 1 0 0 6 1 2 4 4 //write status data # 1 1520 1 0 0 6 0 2 4 0 //read status data # 1 1230 1 0 0 6 1 3 5 5 //write status data # 1 1230 1 0 0 6 0 3 5 1 //read status data # 1 1240 1 0 0 6 1 4 6 4 //write status data # 1 1240 1 0 0 6 0 4 6 0 //read status data END # This section contains a list of file override values to overlay the database. # The list will be searched by the driver for each data request made of the # driver on the specified port. If the file:element value in the request # matches an entry in the list, the database offset assigned to the entry # will be used in conjunction with the other data in the entry to return # or set the data. [DH485 Port 1 Maps] # DB_Address File_Number Element Length START # 0 210 0 100 # 100 212 0 100 END