7BCOMMUNICATION IN SIMATIC S7
8.4.7 CMD_ERR:= "DB_SIWA_U".bo_CMD_ERR, output, BOOL
The bit notifies the user for a cycle that his command has not been executed. The
bit is set for one cycle (edge) only. In the same cycle, the cause can be shown with
the variable CMD_ERR_C:= "DB_SIWA_U".b_CMD_ERR_CODE. The number is
itemized in the table "Data and operator errors" in Chapter 7.7. When no error code
is specified, it must be checked in the same cycle in
"DB_SIWA_U".b_FB_ERR_CODE whether an FB error is present.
8.4.8 CMD_ERR_C:= "DB_SIWA_U".b_CMD_ERR_CODE, output, BYTE
For a command that is not executed (Finished with errors), the error number is
output here. The number that is output is decoded in table "Data and operator
errors" in chapter 7.7. The value remains in the output until the next command is
triggered. The evaluation is to be performed when the set bit
CMD_ERR:= "DB_SIWA_U".bo_CMD_ERR appears. When no error code is
specified, it must be checked in the same cycle in
"DB_SIWA_U".b_FB_ERR_CODE whether an FB error is present.
8.4.9 REF_COUNT1:= "DB_SIWA_U".b_CYCLE_COUNT_CH1, output, BYTE
The current output values, which are prepared as output variables of the FB
SIWA_U, are read out from the FB cyclically via the peripheral area. SIWAREX U
updates the counter internally in a 20 ms rhythm. Each updating is given a serial
number, which can be used as a time stamp in the SIMATIC CPU. The number can
be between 0 and 255.
8.4.10 SC_STATUS1:= "DB_SIWA_U".b_SCALE_STATUS_CH1, output, BYTE
The current status of the scale is output via this variable. The meaning of the status
bits corresponds to the status byte in DR31.
8.4.11 ASYNC_ERR1:= "DB_SIWA_U".w_OPR_ERR_MSG_CH1, output, BYTE
Via this word the current operating errors (asynchronous errors) are displayed.
This error display is automatically reset with the correction of the error.
8.4.12 GROSS1:= "DB_SIWA_U".i_GROSS_WEIGHT_CH1, output, INT
Via this variable the user is provided with the current weight value for channel 1.
8.4.13 FLT_RAW1:= "DB_SIWA_U".w_ADC_VALUE_FILTERED_CH1, output, INT
Via this variable the user is provided with the current digital filtered value from the
ADC for channel 1.
8-54
SIWAREX U