■If a cancel request is issued during receiving
The following figure shows the operation when the protocol execution status is "4: Receiving".
SP.ECPRTCL instruction
OFF
Completion device (d)
Completion status
OFF
indication device (d)+1
Protocol cancellation
(for the connection number
specified by (s1))
Send or receive data
External device
Precautions
• If an error occurs in the mth protocol while multiple protocols are being executed, the instruction does not execute the
"m+1"th protocol and after and is completed with an error.
• The connections for which the SP.ECPRTCL instruction can be executed are only those for which "Communication
protocol" is specified for the communication means.
• If a cancel request is received during execution of the mth protocol while multiple protocols are executed continuously,
following is stored in (s3).
Device
Item
(s3)+0
Resulting number of executed
protocols
(s3)+1
Completion status
(s3)+10
Collation match
Receive packet number 1
(s3)+m+8
Collation match
Receive packet number m-1
• If same instructions are executed for the same connection, the subsequent instruction is ignored and is not executed until
the preceding instruction is completed.
• The SP.ECPRTCL instruction itself does not open/close a connection and therefore the SP.SOCOPEN/SP.SOCCLOSE
instructions need to be used to open/close the connection.
Refer to the Page 84 SP.SOCOPEN and Page 88 SP.SOCCLOSE
Operation error
Error code
Description
(SD0/SD8067)
2820H
The device used exceeded the specified range.
2821H
The device used to store data are overlapping.
2822H
Device that cannot be specified is specified.
3405H
The input data was out of range.
1: Cancellation requested
t: Receive wait time or destination
existence confirmation time
Receiving data
The processing
stops.
Receive data
Description
The executed protocol number.
The error codes.
The receive packet number successful in collation match for the already executed protocol.
ON
OFF
ON
Completed with an error
OFF
2: Cancellation completed
The CPU module will
no longer execute protocols.
The CPU module stops the processing
including the verification and general data
processing, and forcibly terminates the
execution of the instruction.
6 PREDEFINED PROTOCOL SUPPORT FUNCTION
6.6 Predefined Protocol Support Function Instruction
6
69