MELSEC-WS
Procedures before operation
121
(2) Sample program
This manual describes only devices used in sample programs and details of the
processing.
For the acquisition of sample programs, please contact your local Mitsubishi
representative.
1) Device assignment [for reading/writing]
The following tables list devices used in the sample program.
Table 44: Devices used in the sample programs
W device
W0 to W18
Input data set 1 storage area
W20 to W2F
Input data set 2 storage area
W30 to W4D
Input data set 3 storage area
M device
D device
M300
Open execution
D0
OPEN instruction abnormal completion
error code
M301
OPEN instruction success device
M302
OPEN instruction failure device
D1
BUFSND instruction abnormal
completion error code
M310
OPEN instruction normal completion
M311
OPEN instruction abnormal completion
D2
BUFRCV instruction abnormal
completion error code
M400 Send
execution
M401
BUFSND instruction success device
D3
CLOSE instruction abnormal
completion error code
M402
BUFSND instruction failure device
M410
BUFSND instruction normal completion
D300 to D309
OPEN instruction control data
M411
BUFSND instruction abnormal completion
D400 and
D401
BUFSND instruction control data
D500 and
D501
BUFRCV instruction control data
M420
Command in execution
D520
Response command check device
(reading)
M500
Receive execution
D521
Response command check device
(writing)
M501
BUFRCV instruction success device
D600 and
D601
CLOSE instruction control data
M502
BUFRCV instruction failure device
D700 to D705
BUFSND instruction send data area
(reading)
M510
BUFRCV instruction normal completion
D800 to D831
BUFSND instruction send data area
(writing)
M511
BUFRCV instruction abnormal completion
D900 to D976
BUFRCV instruction receive data area
(reading and writing)
M520
Response command verification normal
completion
X device
M521
Data size error device
X0
Fixed buffer reception status signal
M601
CLOSE instruction success device
X10
Open complete signal
M602
CLOSE instruction failure device
X19
Initial processing normal completion
signal
M610
CLOSE instruction normal completion
-
-
M611
CLOSE instruction abnormal completion
-
-
M1000 to
M1023
Device area used for byte swapping
-
-
M2000
OPEN execution (1PLS)
-
-
M2001
OPEN request signal
-
-
Summary of Contents for Melsec WS Series
Page 1: ...Safety Controller Ethernet Interface Module User s Manual WS0 GETH ...
Page 2: ......
Page 89: ...Procedures before operation MELSEC WS 86 ...
Page 90: ...MELSEC WS Procedures before operation 87 ...
Page 91: ...Procedures before operation MELSEC WS 88 ...
Page 97: ...Procedures before operation MELSEC WS 94 ...
Page 98: ...MELSEC WS Procedures before operation 95 ...
Page 99: ...Procedures before operation MELSEC WS 96 ...
Page 141: ......