Modbus, Example 4) – IAI America ROBO Cylinder Series User Manual

Page 171

Advertising
background image

5. Modbus RTU

163

Modbus

(Example 4)

Move in the incremental mode by setting the pitch to 10 mm.

Pitch

[mm]

Positioning

band

[mm]

Speed

[mm/s]

Acceleration/

deceleration

[G]

Push

[%]

Control flag

10

0.1

100

0.3

0

Incremental

(bit3 = 1)

„

Query: 01 10 9900 0009 12 0000 03E8 0000 000A 0000 2710 001E 0000 0008 F3A0

„

Response: 01 10 9900 0009 2E93

--- The query message is copied, except for the number of bytes and new data, and returned

as a response.


„ᴾ

Breakdown of Query Message

Field

RTU mode

8-bit data

Remarks

Start

None

Silent interval

Slave address

01

H

Axis No. 0 + 1

Function code

10

H

Start address

9900

H

The start address is the target position specification

register 9900

H

.

Number of registers

0009

H

Specify 9900

H

through 9908

H

as the addresses to be

written.

Number of bytes

12

H

9 (registers) x 2 = 18 (bytes) o 12

H

0000

H

All upper bits of the 32-bit data are 0.

New data 1, 2

(target position)

Input unit (0.01 mm)

03E8

H

10 [mm] × 100 = 1000 o 03E8

H

0000

H

All upper bits of the 32-bit data are 0.

New data 3, 4

(positioning band)

Input unit (0.01 mm)

000A

H

0.1 [mm] × 100 = 10 o 000A

H

0000

H

All upper bits of the 32-bit data are 0.

New data 5, 6 (speed)

Input unit (0.01 mm/sec)

2710

H

100 [mm/s] × 100 = 10000 o 2710

H

New data 7

(acceleration/deceleration)

Input unit (0.01 G)

001E

H

0.3 [G] × 100 = 30 o 001E

H

New data 8 (push)

Input unit (%)

0000

H

0 [%] o 0

H

New data 9 (control flag)

0008

H

(Incremental setting)

1000b o 0008

H

Error check

F3A0

H

CRC check calculation result o F3A0

H

End

None

Silent interval

Total number of bytes

27

Advertising