![TREBING + HIMSTEDT GPA-NS-011236 Manual Download Page 17](http://html1.mh-extra.com/html/trebing-himstedt/gpa-ns-011236/gpa-ns-011236_manual_1154870017.webp)
ASCII | 3964R | RK512
Exchanging data using the SIMATIC FB’s
15
Exchanging data using the SIMATIC FB’s
Asynchronous data exchange between the PLC and the SPI 3 is controlled by function
blocks (FB’s). The following FBs contains (you can download from the internet: www.t-
h.de):
For SIMATIC S5:
– FB200 is used to send data from the PLC to the SPI 3,
– FB201 is used to receive data from the SPI 3 in the PLC,
– FB203 is used to process RK512 telegrams (passive station), which are sent or re-
ceived by the SPI 3.
For SIMATIC S7:
– FB100 is used to send data from the PLC to the SPI 3,
– FB101 is used to receive data from the SPI 3 in the PLC,
– FB103 is used to process RK512 telegrams (passive station), which are sent or re-
ceived by the SPI 3.
Parameters must be set for each of the FB’s (you can also use the supplied example
project). The example project is intended as a guide. Don’t forget to set the length of the
I/O area in your program to match the module you have chosen (in example OB1: EA-L
is set for an I/O area of 4 data words in length).
Note!
The function blocks (FB’s) are only suitable for SIMATIC S5 and S7 controllers
(see online documentation).
In the case of SIMATIC S5 controllers, you may need to adapt the FB to the CPU
you are using (see the Step5 manuals). The FB’s are suitable for the CPU’s 922,
941 and 945. The example program is for the S5-115U/CPU941B, IM308-C.
The SIMATIC S7 example projects use an S7 315 2DP hardware; article No.
6ES7 315-2AF01-0AB0.
In the case of the data transfer protocol “unstructured ASCII driver” in combina-
tion with the RS485 serial interface, the SPI 3 sends the telegram which is re-
ceived from the DP master for the serial partner back to the DP master again.
The telegram can then be evaluated by the DP master and discarded.
Refer to »readme_e.txt« for further information