Добавил:
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.6Commands

The following section will outline commands used to implement dedicated protocol with an α2 Series Controller.

Table 7.14: Dedicated protocol commands

 

Command

Description

Section

 

 

 

 

 

 

Format A has limited operational functionary, however,

 

1)

Communication Line Check

checking the connection between the controller and the

7.6.1

 

 

personal computer is the primary aim.

 

 

 

 

 

2)

Read Command

The READ command is used to retrieve the status of

7.6.2

the intended internal device. Format B only.

 

 

 

 

 

 

 

3)

Write Command

The WRITE command is used to control the status of

7.6.3

the intended internal device. Format B only.

 

 

 

 

 

 

 

4)

Run/Stop Command

The RUN/STOP command is used to control the

7.6.4

operation of the controller.

 

 

 

 

 

 

 

 

 

The Time Switch command follows the same principle

 

5)

Time Switch Command

as the READ/WRITE commands in Format B, however,

7.6.5

a different structure is required due to the amount of

 

 

 

 

 

data needed to implement a setting change.

 

 

 

 

 

6)

RTC Read Command

The RTC Read Command is Read of Alpha 2 time, date

7.6.7

and RTC clock speed adjust value.

 

 

 

 

 

 

 

7)

RTC Set Command

The RTC Set Command is Set of Alpha 2 time, date and

7.6.8

RTC clock speed adjust value.

 

 

 

 

 

 

 

 

 

 

 

7 - 20

α2 Simple Application Controllers

The Command String 7

7.6.1Communication Line Check

1 ) Command Specification Format A is shown.

Computer

α2 Controller

S

No.comm

bytes

FormatNo.

StationNo.

E

 

 

 

 

 

 

 

 

T

N

 

 

 

 

 

 

 

 

X

Q

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

03H

 

 

 

 

 

 

 

 

 

 

 

 

03 = 01 + 01 + 01

S

No. comm

bytes

Format No.

Station No.

A

 

 

 

 

 

 

(bytes)

 

 

 

 

 

 

 

 

T

C

 

 

 

 

 

 

 

 

X

K

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

03H

 

 

 

 

 

 

 

 

 

 

 

 

03 = 01 + 01 + 01

(bytes)

 

 

 

 

 

 

 

 

 

or

 

 

 

 

 

 

 

 

 

 

S

No. comm

bytes

Format No.

Station No.

N

Error Code

 

 

 

 

 

 

 

T

A

 

 

 

 

 

 

 

X

K

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

04H

 

 

 

 

 

 

 

 

 

 

 

 

04 = 01 + 01 + 01 + 01

(bytes)

2 ) Command Example

Standard command for communication line check. This default command string can be used at any time for checking if dedicated protocol is possible. If no response is replied from the controller, check the communication settings, check cabling and check the command string

 

X

commNo. bytes

 

S

 

 

T

 

Com puter

02H

03H

α2 Controller

 

 

No.

Station

No.

Format

40H 00H

E

N

Q

03H

X

No.comm bytes

S

 

T

 

02H 03H

No.

Station

No.

Format

40H 00H

A

C

K

06H

The received message shows that the communication line is fine.

7 - 21

α2 Simple Application Controllers

The Command String 7

7.6.2Read Command

1 ) Command Specification Format B is shown.

Computer

α2 Controller

S T X

07HNo.commbytes

FormatNo.

StationNo.

Command

devicesofNo.

codeDevice

DeviceNo. (LB)

DeviceNo. (HB)

E

checkSum

(LB)

checkSum (HB)

 

 

 

 

 

 

 

 

T

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

07 = 01 + 01 + 01 + 01 + 01 + 01 + 01 (bytes)

S T X

03HNo.commbytes

Format No.

Station No.

Complete flag

 

 

 

 

03 = 01 + 01 + 01 (bytes)

or

S T X

05HNo.commbytes

FormatNo.

StationNo.

Command

devicesofNo.

statusDevice

E

 

 

 

 

 

 

T

 

 

 

 

 

 

X

 

 

 

 

 

 

 

05 = 01 + 01 + 01 + 01 + 01

 

 

 

 

 

 

(bytes)

Sum check (LB) Sum check (HB)

S T X

commNo. bytes

FormatNo.

StationNo.

N

CodeError

 

 

 

A

 

 

 

 

K

 

04H

 

 

 

 

 

 

 

 

 

04 = 01 + 01 + 01 + 01 (bytes)

2 ) Command Example

a ) Read Status of Output O01 in Station 00.

 

 

 

 

 

 

 

 

S

 

commNo.

bytes

 

Format No.

 

Station No.

 

Command

 

ofNo. devices

 

 

 

 

 

 

 

 

T

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Com puter

 

 

02H

07H

41H

00H

00H

01H

α2 Controller

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S

commNo.

bytes

Format No.

Station No.

Complete flag

 

 

 

 

 

 

 

 

 

 

 

 

 

T

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

02H

03H

40H

00H

21H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Device code

DeviceNo.

(LB)

 

DeviceNo. (HB)

 

 

E

checkSum

(LB)

 

checkSum (HB)

 

 

 

 

 

 

 

 

 

 

T

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

 

 

 

 

 

 

 

 

 

 

42H

01H

00H

03H

85H

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

commNo.

bytes

 

Format No.

 

Station No.

 

 

Command

 

 

S

 

 

 

 

ofNo. devices

Device status

T

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

02H

05H

 

41H

 

00H

00H

01H

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

E

checkSum

(LB)

T

 

 

X

 

 

03H 42H

Sum check (HB)

00H

The received message shows that the Status of Output O1 is OFF.

7 - 22

α2 Simple Application Controllers

The Command String 7

b ) Read the Status of the Delay FB Word parameters CWNo.5 and 6 as shown below. Refer to section 6.1 for more details concerning VLS settings for dedicated protocol bit/ word settings.

The following command string will use device code 69 (communication word CWNo. device code) to access parameters 5 and 6.

 

S

commNo.

bytes

FormatNo.

StationNo.

Command

ofNo. devices

Device code

DeviceNo. (LB)

DeviceNo. (HB)

Device code

DeviceNo. (LB)

DeviceNo. (HB)

E

checkSum

(LB)

checkSum (HB)

 

T

 

 

 

 

 

 

 

 

 

 

 

 

T

 

 

 

 

X

 

 

 

 

 

 

 

 

 

 

 

 

X

 

 

 

Computer

02H

0AH

41H

00H

00H

02H

69H

05H

00H

69H

06H

00H

03H

20H

01H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

α2 Controller

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S

commNo.

bytes

FormatNo.

StationNo.

Complete flag

T

 

 

 

 

 

X

 

 

 

 

 

02H 03H 40H 00H 21H

S

commNo.

bytes

FormatNo.

StationNo.

Command

ofNo. devices Device status Device status Device status Device status

E

checkSum

(LB)

checkSum (HB)

T

 

 

 

 

 

 

T

 

 

 

X

 

 

 

 

 

 

X

 

 

 

02H 08H 41H 00H 00H 02H 32H 00H 0FH 00H 03H 84H 00H

The received message shows that

Parameter 5 00H (HB) 32H (LB) = 50 decimal Parameter 6 00H (HB) 0FH (LB) = 15 decimal

7 - 23

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