Technical data

SINAUT TD7 software package for the CPU
2.5 Data point typicals
Software
252 System Manual, 07/2009, C79000-G8976-C222-07
Name: NewData
Refer to
Parameters you require often (Page 223).
Explanation
of the
typical-
specific
outputs
Whenever the FB has received new data and has output it to the output /
outputs CountedValueOutput_..., the NewData output is set to TRUE for one
OB1 cycle.
Name: [Cnt01D_R] CountedValueOutput_1
[Cnt04D_R] CountedValueOutput_1 ... _4
Declaration: IN_OUT
Data type DWORD
Default: 0
Explanation Counted value output.
Range of
values:
(process image) output
double words
Memory double words
Data double words
QD0 ... QDn
MD0 ... MDn
DBm.DBD0 ... n
The counted value output is a double word in which the counted value is
stored in BCD format or as a 32-bit integer (depending on the BCD_Format
parameter). In BCD format, the maximum counted value that can be
represented is limited to 9,999,999, if the counted value is output as a 32-bit
integer, the maximum counted value that can be represented is
2,147,483,647.
The counted value is always output as a positive number; in other words, 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.
Since the parameter is an in-out parameter (declaration IN_OUT), the value
can be reset to 0 or another value at the counted value output by the user at
any time. The counted value typical always adds the newly formed
difference value (difference between the new and last received counted
value) to the value currently output that the counted value output.
Note
Since the parameter is an in-out parameter (declaration IN_OUT), direct I/O
output of the counted value to PQD0 ...PQDn is not permitted. It is also
difficult to specify local bit memory with this parameter type and this should
not be used.
How to read out the time stamp received with the data is described in the
section Notes on the SINAUT time stamp.