IDEC MicroSmart Pentra User Manual

Page 68

Advertising
background image

5: F

UNCTION

A

REA

S

ETTINGS

5-8

W

EB

S

ERVER

CPU M

ODULE

U

SER

S

M

ANUAL

FC9Y-B1278

Special Data Registers and Special Internal Relays

Special Internal Relays

Special Data Registers
The calendar/clock data obtained from the SNTP server is stored in the following special data registers.

Adjusting Clock Cartridge
Calendar/clock data obtained from an SNTP server can be used to adjust the clock cartridge. When M8191 (SNTP
Calendar/Clock Data Write Flag) is turned on, the values in D8414 to D8420 are written to the clock cartridge. If M8191 is
kept on, the clock cartridge is adjusted every 24 hours.

Note:

• When using a clock cartridge, week programmer instructions operate using the time information of the clock cartridge. The

calendar/clock data of the clock cartridge is stored in D8008 to D8014.

Using SNTP Calendar/Clock as a Simple Clock
When a clock cartridge is not used, the calendar/clock data obtained from an SNTP server can be used as a simple clock.
When a clock cartridge is not installed on the Web server CPU module, week programmer instructions operate using the
calendar/clock data obtained from SNTP the server. The values in D8414 to D8420 (calendar/clock data obtained from
SNTP server) are automatically transferred to D8008 to D8014 (calendar/clock data of memory cartridge). No
modification is required in the ladder programs using the values in D8008 and D8014.

Note:

• When the Web server CPU module is powered, it does not have time information. Once the current time is obtained from the

SNTP server, the calendar/clock data is stored in special data registers. If the Web server CPU module cannot access SNTP server,
SNTP calendar/clock cannot be used.

Device Address

Description

Operation

M8191

SNTP Calendar/Clock Data
Write Flag

When M8191 is turned on, the clock cartridge is adjusted with SNTP
calendar/clock data. If M8191 is kept on, the clock cartridge is
adjusted every 24 hours.

Device Address

Description

Details

D8414

Year

0 to 99 is stored. The last 2 digits of the year are stored. If the year is
2011, the stored value is 11.

D8415

Month

1 to 12 is stored.

D8416

Day

1 to 31 is stored.

D8417

Day of Week

0 to 6 is stored according to the day of the week as follows:
0=Sunday, 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday,
5=Friday, 6=Saturday

D8418

Hour

0 to 23 is stored.

D8419

Minute

0 to 59 is stored.

D8420

Second

0 to 59 is stored.

Advertising