beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 516

background image

9 Application Instructions API 150-199

DVP-PLC Application Manual

9-44

Remarks:

1.

Flags and special registers for the built-in RTC in EH/EH2/SV/SA/SX/SC series MPU.

Device

Name

Function

M1016

Displaying year in
A.D. in RTC

When Off, D1319 will display 2-digit year in A.D.
When On, D1319 will display “2-digit year in A.D + 2,000”.

M1017

±30 seconds
correction

Correction takes place when M1017 goes from Off to On (reset to 0 when in
0 ~ 29 second; minute pluses 1 and second resets to 0 in 30 ~ 59 second)

M1076 Malfunction of RTC

On when the set value exceeds the range. (only available when the power
is being switched on).

D1313

Second

0 ~ 59

D1314

Minue

0 ~ 59

D1315

Hour

0 ~ 23

D1316

Day

1 ~ 31

D1317

Month

1 ~ 12

D1318

Week

1 ~ 7

D1319

Year

0 ~ 99 (2-digit year in A.D.)

2.

How to correct RTC:

There are 2 ways to correct the built-in RTC.

a)

By a specific instruction. (See API 167 TWR instruction)

b)

By peripheral devices, WPLSoft, the ladder diagram editing software.

3.

How to display 4-digit year in A.D.:

a) Normally, the year is only displayed in 2 digits (e.g. 2003 displayed as 03). If you wish the year to be

displayed in 4 digits, please key in the following program at the start of the program.

M1002

SET

M1016

display 4-digit year in A.D.

b) The original 2-digit year will be switched to a 4-digit year, i.e. the 2-digit year will pluses 2,000.

c)

If you wish to write in new time in the 4-digit year display mode, you can only write in a 2-digit year (0 ~ 99,

indicating year 2000 ~ 2099). For example, 00=year 2000, 50=year 2050 and 99=year 2099.