Asi commands, As-i – IDEC MicroSmart AS-i User Manual

Page 48

Advertising
background image

6: AS-I

NTERFACE

O

PERANDS

M

ICRO

S

MART

AS-I

NTERFACE

M

ASTER

M

ODULE

U

SER

S

M

ANUAL

6-17

ASI Commands

The ASI commands are used to update AS-Interface operands in the CPU module or to control the AS-Interface master
module. Data registers D1941 through D1944 are used to store command data. D1945 is used to store a request code
before executing the command. While the command is executed, D1945 stores status and result codes.

ASI Command Format

ASI Command Data

To execute an ASI command, store required values to data resisters D1941 through D1945 as listed in the table below:

*1: WindLDR has the Slave Status dialog box to execute this command to write a PI value to a designated slave. See Sam-

ple Program on page 6-18.

*2: WindLDR has the Change Slave Address dialog box to execute this command.

*3: Completed in a scan when the five data registers store respective values. When completed, D1945 stores 4. See

Request and Result Codes on page 6-18. Other commands takes several scans to complete execution.

*4: Each scan time extends by 0.8 msec. At least 1 sec is required until the ASI command takes effect.

Note: Specify the slave address in the data register as shown in the table below:

Command Part (8 bytes)

Request/Result

D1941

D1942

D1943

D1944

D1945

ASI Command

Processing

Time (ms)

Description

Command Data (Hexadecimal)

D1941

D1942

D1943

D1944

D1945

Read LPS

1.0

*3

Reads LPS to D1776-D1779

010B

084C

0000

0000

0001

Read CDI

10.4

*3

Reads CDI to D1780-D1843

010C

4050

0000

0000

0001

Read PCD

10.4

*3

Reads PCD to D1844-D1907

010E

4090

0000

0000

0001

Read PI

3.0

*3

Reads PI to D1908-D1923

0107

20D0

0000

0000

0001

Read PP

3.0

*3

Reads PP to D1924-D1939

0108

20E0

0000

0000

0001

Read Slave 0 ID1

0.7

*3

Reads slave 0 ID1 to D1940

0109

02F0

0000

0000

0001

Write Slave 0 ID1

0.7

*3

Writes D1940 to slave 0 ID1

0209

02F0

0000

0000

0001

Copy PI to PP

0.8

*4

Copies parameter image to perma-
nent parameter

0306

0100

0000

0000

0001

Change Slave PI

*1

0.8

*4

Writes PI (

∗) to slave (∗∗)

(Note)

0306

0102

000

00

∗∗

0001

Go to Normal Protected Offline

0.8

*4

From normal protected mode to nor-
mal protected offline

0306

0301

0000

0000

0001

Go to Normal Protected Mode

0.8

*4

From normal protected offline to nor-
mal protected mode

0306

0300

0000

0000

0001

Prohibit Data Exchange

0.8

*4

From normal protected mode to nor-
mal protected data exchange off

0306

0401

0000

0000

0001

Enable Data Exchange

0.8

*4

From normal protected data exchange
off to normal protected mode

0306

0400

0000

0000

0001

Change Slave Address

*2

0.8

*4

Change slave address (

∗∗) to new

address (++)

(Note)

0306

0500

00

∗∗

00++

0001

Enable Auto Addressing

0.8

*4

Enables auto address assign (default)

0306

0800

0000

0000

0001

Disable Auto Addressing

0.8

*4

Disables auto address assign

0306

0801

0000

0000

0001

Slave Address

Data Register Value

Slave Address

Data Register Value

Hexadecimal

Decimal

Hexadecimal

Decimal

0(A)

0h

0

1(A)

1h

1

1B

21h

33

2(A)

2h

2

2B

22h

34

|

|

|

|

|

|

31(A)

1Fh

31

31B

3Fh

63

Advertising