![TREBING + HIMSTEDT SPI 3 Скачать руководство пользователя страница 23](http://html1.mh-extra.com/html/trebing-himstedt/spi-3/spi-3_manual_1154873023.webp)
Using data channel with »MODBUS_ Kanal« module and FB 127
23
MODBUS RTU | SPI 3 | Trebing & Himstedt
Writing data
Proceed as follows to write data with the
FB:
– Copy the data to be sent to the user data
area »Data«.
– Initialize the parameters for the FB.
– Call the FB repeatedly while bit 0
(Operation is executing) is 1.
– If the operation completed without errors
(ANZW bit 1==1), the data have been
sent completely.
– If the operation completed with errors
(ANZW bit 2==1), evaluate the error
message and remedy the error.
TH-FD010e
Start
End
Send data
in Data
Set FB
parameters
Call
FB
Evaluate
error code
ANZW
Bit 0==0
ANZW
Bit 1==1
ANZW
Bit 2==1
yes
yes
yes
no
no
no
== comparison