17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

Points to note:<br />

1. There are two methods to correct built-in RTC:<br />

• Correcting by API167 TWR instruction<br />

Please refer to explanation of instruction TWR (API 167)<br />

• Setting by peripheral device<br />

Using WPLSoft / ISPSoft (Ladder editor)<br />

2. Display 4-digit year data:<br />

• D1319 only stores the 2-digit year in A.D. If 4-digit year data is required, please insert the<br />

following instruction at the start of program.<br />

M1002<br />

SET M1016 Display 4-digit year data<br />

• The original 2-digit year will be switched to a 4-digit year, i.e. the 2-digit year will pluses<br />

2,000. If users need to write in new time in 4-digit year display mode, only a 2-digit year<br />

data is applicable (0 ~ 99, indicating year 2000 ~ 2099). For example, 00 = year 2000, 50<br />

= year 2050 and 99 = year 2099.<br />

• Flags and special registers for RTC<br />

Device Content Function<br />

M1016 Year display<br />

mode of RTC<br />

OFF: D1319 stores 2-digit year data in A.D.<br />

ON: D1319 stores 2-digit year data in A.D + 2000<br />

M1017 ±30 seconds<br />

correction on<br />

RTC<br />

Correction takes place when M1017 goes from OFF to<br />

ON (Second data in 0 ~ 29: reset to 0. Second data in<br />

30 ~ 59: minute data pluses 1, second data resets)<br />

Device Content Range<br />

D1313 Second 0-59<br />

D1314 Minute 0-59<br />

D1315 Hour 0-23<br />

D1316 Day 1-31<br />

D1317 Month 1-12<br />

D1318 Day (Mon. ~ Sun.) 1-7<br />

D1319 Year 0-99 (two digit year data)<br />

3-383

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!