awlsimhw_pyprofibus.conf 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. ; ----------------------------------------------- ;
  2. ; Awlsim - PROFIBUS hardware module configuration ;
  3. ; ----------------------------------------------- ;
  4. ; General settings
  5. [PROFIBUS]
  6. ; Enable/disable debug mode.
  7. ; 0 -> no debugging.
  8. ; 1 -> DP debugging.
  9. ; 2 -> DP and PHY debugging.
  10. debug=1
  11. ; PHY protocol layer configuration
  12. [PHY]
  13. ; The PHY layer driver type.
  14. type=serial
  15. ;type=fpga
  16. ;type=dummy_slave
  17. ; Only for type=serial:
  18. ; The PHY device name/path.
  19. ; Can be a device like /dev/ttyS0 or /dev/ttyAMA0
  20. dev=/dev/ttyS0
  21. ; Only for type=serial:
  22. ; Serial line flow control and handshaking
  23. rtscts=False
  24. dsrdtr=False
  25. ; Only for type=fpga:
  26. ; SPI bus (to PHY FPGA) configuration.
  27. spiBus=0
  28. spiCS=0
  29. spiSpeedHz=2500000
  30. ; The Profibus on-wire baud rate.
  31. ;baud=9600
  32. baud=19200
  33. ;baud=45450
  34. ;baud=93750
  35. ;baud=187500
  36. ;baud=500000
  37. ;baud=1500000
  38. ;baud=3000000
  39. ;baud=6000000
  40. ;baud=12000000
  41. ; FDL protocol layer configuration
  42. [FDL]
  43. ; DP protocol layer configuration
  44. [DP]
  45. ; The master device class. Either 1 or 2.
  46. master_class=1
  47. ; The Profibus address of this device.
  48. master_addr=2
  49. ; ---
  50. ; Slave configurations
  51. ; Add as many [SLAVE_xxx] sections as needed.
  52. ; ---
  53. ; First slave configuration
  54. [SLAVE_0]
  55. ; This slave's Profibus address
  56. addr=8
  57. ; The path to the GSD file.
  58. ; May be relative to the directory awlsim is executed from,
  59. ; but it is recommended to use an absolute path here.
  60. gsd=si03806a.gse
  61. ; Boolean: Sync mode enabled/available?
  62. sync_mode=1
  63. ; Boolean: Freeze mode enabled/available?
  64. freeze_mode=1
  65. ; 8 bit integer specifying the Profibus group ident mask.
  66. group_mask=1
  67. ; This slave's watchdog timeout, in milliseconds.
  68. watchdog_ms=300
  69. ; Module configuration.
  70. ; For each module plugged into the slave, add a module_xxx
  71. ; entry with the name of the module.
  72. ; The module name must match the name from the GSD file (approximately).
  73. ; The modules are used in the order of the index number.
  74. module_0=6ES7 138-4CA01-0AA0 PM-E DC24V
  75. module_1=6ES7 132-4BB30-0AA0 2DO DC24V
  76. module_2=6ES7 132-4BB30-0AA0 2DO DC24V
  77. module_3=6ES7 131-4BD01-0AA0 4DI DC24V
  78. ; The number of output bytes this slave transmits to the
  79. ; master in Data_Exchange.
  80. ; This usually depends on the modules plugged into the slave.
  81. output_size=1
  82. ; The number of input bytes this slave expects to receive
  83. ; in Data_Exchange.
  84. ; This usually depends on the modules plugged into the slave.
  85. input_size=2
  86. ; Second slave configuration
  87. ;[SLAVE_1]
  88. ;addr=9
  89. ;gsd=Rb010121.gsd
  90. ;sync_mode=1
  91. ;freeze_mode=1
  92. ;group_mask=1
  93. ;watchdog_ms=300
  94. ;module_0=16DO
  95. ;module_1=32DI
  96. ;module_2=16DI/16DO
  97. ;output_size=4
  98. ;input_size=6