Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
схемотехника / Manuals_Handb№cher / ALPHA XL / English / ALPHA XL_Communication Manual_versD_ENGLISH.pdf
Скачиваний:
33
Добавлен:
17.04.2015
Размер:
2.2 Mб
Скачать

α2 Simple Application Controllers

The Command String 7

7.6.6VLS Time Switch Settings (Sample)

The Time Switch Setting at right is a sample of the dialog box in th e VL S software.

This dialog box can be used to se t We ekl y o r Da il y settings.

This is an example of setting a TimeSwitch by date in the VLS software. In this dialog box, it is possible to choose the Date, Monthly or Yearly settings.

7 - 36

α2 Simple Application Controllers

Four Time Settings are shown in this picture of a Time Switch. The types of The source code below is a sample written in Visual Basic and is provided as a testing aide fo r α 2 De dicate d Pro toco l communication.

The Command String 7

7 - 37

α2 Simple Application Controllers

The Command String 7

7.6.7RTC Read Command

1) Command Specification Format B is shown.

S

T

X

C om puter

2 Controller

No. comm bytes

03H

Format No.

Station No.

 

 

Command

20H

E T X

Sum check (LB) Sum check (HB)

S T X

No. comm bytes

03H

Format No.

Station No.

Complete flag

 

 

 

or

S T X

No. comm bytes

0D H

Format No.

Station No.

 

 

Command

Year (yyyyl) Year (yyyyh) Month (mm) Day (dd) Hour (hh) Min (mm) Sec (ss)

 

 

 

 

 

 

 

 

20H

S T X

No. comm bytes

04H

Format No.

Station No.

 

 

N A K

Error Code

Status (*1) DoW (*2) ADJ (*3)

E T X

Sum check (LB) Sum check (HB)

*1 Status of time

0: Winter time , 1: Summer time , 0xff : RTC time invalid *2 DoW(Day of the week)

0: Sunday , 1: Monday , 2: Tuesday , 3: Wednesday , 4: Thursday , 5: Friday , 6: Saturday *3 ADJ(RTC clock adjust)

The RTC clock adjust value is the adjustment of the RTC speed in steps of 0.25 s/d. -41...0...83 (0xD7...00...0x53)

2 ) Command Example

Controller time: 2004/01/01 00:00.00 Thursday, RTC time invalid

 

X

commNo. bytes

 

S

 

 

T

 

Com puter

02H

03H

2 Controller

 

 

FormatNo.

StationNo.

Command

E

checkSum

(LB)

 

 

 

T

 

 

 

 

 

X

 

 

41H 04H 20H 03H 65H

Sum check (HB)

00H

S

commNo.

bytes

FormatNo.

StationNo.

Complete flag

 

 

 

 

 

 

 

 

S

commNo.

bytes

FormatNo.

T

 

 

 

 

 

 

 

 

 

 

 

 

 

T

 

 

 

X

 

 

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

02H

03H

40H

04H

21H

 

 

 

 

 

 

 

 

02H

0D H

41H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Station No.

Command

 

Year (yyyyl)

Year (yyyyh)

Month (mm)

 

Day (dd)

 

Hour (hh)

Min (mm)

Sec (ss)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

04H

20H

D4H

07H

01H

01H

00H

00H

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Status (*1)

DoW

(*2)

ADJ

(*3)

 

 

E

 

 

 

checkSum (LB)

checkSum (HB)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFH

04H

00H

03H

3DH

02H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7 - 38

α2 Simple Application Controllers

The Command String 7

7.6.8RTC Write Command

1) Command Specification Format B is shown.

 

 

 

 

 

 

 

 

S

comm.No

bytes

FormatNo.

StationNo.

Command

 

Year (yyyyl)

Year (yyyyh)

 

Month (mm)

 

Day (dd)

Hour (hh)

Min (mm)

Sec (ss)

ADJ (*1)

E

 

 

 

 

 

 

 

 

T

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T

 

 

 

 

 

 

 

 

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

Com puter

 

 

 

0BH

 

 

21H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2 Controller

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S

03HNo.commbytes

FormatNo.

StationNo.

Completeflag

 

 

 

 

 

 

 

 

 

 

S

 

 

03HNo.commbytes

 

FormatNo.

 

StationNo.

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T

 

 

 

 

 

 

 

 

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

 

 

 

 

 

 

K

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

or

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S

comm.No

bytes

FormatNo.

StationNo.

N

 

 

CodeError

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T

 

 

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

 

K

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

04H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sum check (LB) Sum check (HB)

*1 ADJ(RTC clock adjust)

The RTC clock adjust value is the adjustment of the RTC speed in steps of 0.25 s/d. -41...0...83 (0xD7...00...0x53)

2 ) Command Example

2004/05/30 10:11.00 ,Clock Adjust to -2.0s/d

Com puter

S

comm.No

bytes

FormatNo.

StationNo.

Command

Year (yyyyl) Year (yyyyh)

T

 

 

 

 

 

 

X

 

 

 

 

 

 

02H 0BH 41H 04H 21H D4H 07H

Month (mm) Day (dd) Hour (hh) Min (mm) Sec (ss) ADJ (*1)

05H 1EH 0AH 0BH 00H F8H

E

checkSum

(LB)

T

 

 

X

 

 

03H

71H

 

 

 

checkSum (HB) 02H

2 Controller

S

comm.No

bytes

FormatNo.

StationNo.

Complete flag

 

 

 

 

 

 

 

 

 

S

comm.No

bytes

FormatNo.

StationNo.

A

T

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T

 

 

 

 

C

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

 

K

02H

03H

40H

04H

21H

 

 

 

 

 

 

 

 

 

02H

03H

40H

04H

06H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7 - 39

Соседние файлы в папке English