Mitsubishi Electric FX5 User Manual page 199

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

Advertisement

Two words from the start device number are used for the device number of monitoring data and the number of monitor data.
The devices with the device numbers after the first two words are used for the monitor data area.
Monitoring data device No.
Among the data stored in the monitor data area, the number of the device in which the oldest data is stored. The monitor data
device number is initialized when the send/receive data monitoring starts.
The storage range is from the start of the monitor data area to (the start of the monitor data area + monitor data size -1).
• When monitoring continued (bit 0: OFF) is set for data area full stop specification
The start device numbers of the monitor data area are stored until the size of the data area where the data is stored and
set exceeds the size of the monitor data. When the monitor data area is overwritten because the number of monitor data
exceeds the monitor data size, the device in which the oldest data is stored is updated.
• When monitoring stop (bit 0: ON) is set for data area full stop specification
The start device number of the monitor data area is stored.
Number of monitor data
The number of monitor data stored in the monitor data area is stored. The number of monitor data is initialized when the send/
receive data monitoring starts.
The storage range is from 0 to the size of the monitor data.
The number of monitor data does not increase any more after the number of the monitor data reaches the size of the monitor
data. (Number of monitor data = Size of the monitor data)
Monitor data
The monitor data is stored in the following configuration in 1-word units.
b15
b14
b13
b12
b11
0
0
0
0
0
0
0
0
1
0
0
0
1
1
0
FE: Framing error, OVR: Overrun error, PE: Parity error
One word consists of the send/receive data (1 byte) for lower 8 bits and the data classification/signal monitor for upper 8 bits.
Upper high rank 4bit (b15 to b12)
Data type
0 (0000b): Receive data
1 (0001b): Send data
3 (0011b): Receive error
Precautions
When the monitor data areas overlap for each channel, the data of the smaller channel number is overwritten with the data of
the larger channel number because data are stored from the smaller channel number.
Caution
• 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.
• If same instructions are executed for the same channel, the subsequent instruction is ignored and is not executed until the
preceding instruction is completed.
• If the receive waiting time is set to 0: Infinite wait, the S(P).CPRTCL instruction is not completed until the data specified in
the protocol setting is received.
b10
b9
b8
b7
b6
0
0
0
Receiving data
0
0
0
Sending data
0
0
0
0
Upper low rank 4bit (b11 to b8)
Signal monitor
b11: 0
b5
b4
b3
b2
b1
FE
OVR
Lower 8bit (b7 to b0)
Send/receive data
6 PREDEFINED PROTOCOL SUPPORT FUNCTION
b0
Communication type
When data receiving
When data sending
PE
When sending error detection
6.8 Programming
6
197

Advertisement

Table of Contents
loading

Table of Contents