![Siemens SIWAREX WP251 Скачать руководство пользователя страница 189](http://html.mh-extra.com/html/siemens/siwarex-wp251/siwarex-wp251_manual_374538189.webp)
Communication with SIMATIC S7-1200
11.1 Integration in SIMATIC S7-1200
SIWAREX WP251
Manual, 12/2015, A5E37203357A
189
11.1.4
Working with the function block
Data records in SIWAREX weighing modules
All parameters in SIWAREX weighing modules are structured in data records. These data
records must be considered as connected packages and can only be respectively read into
the CPU or written to the SIWAREX as complete packages. Reading or writing of a single
parameter within a data record is not possible. You can find a description of all data records
and their parameters in chapter →
Scale parameters and functions (Page 57).
Reading and writing of data records is carried out using special command codes which can
be sent with three command mailboxes handled according to priority within the instance DB:
Image 11-6 CMD command mailboxes
As shown in the graphics, a command mailbox always consists of a command code (Int) and
four bits (Bool). A command is set by entering the desired command code in the
"i_CMD_CODE" parameter and setting the respective command trigger
"bo_CMD_TRIGGER". The status bits "bo_CMD_InProgress" (command being processed),
"bo_CMD_FinishedOk" (command finished without errors) and "bo_CMD_FinishedError"
(command rejected or finished with error) can be evaluated in the user program.
In addition, the three command mailboxes are managed and processed according to priority.
CMD1 has the highest priority, CMD3 has the lowest priority. If all three command mailboxes
are triggered simultaneously by the user program, for example, the function block initially
processes CMD1, then CMD2, and finally CMD3. Cyclic triggering of command mailbox 3 is
also interrupted by intermediate sending of a command in mailbox 2 or 1 for processing of
the respective command.
Note
Cyclic triggering of the CMD1 command mailbox makes it impossible to send commands in
mailbox 2 or 3.
Содержание SIWAREX WP251
Страница 28: ...Mounting 5 3 Mounting on the SIMATIC S7 1200 SIWAREX WP251 28 Manual 12 2015 A5E37203357A ...
Страница 40: ...Connection 6 12 Attachment of calibration protection plate SIWAREX WP251 40 Manual 12 2015 A5E37203357A ...
Страница 56: ...Commissioning 7 5 Service with the SIWATOOL program SIWAREX WP251 56 Manual 12 2015 A5E37203357A ...
Страница 162: ...Scale parameters and functions 8 38 DR 48 date and time 2 for Modbus SIWAREX WP251 162 Manual 12 2015 A5E37203357A ...
Страница 212: ...Technical specifications 13 3 Approvals SIWAREX WP251 212 Manual 12 2015 A5E37203357A ...
Страница 218: ...List of abbreviations B 1 List of abbreviations SIWAREX WP251 218 Manual 12 2015 A5E37203357A ...