Melsec-q – MITSUBISHI ELECTRIC QJ71C24N User Manual

Page 263

Advertising
background image

10 - 12 10 - 12

MELSEC-Q

10 TROUBLESHOOTING

(2) Example of a program that reads from the setting status storage

area

The following shows an example of a program that reads the setting of various

switches of the Q series C24 from the setting status storage area.

For details on XE and XF of the input/output signals used in the program, see

Section 10.1.2 (3).

(input/output signals X/Y00 to X/Y1F of the Q series C24)

Example of FROM instruction

Reads error description from address 203

H.

Reads station number setting and switch
setting description from address 200

H

.

Reads communication protocol setting and
transmission setting description on the CH1
side from addresses 250

H

to 251

H

.

Reads communication protocol setting and
transmission setting description on CH2
from addresses 260

H

to 261

H

.

Restarts the Q series C24 after checking the error code and resetting switches.

b15b14b13b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

Error description (1: Communication protocol number setting error)

Setting station number of the Q series C24 (0).

CH1 side

D0

D1

D2

D3

D4

D5

Communication protocol setting number (9).
(transmission setting description)

CH2 side

Displays communication protocol number setting error status on the CH1 side

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0

1 0 0 1

0 0 0 0 0

1 0

1 0 0 0 0

1 0

1 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

1

0 0 0 0 0

1 0

1 0

1 1 0

1 0

1 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

1

Communication protocol setting number (1).
(transmission setting description)

Advertising
This manual is related to the following products: