example_dummy.conf 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ; ----------------------------------------------- ;
  2. ; ;
  3. ; PROFIBUS configuration ;
  4. ; ;
  5. ; This file configures a pyprofibus instance. ;
  6. ; ;
  7. ; ----------------------------------------------- ;
  8. ; General settings
  9. [PROFIBUS]
  10. ; Enable/disable debug mode.
  11. ; 0 -> no debugging.
  12. ; 1 -> DP debugging.
  13. ; 2 -> DP and PHY debugging.
  14. debug=0
  15. ; PHY protocol layer configuration
  16. [PHY]
  17. ; The PHY layer driver type.
  18. type=dummy_slave
  19. ; The PHY device name/path.
  20. ; Can be a device like /dev/ttyS0 or /dev/ttyAMA0 for 'serial'.
  21. ;dev=/dev/ttyS0
  22. ; The Profibus on-wire baud rate.
  23. baud=19200
  24. ; FDL protocol layer configuration
  25. [FDL]
  26. ; DP protocol layer configuration
  27. [DP]
  28. ; The master device class. Either 1 or 2.
  29. master_class=1
  30. ; The Profibus address of this device.
  31. master_addr=2
  32. ; ---
  33. ; Slave configurations
  34. ; Add as many [SLAVE_xxx] sections as needed.
  35. ; ---
  36. ; First slave configuration
  37. [SLAVE_0]
  38. ; This slave's Profibus address
  39. addr=8
  40. ; The path to the GSD file.
  41. gsd=dummy.gsd
  42. ; Boolean: Sync mode enabled/available?
  43. sync_mode=1
  44. ; Boolean: Freeze mode enabled/available?
  45. freeze_mode=1
  46. ; 8 bit integer specifying the Profibus group ident mask.
  47. group_mask=1
  48. ; This slave's watchdog timeout, in milliseconds.
  49. watchdog_ms=300
  50. ; Module configuration.
  51. ; For each module plugged into the slave, add a module_xxx
  52. ; entry with the name of the module.
  53. ; The module name must match the name from the GSD file (approximately).
  54. ; The modules are used in the order of the index number.
  55. module_0=dummy output module
  56. module_1=dummy output module
  57. module_2=dummy input module
  58. ; The number of output bytes this slave transmits to the
  59. ; master in Data_Exchange.
  60. ; This usually depends on the modules plugged into the slave.
  61. output_size=2
  62. ; The number of input bytes this slave expects to receive
  63. ; in Data_Exchange.
  64. ; This usually depends on the modules plugged into the slave.
  65. input_size=2
  66. ; Second slave configuration
  67. [SLAVE_1]
  68. ; This slave's Profibus address
  69. addr=42
  70. ; The path to the GSD file.
  71. gsd=dummy.gsd
  72. ; Boolean: Sync mode enabled/available?
  73. sync_mode=1
  74. ; Boolean: Freeze mode enabled/available?
  75. freeze_mode=1
  76. ; 8 bit integer specifying the Profibus group ident mask.
  77. group_mask=1
  78. ; This slave's watchdog timeout, in milliseconds.
  79. watchdog_ms=300
  80. ; Module configuration.
  81. ; For each module plugged into the slave, add a module_xxx
  82. ; entry with the name of the module.
  83. ; The module name must match the name from the GSD file (approximately).
  84. ; The modules are used in the order of the index number.
  85. module_0=dummy output module
  86. module_1=dummy output module
  87. module_2=dummy input module
  88. ; The number of output bytes this slave transmits to the
  89. ; master in Data_Exchange.
  90. ; This usually depends on the modules plugged into the slave.
  91. output_size=2
  92. ; The number of input bytes this slave expects to receive
  93. ; in Data_Exchange.
  94. ; This usually depends on the modules plugged into the slave.
  95. input_size=2