awlsimhw_pyprofibus.conf 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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=0
  11. ; PHY protocol layer configuration
  12. [PHY]
  13. ; The PHY layer driver type.
  14. ; Currently only 'serial' is supported.
  15. type=serial
  16. ; The PHY device name/path.
  17. ; Can be a device like /dev/ttyS0 or /dev/ttyAMA0 for 'serial'.
  18. dev=/dev/ttyS0
  19. ; The Profibus on-wire baud rate.
  20. baud=19200
  21. ; FDL protocol layer configuration
  22. [FDL]
  23. ; DP protocol layer configuration
  24. [DP]
  25. ; The master device class. Either 1 or 2.
  26. master_class=1
  27. ; The Profibus address of this device.
  28. master_addr=2
  29. ; ---
  30. ; Slave configurations
  31. ; Add as many [SLAVE_xxx] sections as needed.
  32. ; ---
  33. ; First slave configuration
  34. [SLAVE_0]
  35. ; This slave's Profibus address
  36. addr=8
  37. ; The path to the GSD file.
  38. ; May be relative to the directory awlsim is executed from,
  39. ; but it is recommended to use an absolute path here.
  40. gsd=si03806a.gse
  41. ; Boolean: Sync mode enabled/available?
  42. sync_mode=1
  43. ; Boolean: Freeze mode enabled/available?
  44. freeze_mode=1
  45. ; 8 bit integer specifying the Profibus group ident mask.
  46. group_mask=1
  47. ; This slave's watchdog timeout, in milliseconds.
  48. watchdog_ms=300
  49. ; Module configuration.
  50. ; For each module plugged into the slave, add a module_xxx
  51. ; entry with the name of the module.
  52. ; The module name must match the name from the GSD file (approximately).
  53. ; The modules are used in the order of the index number.
  54. module_0=6ES7 138-4CA01-0AA0 PM-E DC24V
  55. module_1=6ES7 132-4BB30-0AA0 2DO DC24V
  56. module_2=6ES7 132-4BB30-0AA0 2DO DC24V
  57. module_3=6ES7 131-4BD01-0AA0 4DI DC24V
  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=1
  66. ; Second slave configuration
  67. ;[SLAVE_1]
  68. ;addr=9
  69. ;gsd=Rb010121.gsd
  70. ;sync_mode=1
  71. ;freeze_mode=1
  72. ;group_mask=1
  73. ;watchdog_ms=300
  74. ;module_0=16DO
  75. ;module_1=32DI
  76. ;module_2=16DI/16DO
  77. ;output_size=4
  78. ;input_size=6