Technical data

SINAUT TD7 software package for the CPU
2.5 Data point typicals
Software
250 System Manual, 07/2009, C79000-G8976-C222-07
Range of
values:
TRUE or FALSE
No parameter specified: Default value TRUE is valid.
Here, you specify the format in which counted value received at the output /
outputs CountedValueOutput_... is output.
If the parameter is left open or if you specify TRUE, the counted value is
output with a maximum of seven places in BCD (= S7 format; the sign
decade is always 0; in other words, +). The maximum counted value that
can be represented is therefore restricted to 9,999,999.
If you do not require BCD format (BCD_Format = FALSE), the counted value
is output as a 32-bit integer and this is also always positive. The maximum
counted value that can be represented is then 2,147,483,647.
If the maximum counted value that can be represented is exceeded, the
counted value starts again at 0 and counting continues in the positive
numeric range.
Note
[Cnt04D_R]
The BCD_Format processing parameter exists only once in the typical. This parameter
applies to all 4 counted values in common; in other words, it is not possible to set the
parameter for the individual counted values. When using this parameter, each typical should
therefore only output counted values that can have parameters set for an identical output
format.
Name: CntValInvalid
Declaration: OUTPUT
Data type BOOL
Default: FALSE
Explanation Counted value invalid.
Range of
values:
Output
Bit memory
Data bit
Q 0.0 ... Q n.7
M 0.0 ... M n.7
L 0.0 ... L n.7
DBm.DBX 0.0 ... n.7
At the CntValInvalid output, the FB indicates whether the last received
counted value was invalid (with Cnt04D_R, this counts as a group display for
all four counted values). In principle, the output shows the current status of
the validity bit A from the most recently received counted value in inverted
form.
On the one hand, the output serves as an error indicator. On the other, the
output is intended for user-specific further processing. For example, the user
may wish to react to invalidity by correcting the counted value at
CountedValueOutput_... by adding counter pulses that may have been lost.
If you do not require the parameter, simply leave it open.