## 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 all except MVI46 and PROTOC 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 #This parameter is required for MVI69 applications Block Transfer Size : 60 #Number of data words for msgs 60, 120 or 240 Failure Flag Count : 0 #Determines if BP failure will cause protocol to be #disabled (0=Ignore, >0 = failure count to disable) Initialize Output Data : Yes #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 : 5 #My node address of 0 to 31 Maximum Node Address : 20 #Maximum node address in network (1-31) Token Hold Factor : 1 #Value from 0 to 31 for this node to hold token Response Timeout : 10 #Response timeout in 100mSec increments (1-50) 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 : 100 #Numb of bytes to read from CIF data area (1-244) 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 1 600 10 0 0 1 1 5 10 0 //write status data 1 600 10 0 0 1 0 5 11 0 //read status data 1 610 10 0 0 1 1 5 10 10 //write status data 1 610 10 0 0 1 0 5 11 10 //read status data1 1 620 10 0 0 1 1 5 10 20 //write status data 1 620 10 0 0 1 0 5 11 20 //read status data 1 630 10 0 0 1 1 5 10 30 //write status data 1 630 10 0 0 1 0 5 11 30 //read status data 1 640 10 0 0 1 1 5 10 40 //write status data 1 640 10 0 0 1 0 5 11 40 //read status data 1 650 10 0 0 1 1 5 10 50 //write status data 1 650 10 0 0 1 0 5 11 50 //read status data 1 660 10 0 0 1 1 5 10 60 //write status data 1 660 10 0 0 1 0 5 11 60 //read status data 1 670 10 0 0 1 1 5 10 70 //write status data 1 670 10 0 0 1 0 5 11 70 //read status data 1 680 10 0 0 1 1 5 10 80 //write status data 1 680 10 0 0 1 0 5 11 80 //read status data 1 690 10 0 0 1 0 5 11 0 //read status data 1 690 10 0 0 1 1 5 50 0 //write 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 20 0 200 # 700 21 0 100 # 800 22 0 50 # 850 23 50 50 # 900 24 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 : 6 #My node address of 0 to 31 Maximum Node Address : 20 #Maximum node address in network (1-31) Token Hold Factor : 1 #Value from 0 to 31 for this node to hold token Response Timeout : 10 #Response timeout in 100mSec increments (1-50) Status DB Offset : 3600 #DB loc for port status data (-1=ignore) Command Error DB Offset : 3700 #DB loc for cmd list error data (-1=ignore) CIF Read DB Offset : 4600 #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 : 4700 #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 : 10 #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 700 10 0 0 1 1 5 10 0 //write status data 1 700 10 0 0 1 0 5 11 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