summaryrefslogtreecommitdiff
path: root/src/hal/user_comps/vfs11_vfd/vfs11-rs485.ini
blob: b3f87bbcf3ae3bdbc247978f8a128d12df2bb336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# example configuration for RS485 bus, half-duplex, RTS control

[VFS11]
# serial connection 
TYPE=rtu

# serial port
DEVICE=/dev/ttyS0

# serial device detail if TYPE=rtu
# 5 6 7 8
BITS= 8

# even odd none	
PARITY=even

# 110, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200
BAUD=19200

# 1 2
STOPBITS=1    

#rs232 rs485
SERIAL_MODE=rs485

# RS485 direction control
# none: assume RS485 is full-duplex
# up: assert RTS before writing to modbus
# down: deassert RTS before writing to modbus, active during read
# see http://www.libmodbus.org/site_media/html/modbus_rtu_set_rts.html
RTS_MODE=up

# target modbus ID
TARGET=1