Procedures before operation
MELSEC-WS
118
(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
The following tables list devices used in the sample program.
Table 43: Devices used in the sample program
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
M500
Receive execution
D2
SOCRCV instruction failure error code
M501
SOCRCV instruction success device
D500 and D501 SOCRCV instruction control data
M502
SOCRCV instruction failure device
D520
Response command check device
M510
SOCRCV instruction normal completion
D900 to D976
SOCRCV instruction receive data area
M511
SOCRCV instruction abnormal completion
-
-
M520
Response command verification normal
completion
- -
M521
Data size error device
-
-
C device
*1
C20
SOCRCV instruction
Number of executions
C21 Number
of
successes
C22 Number
of
failures
C31
Verification check
Number of successes
C32 Number
of
failures
*1 C device is used to check the operation of the communication program.
If the Built-in Ethernet port QCPU stops during communications in auto update
mode, the SOCRCV instruction will not be executed even when data are
transmitted from the WS0-GETH. This may cause the receive buffer of the Built-
in Ethernet port QCPU to overflow and data transmission of the WS0-GETH to
stop.
If the scan time of the Built-in Ethernet port QCPU is longer than the
transmission interval of the WS0-GETH, update of received data delays. For this
reason, configure the auto update interval much longer than the scan time.
Note
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: ......