Prm_wr: 02h (write parameter), Id_rd: 03h (read id number) – Yaskawa 1000 Series Drive Option - MECHATROLINK-II Technical Manual User Manual

Page 19

Advertising
background image

8 MECHATROLINK-II Commands

YASKAWA ELECTRIC

SIEP C730600 50A YASKAWA AC Drive-Option Card MECHATROLINK-II Technical Manual

19

„

PRM_WR: 02H (Write Parameter)

The PRM_WR command is used to write the drive internal parameters.
To save the setting value in the drive EEPROM, set the CONFIG_MOD in the CONFIG command to 1. For details, refer
to the section describing the CONFIG command.

In the following cases, a warning is generated and the command is ignored.

• If a register number (NO) fault occurs: Data setting warning (A.94)
• If SIZE is an odd number or is not between 2 and 8: Data setting warning (A.94)
• Data upper/lower limit fault: Data setting warning (A.94)
• While using the Operator to change settings: Command warning (A.95)
• If not in phase 2 or 3: Command warning (A.95)
• During an undervoltage fault: Command warning (A.95)

The register number (NO) is the same as the register number that is set and referenced in MEMOBUS/Modbus transfers.
Set the lower byte (LSB) before setting the upper byte (MSB). Refer to Drive Technical Manual for detail.
Set the values for DATA from lower byte (LSB) to upper byte (MSB). For SIZE, set the number of bytes to be written as
an even number. Eight bytes can be specified.

The values for the NO, SIZE, and DATA in the response are copies of values in the command.

Example when writing in C1-01 (200H):

Table 9 Example when writing in C1-01 (200H)

„

ID_RD: 03H (Read ID Number)

The ID_RD command is used to read the ID number.
The following table shows the applicable DEVICE_CODE.

Because of ID area limitations, no more than eight bytes can be read, so use the OFFSET and SIZE to specify the range.
The leading ID data that corresponds to the specified OFFSET and returned is shown in the

Table 10

and

Table 11

.

Up to eight bytes can be used for SIZE. This command can be used in all phases.

Byte

Command

Response

1

PRM_WR

PRM_WR

2

0

ALARM

3, 4

STATUS

5, 6

NO

NO

7

SIZE

SIZE

8 to 15

DATA

DATA

16

WDT

RWDT

Byte

Command

Response

5

00

00

6

02

02

7

02

02

8

Setting value (Lower byte)

Setting value (Lower byte)

9

Setting value (Upper byte)

Setting value (Upper byte)

Byte

Command

Response

1

ID_RD

ID_RD

2

0

ALARM

3, 4

STATUS

5

DEVICE_CODE

DEVICE_CODE

6

OFFSET

OFFSET

7

SIZE

SIZE

8 to 15

0

ID

16

WDT

RWDT

Advertising