Mstr transaction #2, Mstr transaction #3 – Yaskawa VS-616G5 Modbus Plus Communication Card User Manual

Page 54

Advertising
background image

9-10 Examples

MSTR Transaction #2

This MSTR transaction writes to the F200h register of the drive on node #3. The Control Block
registers must be loaded with the following data before the MSTR block is executed:

CONTROL BLOCK

Register

Number

Register

Description

Register

Data

Data

Description

40120

Operation Code

0001h

0001h = Write to Multiple Registers

40121

Network Error Code

0000h

The error code returned by Modbus Plus
communications

40122

Number of Registers

0001h

Write to 1 register

40123

Data Register Code

F200h

Global Write Data Code

40124

Routing 1

0003h

Modbus Plus node address of drive = 0003h

40125

Routing 2

0001h

End of routing path = 0001h (Modbus Plus
requirement)

40126

Routing 3

0000h

This routing register is not used, must be set to 0

40127

Routing 4

0000h

This routing register is not used, must be set to 0

40128

Routing 5

0000h

This routing register is not used, must be set to 0


The Data Block registers must be loaded with the appropriate PLC address before the MSTR
block is executed.

DATA BLOCK

Register

Number

Register

Description

Register

Data

Data

Description

40130

Receive Global Data

0001h

0001h = the PLC/host device (source of global
data) address.


MSTR Transaction #3

This MSTR transaction writes to the F200h register of the drive on node #4. The Control Block
registers must be loaded with the following data before the MSTR block is executed:

CONTROL BLOCK

Register

Number

Register

Description

Register

Data

Data

Description

40140

Operation Code

0001h

0001h = Write to Multiple Registers

40141

Network Error Code

0000h

The error code returned by Modbus Plus
communications

40142

Number of Registers

0001h

Write to 1 register

40143

Data Register Code

F200h

Global Write Data Code

40144

Routing 1

0004h

Modbus Plus node address of drive = 0004h

40145

Routing 2

0001h

End of routing path = 0001h (Modbus Plus
requirement)

40146

Routing 3

0000h

This routing register is not used, must be set to 0

40147

Routing 4

0000h

This routing register is not used, must be set to 0

40148

Routing 5

0000h

This routing register is not used, must be set to 0

Advertising