Counter' Variable Type - Omron NT4S Operation Manual

Nt-series programmable terminal
Table of Contents

Advertisement

Standard Mode
4.6.1.1.3

'Counter' Variable Type

A
Dual-coded count value, 0 to 999
B
Edge trigger flag for setting, releasing, counting up and counting down
C
Auxiliary flag for queries
Fig. 4: Structure of the counter word with the Siemens SIMATIC S5-115U
The command sequence
LC T
1
(Load current time value as a BCD-number)
T
MW 200
now causes the current time value to be loaded into flag word 200. Before being
output, the operating terminal reads this value as a BCD-coded time value and
interprets it.
For this process, the time value is converted to the time base 10 ms first and is then
scaled.
The example lists the output values with one post-decimal place (fractional digit).
This produces the following to be displayed on the operating terminal:
Input Value
Output Value
0000,01 to 0000,09
0000,0 to 0000,0
0000,10 to 0000,99
0000,1 to 0000,9
0001,00 to 0009,99
0001,0 to 0009,9
0010,00 to 0099,90
0010,0 to 0099,9
0100,00 to 0999,00
0100,0 to 0999,0
1000,00 to 9990,00
1000,0 to 9990,0
The resolution and as a result, the precision of the input and displayed values can
be influenced by modifying the post-decimal places and scaling.
The variable type Counter can only be used in conjunction with controllers that
support this variable type. This will be explained in more detail using the variable
type Counter in combination with the Siemens S5 as an example.
The kind of formatting of the variable type Counter depends on the memory area of
the PLC where the value was read. If read directly from a counter word, the 10 bit
binary count value contained in it will be displayed directly, so conversion is not
necessary.
If read from another memory area, i.e. data word (DW), flag word (MW), input word
(EW) or output word (AW), it is assumed that the value is BCD-coded (3 digits
BCD-code). The value will then be converted to a binary count value first.
The resulting binary count value can then be formatted in the same way as an
integer, i.e. scaling is possible.
Section 4-6
Resolution
KT Values (S5)
0,01 s
001.0 to 009.0
0,01 s
010.0 to 099.0
0,01 s
100.0 to 999.0
0,1 s
100.1 to 999.1
1 s
100.2 to 999.2
10 s
100.3 to 999.3
77

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt15sNt18s

Table of Contents