Program Example For Reading Data; System Configuration; Devices Used In The Program; Read Instruction Setting - Mitsubishi Electric QJ71GF11-T2 User Manual

Melsec-q series cc-link ie field network master/ local module
Table of Contents

Advertisement

(4) Program example
The following program is for reading data of D250 to D254 of station No.4 (target station) into D700 to D704 of
station No. 0 (own station) when M101 is turned on.
(a) System configuration
CPU module
READ instruction
request source
(Own station)
D700
D701
D702
D703
D704
(b) Devices used in the program
• Link special relay (SB), link special register (SW)
Device
SB0047
Baton pass status (own station)
• Devices used by the user
Device
M100
Control data setting command
M101
Start contact
M105
Completion device
M106
Completion status indication device
(c) READ instruction setting
The following table lists values set in READ instruction control data.
Device
(S1)+0
D200
(S1)+1
D201
(S1)+2
D202
(S1)+3
D203
(S1)+4
D204
(S1)+5
D205
(S1)+6
D206
(S1)+7
D207
(S1)+8
D208
(S1)+9
D209
(S1)+10
D210
(S1)+11
D211
(S1)+12 to
D212 to D215
(S1)+15
(S1)+16
D216
(S1)+17
D217
Station No.0
Master/local
module
Channel 1
Description
Description
Item
Abnormal end type
Completion status
Channels used by own station
Target station's CPU type
Target station's network No.
Target station number
(Unused)
Number of resends
Arrival monitoring time
Read data length
(Unused)
Clock set flag
Clock data of abnormal end
Error-detected station's
network No.
Error-detected station number
CHAPTER 10 DEDICATED INSTRUCTIONS
CPU module
READ instruction
request target
(Target station)
D250
D251
D252
D253
D254
Network No.1
Device
SW00A0.3
Baton pass status (each station) of station No.4
Device
D200 to D217
Control data
D700 to D704
Read data storage device (station No.0)
0081
(Sets data for abnormal end)
H
(The system sets this item.)
1
0000
(control CPU)
H
1
4
0
5 times
0 (10 seconds)
5 words
0
(The system sets these items.)
Station No.4
Master/local
module
Description
Description
Set value
255
10

Advertisement

Table of Contents
loading

Table of Contents