12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- ; ----------------------------------------------- ;
- ; ;
- ; PROFIBUS configuration ;
- ; ;
- ; This file configures a pyprofibus instance. ;
- ; ;
- ; ----------------------------------------------- ;
- ; General settings
- [PROFIBUS]
- ; Enable/disable debug mode.
- ; 0 -> no debugging.
- ; 1 -> DP debugging.
- ; 2 -> DP and PHY debugging.
- debug=0
- ; PHY protocol layer configuration
- [PHY]
- ; The PHY layer driver type.
- type=serial
- ; The PHY device name/path.
- ; Can be a device like /dev/ttyS0 or /dev/ttyAMA0 for 'serial'.
- dev=/dev/ttyS0
- ; The Profibus on-wire baud rate.
- baud=19200
- ; Serial line flow control and handshaking
- rtscts=False
- dsrdtr=False
- ; FDL protocol layer configuration
- [FDL]
- ; DP protocol layer configuration
- [DP]
- ; The master device class. Either 1 or 2.
- master_class=1
- ; The Profibus address of this device.
- master_addr=2
- ; ---
- ; Slave configurations
- ; Add as many [SLAVE_xxx] sections as needed.
- ; ---
- ; First slave configuration
- [SLAVE_0]
- ; This slave's Profibus address
- addr=9
- ; The path to the GSD file.
- gsd=sie3802f.gse
- ; Boolean: Sync mode enabled/available?
- sync_mode=0
- ; Boolean: Freeze mode enabled/available?
- freeze_mode=0
- ; 8 bit integer specifying the Profibus group ident mask.
- group_mask=1
- ; This slave's watchdog timeout, in milliseconds.
- watchdog_ms=0
- ; Module configuration.
- ; For each module plugged into the slave, add a module_xxx
- ; entry with the name of the module.
- ; The module name must match the name from the GSD file (approximately).
- ; The modules are used in the order of the index number.
- module_0=Master_O Slave_I 1 by unit
- module_1=Master_I Slave_O 1 by unit
- ; The number of output bytes this slave transmits to the
- ; master in Data_Exchange.
- ; This usually depends on the modules plugged into the slave.
- output_size=1
- ; The number of input bytes this slave expects to receive
- ; in Data_Exchange.
- ; This usually depends on the modules plugged into the slave.
- input_size=1
|