i-th associated value It is valid 1 ≤ I ≤ maxNumber. The max. number of associated
values may be found in the technical data of your CPU. Permitted are only data of the
type BOOL, (not permitted: bit field), BYTE, CHAR, WORD, INT, DWORD, DINT, REAL,
DATE, TOD, TIME, S5TIME, DATE_AND _TIME.
When the ANY pointer accesses a DB, the DB always must be specified.
(e.g.: P# DB10.DBX5.0 Byte 10).
The following table contains all the error information specific to SFB 36 that can be output
with the ERROR and STATUS parameters.
ERROR STATUS
(decimal)
Description
0 11 Message lost: The previous signal change or the previous message could not be
sent and will be replaced by the current message.
0 22
n Error in the pointer to the associated values SD_i:
– relating to the data length or the data type
– Associated values in the user memory not accessible, for example, due to
deleted DB or area length error. The activated message is sent without
associated values or if necessary with even possible number of associated
values.
n The actual parameter you have selected for SEVERITY is higher than the per-
mitted range. The activated message is sent with SEVERITY = 127.
0 25 Communication was initiated. The message is being processed.
1 1 Communication problems: Disconnection or no logon
1 4 At the first call the specified EV_ID is outside the permitted range or the ANY
pointer SD_i has a formal error or the maximum memory area that can be sent for
the CPU per SFB 36 was exceeded.
1 10 Access to local user memory not possible (for example, access to a deleted DB)
1 12 When the SFB was called: an instance DB that does not belong to SFB 36 was
specified or a shared DB instead of an instance DB was specified.
1 18 EV_ID was already being used by one of the SFBs 31 or 33 ... 36.
1 20 Not enough working memory.
1 21 The message with the specified EV_ID is disabled.
14.2.17 SFB 47 - COUNT - Counter controlling
The SFB 47 is a specially developed block for compact CPUs for controlling of the coun-
ters. The SFB is to be called with the corresponding instance DB. Here the parameters of
the SFB are stored. With the SFB COUNT (SFB 47) you have following functional
options:
n Start/Stop the counter via software gate SW_GATE
n Enable/control digital output DO
n Read the status bit
SD_i
Error information ERROR /
STATUS
Description
VIPA SPEED7
Integrated Standard
System Function Blocks > SFB 47 - COUNT - Counter controlling
HB00 | OPL_SP7 | Operation list | en | 18-30 760