![Mitsubishi Electric MELSEC iQ-F FX5 Скачать руководство пользователя страница 840](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114840.webp)
838
15 EXTERNAL DEVICE COMMUNICATION INSTRUCTION
15.4 Predefined Protocol Support Function Instruction
*1 User: Data to be set before the execution of the instruction. System: The CPU module stores the execution result of the instruction.
Processing details
This instruction executes the protocol registered using the engineering tool. Using CH specified by (n1), the instruction
executes the protocol in accordance with the control data stored in the device specified by (s) and later. The instruction
continuously executes as many protocols as specified by (n2) (a maximum of 8 protocols) at one time.
The number of executed protocols is stored in the device specified by (s)+1.
The completion of the S(P).CPRTCL 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 S(P).CPRTCL 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 S(P).CPRTCL instruction is completed.
For details, refer to
MELSEC iQ-F FX5 User's Manual (Serial 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 communication CH for which the S(P).CPRTCL instruction can be executed are only those for which "Predefined
protocol support function" is specified for the communication protocol.
• If a cancel request is received during execution of the mth protocol while multiple protocols are executed continuously, the
following is stored in (s).
• If same instructions are executed for the same CH, the subsequent instruction is ignored and is not executed until the
preceding instruction is completed.
For other precautions, refer to
MELSEC iQ-F FX5 User's Manual (Serial Communication).
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 S(P).CPRTCL instruction is completed, and
turns OFF during the next END processing.
Device
Item
Description
(s)+0
Completion status
The error codes.
(s)+1
Resulting number of executed
protocols
The executed protocol number.
(s)+10
Collation match
Receive packet number 1
The receive packet number successful in collation match for the already executed protocol.
(s)+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
S(P).CPRTCL instruction
Execute S(P).CPRTCL instruction
OFF
Completion device (d)+1
When normally
completed
1 scan
Executing a
protocol(s)
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......