![background image](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114757.webp)
10 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
10.3 Predefined Protocol Support Function Instruction
755
10
Processing details
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.
For details, refer to
MELSEC iQ-F FX5 User's Manual (Ethernet Communication).
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, the
following is stored in (s3).
• 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 738 SP.SOCOPEN and Page 741 SP.SOCCLOSE
Status
Description
When completed normally
The device does not change (remains OFF).
When completed with an error
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.
Device
Item
Description
(s3)+0
Resulting number of executed
protocols
The executed protocol number.
(s3)+1
Completion status
The error codes.
(s3)+10
Collation match
Receive packet number 1
The receive packet number successful in collation match for the already executed protocol.
(s3)+m+8
Collation match
Receive packet number m-1
Program
END processing END processing END processing
When failed
OFF
ON
ON
Completion device (d)+0
SP.ECPRTCL instruction
Execute SP.ECPRTCL instruction
OFF
Completion device (d)+1
When normally
completed
1 scan
Executing a
protocol(s)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......