# 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 : 3900 #Required for MVI56-DH485 Read Register Start : 600 #Starting DB address where read data stored Read Register Count : 600 #Number of regs to read from module by processor Write Register Start : 0 #Starting DB address where write data accessed Write Register Count : 600 #Number of regs to write to module from processor Failure Flag Count : 0 #Determines if BP failure will cause protocol to be #disabled (0=Ignore, >0 = failure count to disable) 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 9600 or 19200 Node Address : 1 #My node address of 0 to 31 Maximum Node Address : 31 #Maximum node address in network (1-31) Token Hold Factor : 4 #Value from 0 to 31 for this node to hold token Response Timeout : 10 #Response timeout in 100mSec increments Status DB Offset : 3000 #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 : -1 #DB byte loc <- CIF read data (-1=ignore) CIF Read Count : 144 #Numb of bytes to read from CIF data area (0-242) CIF Write DB Offset : -1 #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 : 0 #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 0 0 1 0 0 2 1 5 7 0 //write 0 600 1 0 0 2 0 5 7 0 //read 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 # 3300 34 0 100 # 3400 36 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 9600 or 19200 Node Address : 2 #My node address of 0 to 31 Maximum Node Address : 31 #Maximum node address in network (1-31) Token Hold Factor : 4 #Value from 0 to 31 for this node to hold token Response Timeout : 10 #Response timeout in 100mSec increments Status DB Offset : 3200 #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 : -1 #DB byte loc <- CIF read data (-1=ignore) CIF Read Count : 144 #Numb of bytes to read from CIF data area (0-242) CIF Write DB Offset : -1 #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 : 0 #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 0 0 10 0 0 3 1 5 7 0 //read port 0 status data 0 600 10 0 0 3 0 5 7 0 //read port 0 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 # 3500 38 0 100 # 3600 40 0 100 END