14. COMMUNICATION FUNCTIONS

14.9 Initialization

After the slave station is switched on, it cannot reply to communication until the internal initialization processing terminates. Hence, at power-on, ordinary communication should be started after:

(1)1s or more time has elapsed after the slave station is switched on; and

(2)Making sure that normal communication can be made by reading the parameter or other data which does not pose any safety problems.

14.10 Communication procedure example

The following example reads the set value of parameter No.2 "function selection 1" from the servo amplifier of station 0:

Data item

Value

Description

Station number

0

Servo amplifier station 0

Command

05

Read command

Data No.

02

Parameter No.2

 

 

Axis No.

Command Data No.

 

Start

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data

 

[0]

 

 

 

STX

0 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data make-up

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[0][0][5] STX

[0][2] ETX

 

 

 

 

 

 

Checksum calculation and

Checksum 30H 30H 35H 02H 30H 32H 03H

 

 

FCH

 

 

 

addition

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Transmission data

 

 

 

 

 

 

STX 0 2

F C 46H 43H

 

 

 

 

 

 

 

 

Addition of SOH to make

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

up transmission data

 

 

 

 

 

 

 

 

 

 

 

 

 

Master station

slave station

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data transmission

 

 

 

 

 

Data receive

 

 

 

 

 

Is there receive data?

 

No

 

 

 

 

 

 

 

 

 

Yes

300ms elapsed?

No

 

 

 

 

 

 

 

 

 

 

Yes

 

 

 

 

3 consecutive times?

No

 

 

 

 

 

Yes

Other than error code

Yes

 

 

 

 

 

 

100ms after EOT transmission

No

 

[A]

[a]?

 

 

 

 

 

 

3 consecutive times?

No

 

 

 

 

 

 

 

Error processing

 

 

 

 

 

 

 

 

Yes

Receive data analysis

 

 

 

 

 

 

Error processing

End

Master station slave station

Master station slave station

14 - 10

Page 233
Image 233
Mitsubishi Electronics MR-J2S- A Initialization, Communication procedure example, Data item Value Description, Stx, Fch