![TREBING + HIMSTEDT SPI 3 Скачать руководство пользователя страница 17](http://html1.mh-extra.com/html/trebing-himstedt/spi-3/spi-3_manual_1154873017.webp)
Starting up the SPI 3
17
MODBUS RTU | SPI 3 | Trebing & Himstedt
SPI 3 specific parameters.
Installing the FB 127 function block
Note!
You only need the function block when using the »MODBUS_
Kanal« module. A detailed FB description is included in the chapter »Using
data channel with »MODBUS_ Kanal« module and FB 127« on
page 20.
The FB 127 function block is only applicable for SIMATIC S7 controls. If you
use other controls, you need to create the function block yourself (see
appendix)..
You can either check the function block with the example project or directly install it in
your existing project. You only need to open the example project with the PLC
programming software (STEP 7):
1.
Test example project (connection of MODBUS client required):
– Start PLC programming software.
– Open the example project.
– Adapt the applied PLC hardware.
– Execute PLC Erase Program.
– Load the project into the PLC.
After successful loading and subsequent SPS RUN, the LEDs RUN and PB will light
on the SPI 3 (see also: »Checking PROFIBUS communication« on page 18).
Byte
Parameter Value
Hexacode
Default
14
MODBUS register type
READ
MODBUS register type
WRITE
COIL
INPUT
INPUT_REG
HOLDING
COIL
COIL1
COIL2
COIL3
COIL4
COIL5
COIL6
COIL7
COIL8
HOLDING
0x01
0x02
0x04
0x03
0x0F
0x2F
0x4F
0x6F
0x8F
0xAF
0xCF
0xEF
0x0F
0x10
COIL (0x01)
HOLDING (0x10)
15+16
MODBUS register start
address
0-9999
0x0000
to
0x270F
0 (0x00; 0x00)