77
Standard Mode
Section 4-6
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
Resolution
KT Values (S5)
0000,01 to 0000,09
0000,0 to 0000,0
0,01 s
001.0 to 009.0
0000,10 to 0000,99
0000,1 to 0000,9
0,01 s
010.0 to 099.0
0001,00 to 0009,99
0001,0 to 0009,9
0,01 s
100.0 to 999.0
0010,00 to 0099,90
0010,0 to 0099,9
0,1 s
100.1 to 999.1
0100,00 to 0999,00
0100,0 to 0999,0
1 s
100.2 to 999.2
1000,00 to 9990,00
1000,0 to 9990,0
10 s
100.3 to 999.3
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.
4.6.1.1.3
‘Counter’ Variable Type
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.
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 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.
Summary of Contents for NT15S
Page 1: ...Cat No V056 E1 1 Programmable Terminal NT4S NT15S NT18S OPERATION MANUAL ...
Page 2: ...ii ...
Page 3: ...iii NT4S NT15S NT18S Programmable Terminal Operation Manual Produced March 1999 ...
Page 4: ...iv ...
Page 6: ...vi ...
Page 14: ...xiv ...
Page 26: ...12 The Terminals of the NT Series Section 1 2 1 2 4 1 2 NT4S SF122B E 1 2 4 1 3 NT4S SF123B E ...
Page 37: ...23 The Terminals of the NT Series Section 1 4 1 4 1 3 NT4S SF123B E 1 4 1 4 NT15S SF121B E ...
Page 54: ...40 The Terminals of the NT Series Section 1 7 1 7 6 3 ASCII Character Set Table ...
Page 58: ......
Page 60: ...46 ...
Page 70: ...56 ...
Page 200: ...186 ...
Page 212: ...198 ...
Page 214: ...200 ...