Mitsubishi Electric FX5 User Manual page 195

Melsec iq-f series
Hide thumbs Also See for FX5:
Table of Contents

Advertisement

Processing details
• Protocols registered with the engineering tool are executed. The communication CH specified by (n1) is used and the
protocol to be executed follows the control data of the device specified by (s) or later.
• Protocols are executed consecutively for the number of the protocols specified by (n2) (up to eight protocols) in one
instruction execution.
• The number of executed protocols is stored in the device specified by (s)+1.
• The execution of the S(P).CPRTCL instruction and whether it has been completed normally or with an error can be checked
with the completion device (d) or resulting of executed protocols device (d)+1.
 Completion device (d)
The completion device turns on in END processing of the scan performed upon completion of the S(P).CPRTCL
instruction and turns off in the next END processing.
 Completion status indication device (d)+1
The completion device turns on or off depending on the completion status of the S(P).CPRTCL instruction.
When completed normally
When completed with an error
Instruction execution timing
The following figure shows the S(P).CPRTCL instruction execution timing.
Sequence scan
0 to END process
S(P).CPRTCL instruction
Completion device (d)
Completion status
indication device
(d)+1
Serial communication
Protocol execution status
The current status of the protocol can be checked with the following devices.
Name
CH1
Protocol execution status
SD9150
The value corresponding to the current protocol execution status is stored in each of the devices above. However, when a
specific event has occurred, the status is changed to another status. Any of the values listed in the following table is stored in
each of the devices above.
■Protocol execution status
Stored value
Protocol execution status
0
Unexecuted
1
Waiting for transmission
2
Sending
3
Waiting for data reception
:
Unchanged from OFF.
:
Turns on in END processing of the scan performed upon completion of the
S(P).CPRTCL instruction and turns off in the next END processing. When the
processing is completed abnormally, the error code is stored in the result of
executed protocols (s).
0 to END process
Executing a protocol
CH2
SD9170
Description
The protocol has never been executed since the power supply turned on or the system reset. Once the
protocol has been executed, the status of the protocol does not return to unexecuted until the power
supply is turned on or the system is reset.
The status before starting to send a packet to the counterpart device. When the CPU module is
preparing or waiting to send a packet, the protocol is in this status.
A packet is being sent to the counterpart device.
The CPU module waits to receive data from the counterpart device.
0 to END process
Turns ON when completed
with an error
1 scan
CH3
SD9190
6 PREDEFINED PROTOCOL SUPPORT FUNCTION
0 to END process
CH4
SD9210
193
6.8 Programming
6

Advertisement

Table of Contents
loading

Table of Contents