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.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

API Mnemonic Operands Function<br />

166 TRD P Time read<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

Type<br />

Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F<br />

D * * *<br />

Operand:<br />

D: Current time of RTC (occupies 7 consecutive devices)<br />

TRD, TRDP: 3 steps<br />

PULSE 16-bit 32-bit<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE SE SE <strong>SX2</strong><br />

Explanations:<br />

1. TRD instruction reads the 7 real-time data of RTC (year (A.D.), day(Mon.Sun.), month, day,<br />

hour, minute, second from D1319~D1313 and stores the read data in registers specified by D.<br />

2. Only when power is on can RTCs of <strong>SS2</strong> series perform the fuction of timing. The RTC data<br />

registers D1319~D1313 are latched. When power is resumed, the RTC will resume the stored<br />

time value before power down. Therefore, we suggest users modify the RTC value every time<br />

when power is ON.<br />

3. RTCs of <strong>SA2</strong>/SE V1.0 及 <strong>ES2</strong>/<strong>EX2</strong>/<strong>SX2</strong> V2.0 series can still operate for one or two weeks after<br />

the power is off (they vary with the ambient temperature). Therefore, if the machine has not<br />

operated since one or two weeks ago, please reset RTC.<br />

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

to note below.<br />

5. For relative flags and registers please refer to Points to note.<br />

Program Example:<br />

When X0 = ON, TRD instruction reads the current time of RTC to the specified register D0~D6.<br />

The content of D1318: 1 = Monday; 2 = Tuesday … 7 = Sunday.<br />

X0<br />

TRD<br />

D0<br />

Special D Item Content Normal D Item<br />

D1319 Year (A.D.) 00~99 → D0 Year (A.D.)<br />

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

D1317 Month 1~12 → D2 Month<br />

D1316 Day 1~31 → D3 Day<br />

D1315 Hour 0~23 → D4 Hour<br />

D1314 Minute 0~59 → D5 Minute<br />

D1313 Second 0~59 → D6 Second<br />

3-382

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

Saved successfully!

Ooh no, something went wrong!