Sample Application - FATEK CBEH Manual

Ethernet communication board
Table of Contents

Advertisement

6.3 Sample Application

The CBEH module reads the standard time from the internet time server once every
10 minutes. Each time when receives a new data, it will increment the value of
D3960 flag register and simultaneously update the contents of other calendar
registers. The status change feature of the D3960 flag register can be used to control
M1952 to perform data movement and RTC setting or reading. The following is a
sample ladder program and its description:
Program example
The program compares the content of R0 and D3960 to detect the changes in D3960;
every time D3960 changes, the comparison output will enable the movement of the
contents of D3953~D3959 to R4128~R4134 and set the value of R0 to the same as
D3960 in preparation for the detection of the next D3960 change. When scanned the
next time and the contents of R0 and the D3960 register is the same, therefore the
comparison output is again changed of OFF and the M1952 also changes to OFF. The
action of controlling M1952's status to change from ON to OFF will write the newest
time in R4128~R4134 into RTC, therefore achieving the goal of automatic time
synchronization.
62

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cbeh-0aCbeh-2a

Table of Contents