clock.zip пояснения // explanation

примеры программ
Post Reply
sania
Site Admin
Posts: 1375
Joined: Sat Aug 13, 2005 6:15 am
Contact:

clock.zip пояснения // explanation

Post by sania » Sun Aug 28, 2005 6:14 am

RUSSIAN
этот пример использования системных часов S7 делает пульсы 100мсек,1сек,1мин,1час,1день.
в проге можно не использовать таймеры,просто складывание:

Code: Select all

L DB10.DBW0 
L DB5.pulse_1sec 
+I 
T DB10.DBW0 
L 50 
=I 
JBN M001 
S M0.0 
L 0 
T DB10.DBW0 
JU M002 
M001:R M0.0 
M002:NOP 0
так же есть вывод сист.часов на HMI и возможность их уставки с HMI по часам компа

------------------------------

ENGLISH
this example of use system clock S7 it makes the pulses of 100msek, 1sek, 1min, 1hour, 1day.
in program it is possible not to use timers, is simple the storing:

Code: Select all

L DB10.DBW0 
L DB5.pulse_1sec 
+I 
T DB10.DBW0 
L 50 
=I 
JBN M001 
S M0.0 
L 0 
T DB10.DBW0 
JU M002 
M001:R M0.0 
M002:NOP 0
so is a conclusion of system clock on HMI and the possibility of their setting with HMI on the clock of the controller

Maxime
Posts: 53
Joined: Sun Oct 01, 2006 12:17 pm
Location: Europe

System Clock

Post by Maxime » Mon Oct 30, 2006 6:47 pm

Hello,

I don't understand why you should use such a program if you could use Clock Memory Bit and then have enhoug pulses (8) which you can prolongate with timers. You only have to say which Memory Bit you use in the hardware config.

greetz

Post Reply