Communication
11.1 Integration in SIMATIC S7-1200
SIWAREX WP231
148
Manual, 07/2014, A5E31238908A-02
11.1.3
Calling of function block
This description is based on use of the WP231PR block with data record communication and
the following data:
●
Start address SIWAREX WP231: 68 (see
Creating the hardware configuration
(Page 146))
●
HW ID
SIWAREX WP231: 271 (see →
Creating the hardware configuration (Page 146))
●
Instance data block number of SIWAREX WP231 function block: DB231
The function block can be integrated at the desired position in the user program using drag
and drop. Calling of the FB must be carried out cyclically in the control program.
Figure 11-5 Calling of WP231PR block in user program
Function block parameter
Description
ADDR
Start address WP231 (see →
HW_ID
HW ID WP231 (
see →
Creating the hardware configura-
DB_NO
Number of FB-internal instance DB
LIFEBIT
Optional status bit can be used to monitor communica-
tion
The generated instance DB (DB231 in this case) contains all data records of the WP231 as
well as all parameters required to exchange data between CPU and weighing module.
A separate FB call must be made in the user program for each weighing module. In this
manner, each scale receives its own instance DB which provides the respective scale
parameters. The input and output parameters of the FB must be matched to the respective
WP231 for each call.
Содержание SIWAREX WP231
Страница 16: ...Safety notes 2 1 General safety instructions SIWAREX WP231 16 Manual 07 2014 A5E31238908A 02 ...
Страница 24: ...Application planning 4 2 Parameter assignment options SIWAREX WP231 24 Manual 07 2014 A5E31238908A 02 ...
Страница 108: ...Scale parameters and functions 8 15 DR 15 tare settings SIWAREX WP231 108 Manual 07 2014 A5E31238908A 02 ...
Страница 131: ...Scale parameters and functions 8 26 DR 48 date and time 2 for Modbus SIWAREX WP231 Manual 07 2014 A5E31238908A 02 131 ...
Страница 132: ......
Страница 174: ...Technical data 13 3 Approvals SIWAREX WP231 174 Manual 07 2014 A5E31238908A 02 ...
Страница 180: ...List of abbreviations SIWAREX WP231 180 Manual 07 2014 A5E31238908A 02 ...
Страница 182: ...Index SIWAREX WP231 182 Manual 07 2014 A5E31238908A 02 ...