Displaying And Modifying Timer And Counter Values - Siemens SIMATIC S5 TD 390 Manual Del Usuario

Tabla de contenido

Publicidad

Idiomas disponibles
  • ES

Idiomas disponibles

3.4

Displaying and Modifying Timer and Counter Values

Task
Display a counter and timer value and modify the counter value using the
TD 390.
Procedure
Proceed as follows:
1. Create a DB with counter and timer texts and prepare timer and
counter values.
2. Generate an instruction sequence to display counter and timer values
in the FB.
3. Generate an instruction sequence for presetting timer and counter
values in OB1.
4. Display timer and counter messages via a TD 390 menu.
5. Modify the counter value.
Create DB56
Create DB56 (text DB for timer/counter values) with the following
contents using STEP 5.
DB56
DW
0:
KS ='Delay time
8:
S
9:
KT = 157.1;
10:
KS ='Fill bottles
18:
S
19:
KC = 100;
20:
KS ='3rd timer value ';
TD 390
C79000–K8576–C292–01
Examples of Handling the TD 390
ON
';
='@T';
';
='@C';
Remark
Timer message (16 char.)
Timer format (2 char.)
Timer value (15.7 sec.)
Counter message (16 ch.)
Counter format (2 char.)
Counter value
Example cont'd.
Cont'd
3-5

Publicidad

Tabla de contenido
loading

Tabla de contenido