beautypg.com

Delta DVP-ES2 User Manual

Page 498

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3 - 3 8 2

API Mnemonic Operands

Function

166

TRD P

Time read

Controllers

ES2/EX2 SS2 SA2

SE

SX2

Bit Devices

Word devices

Program Steps

Type

OP

X Y M S

K H

KnX

KnY KnM KnS T C D E F

D

*

*

*

TRD, TRDP: 3 steps

PULSE 16-bit 32-bit

ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2

Operand:

D: Current time of RTC (occupies 7 consecutive devices)

Explanations:

1.

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

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

2.

Only when power is on can RTCs of SS2 series perform the fuction of timing. The RTC data

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

time value before power down. Therefore, we suggest users modify the RTC value every time

when power is ON.

3.

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

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

operated since one or two weeks ago, please reset RTC.

4.

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

to note below.

5.

For relative flags and registers please refer to Points to note.

Program Example:

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

The content of D1318: 1 = Monday; 2 = Tuesday … 7 = Sunday.

X0

TRD

D0

Special D

Item

Content

Normal D

Item

D1319 Year

(A.D.)

00~99

D0 Year

(A.D.)

D1318 Day

(Mon.~Sun.)

1~7

D1 Day

(Mon.~Sun.)

D1317 Month

1~12

D2 Month

D1316 Day

1~31

D3 Day

D1315 Hour

0~23

D4 Hour

D1314 Minute

0~59

D5 Minute

D1313 Second

0~59

D6 Second

This manual is related to the following products: