Mitsubishi Electric Q03UDVCPU User Manual page 83

Qnucpu series (communication via built-in ethernet port)
Hide thumbs Also See for Q03UDVCPU:
Table of Contents

Advertisement

(1) Start device to store the predefined protocol operation status
In the open setting, set the start device where the predefined protocol operation status is to be stored. The
following information is stored in the area of 19 words starting from the selected device.
Start Device to Store
Predefined Protocol
(offset)
Protocol execution
+0
status
Received data
+1
verification result
(received packet No.1)
Received data
verification result
+2 to 16
(received packet No.2
to 16)
Number of protocol
+17
executions
Protocol cancellation
+18
specification
*1
Even after data communications by the predefined protocol function (executed by the SP.ECPRTCL instruction) is
completed, the stored values are held.
(a) Received data verification result
The following information is stored in the Received data verification result.
• Element No. where the verification result did not match (b0 to b7)
0
1 to 32
FF
H
• The cause of mismatch (verification result code) (b8 to b15)
Stored
value
00
Normal
H
01
Insufficient receive data
H
10
Data not matched
H
ASCII-Binary conversion
11
H
error
12
Data length error
H
30
Data length size error
H
FF
Verification not performed
H
CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL
Name
The execution status of the predefined protocol function is stored. (Default: 0)
• 0: Not executed
• 1: Waiting for data to be sent
• 2: Data being sent
• 3: Waiting for data to be received
• 5: Execution completed
The verification result of received packet No.1 is stored. (Default: 0) (
Section 6.2 (1) (a))
• b0 to b7: Element No. where the verification result did not match
• b8 to b15: The cause of mismatch (verification result code)
The bit configuration is the same as the received packet No.1.
The number of protocol executions is stored. (Default: 0)
• 0: No execution
• 1 to 65535: Number of executions (The value remains the same after 65535.)
The protocol cancellation request status is stored. (Default: 0)
• 0: No cancellation requested
• 1: Cancellation requested (set by users)
• 2: Cancellation completed (set by the system)
Stored value
Description
The total packet size of receive data is smaller than that set in protocol data.
The receive data do not match the value set in protocol data.
When "ASCII Hexadecimal" is set in Code Type, data not in ASCII code are
received.
The received Length value exceeds 2046 bytes.
The Length value received from the external device does not match the
actual length of received data.
*1
Description
Description
Verification matched
Element No. where the verification result did not match
Verification not performed
Cause
Page 81,
6
81

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents