*1 The "Set by" column indicates the following.
User: The data must be set before executing the SP.ECPRTCL instruction.
System: The CPU module stores the execution result of the instruction.
This instruction executes the protocol registered using the engineering tool. Using the connection specified by (s1), the
instruction executes the protocol in accordance with the control data stored in the device specified by (s3) and later. The
instruction continuously executes as many protocols as specified by (s2) (a maximum of 8 protocols) at one time.
The number of executed protocols is stored in the device specified by (s3)+0.
The completion of the SP.ECPRTCL instruction can be checked using the completion devices (d)+0 and (d)+1.
• Completion device (d)+0: Turns ON during the END processing for the scan in which the SP.ECPRTCL instruction is
completed, and turns OFF during the next END processing.
• Completion device (d)+1: Turns ON or OFF depending on the status when the SP.ECPRTCL instruction is completed.
When completed normally
When completed with an error
• The following figure shows the SP.ECPRTCL instruction execution timing.
Completion device (d)+0
Completion device (d)+1
• Protocol execution can be canceled by setting a protocol cancel request. The protocol cancel request is specified in the
predefined protocol support function execution status check area (SD10740 to SD10899).
(for the connection number
specified by (s1))
CPU module operation
6 PREDEFINED PROTOCOL SUPPORT FUNCTION
6.6 Predefined Protocol Support Function Instruction
The device does not change (remains OFF).
The device turns ON during the END processing for the scan in which the SP.ECPRTCL instruction is completed, and
turns OFF during the next END processing.
END processing END processing END processing
Execute SP.ECPRTCL instruction
1: Cancellation requested
Cancelling the protocol
being executed in the
connection specified by
2: Cancellation completed