Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
5.3 Serial Communication
5.3.15 CPRTCL instruction
5-115
G_CPRTCL
5
MODULE DEDICATED
INSTRUCTION
G_CPRTCL
Control Data
*1 : When executing multiple protocols, if an error occurs to the nth protocol, the protocols after the nth
protocol are not executed.
*2 : For details of the error code at the error completion, refer to Q Corresponding Serial Communication
Module User’s Manual (Basic) or MELSEC-L Serial Communication Module User's Manual (Basic).
Device Item Setting data Setting range Setting side
[0]
Completion status
The instruction completion status is stored.
When executing multiple protocols, the execution
result of the protocol executed at last is stored.*1
0 : Normal completion
Other than 0 :
Error completion (error code)
*2
System
[1]
Number of executions
The number of executions is stored.
Protocols with errors are included in the count.
When settings of the setting data and control data
contain an error, "0" is stored.
1 to 8
System
[2]
Execution protocol
number designation
Set the first protocol number or functional protocol
number to be executed.
1 to 128,
201 to 207
User
to
:
[9]
Set the 8th protocol number or functional protocol
number to be executed.
[10]
Verification match
receive packet number
When the communication type of the first protocol
executed is "Receive only" or "Send & receive", the
matched receive packet number is stored.
"0" is stored with the following condition.
• When the communication type is "Send only"
• If the error occurs to the first protocol executed
• When the functional protocol is executed
0, 1 to 16 System
to
:
[17]
When the communication type of the 8th protocol
executed is "Receive only" or "Send & receive", the
matched receive packet number is stored.
"0" is stored with the following condition.
• When the communication type is "Send only"
• If the error occurs to the 8th protocol executed
• When the number of the executed protocols is
less than 8
• When the functional protocol is executed
s
s
s
s
s
s