User Documentation

Configuration
47
15.1.3 Translate messages
The created, currently displayed messages can be translated into another
language. To do so, a proprietary program (Translator) is pulled up with
"Translate". For more information about the operation: See online help of the
translator program.
15.2 Configuration of modbus server
To communicate with the modbus server on the control the following config-
uration entries must be set via "Expert Entries" directly on the node control:
[ModBus]
enableRTU = 0
[ModBus.RTU]
SIO_NAME = "/dev/ttyS1"
BAUDRATE = 19200
PARITY = "N"
DATABITS = 8
NRSTOPBITS = 2
SERIAL_MODE = 0 // RS232 = 0; RS485 = 1
[ModBus.TCP]
IP = "127.0.0.1" // IP address of control
PORT = 502
The IEC variables, which are shared with the modbus server must be re-
leased first. After that they can be registered at the modus server via the
"Expert Entries" configuration. The following entries must be added:
[ModBusReg]
MaximumModBusAddress = 100 // max. Anzahl an Variablen
[ModBusReg.Adr:1]
Factor = 1.0
Variablenname = "APPL.Application.GVL.var1"
WritePermission = 0
[ModBusReg.Adr:2]
Factor = 1.0
Variablenname = "APPL.Application.GVL.var2"
WritePermission = 1
...
[ModBusReg.Adr3:1:200] //Array: [<startindex>:<endindex>]
Factor = 1.0
Variablenname = "APPL.Application.GVL.var_array1" //Array1 1:200
WritePermission = 0
...
Information
To call released variables via Modbus server the server must be restarted.
This must be done mandatorily in the application via function
"MODUS_Restart()" of the library "K_Modbusbase".