example_s7-315-2dp.conf 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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=serial
  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. ; Serial line flow control and handshaking
  25. rtscts=False
  26. dsrdtr=False
  27. ; FDL protocol layer configuration
  28. [FDL]
  29. ; DP protocol layer configuration
  30. [DP]
  31. ; The master device class. Either 1 or 2.
  32. master_class=1
  33. ; The Profibus address of this device.
  34. master_addr=2
  35. ; ---
  36. ; Slave configurations
  37. ; Add as many [SLAVE_xxx] sections as needed.
  38. ; ---
  39. ; First slave configuration
  40. [SLAVE_0]
  41. ; This slave's Profibus address
  42. addr=9
  43. ; The path to the GSD file.
  44. gsd=sie3802f.gse
  45. ; Boolean: Sync mode enabled/available?
  46. sync_mode=0
  47. ; Boolean: Freeze mode enabled/available?
  48. freeze_mode=0
  49. ; 8 bit integer specifying the Profibus group ident mask.
  50. group_mask=1
  51. ; This slave's watchdog timeout, in milliseconds.
  52. watchdog_ms=0
  53. ; Module configuration.
  54. ; For each module plugged into the slave, add a module_xxx
  55. ; entry with the name of the module.
  56. ; The module name must match the name from the GSD file (approximately).
  57. ; The modules are used in the order of the index number.
  58. module_0=Master_O Slave_I 1 by unit
  59. module_1=Master_I Slave_O 1 by unit
  60. ; The number of output bytes this slave transmits to the
  61. ; master in Data_Exchange.
  62. ; This usually depends on the modules plugged into the slave.
  63. output_size=1
  64. ; The number of input bytes this slave expects to receive
  65. ; in Data_Exchange.
  66. ; This usually depends on the modules plugged into the slave.
  67. input_size=1