■Monitor start
When 0001H is set for send/receive data monitoring function setting, the device number of monitoring data and the number of
monitor data are initialized and monitoring is started. When monitoring is started, monitoring (0002H) is written to send/
receive data monitoring function setting.
■Monitoring
After monitoring is started, data is stored in order of receive data, send data, and receive error starting from the monitor data
area. The storage timing of the data is as follows.
• Receive data: When data receiving
• Send data: When data sending
• Receive error data: When sending error detection
The following shows the operations of when the size of the monitored data exceeds the size of the monitor data area.
• When monitoring continued (bit 0: OFF) is set for data area full stop specification
The old data is overwritten with the new data and the monitoring continues.
• When monitoring stop (bit 0: 0N) is set for data area full stop specification
Monitoring stops and monitoring stop (1002H) is written to send/receive data monitoring function settings.
■Monitor stop
Monitoring is stopped by one of the following methods.
• Monitoring is stopped when 0000H is set for send/receive data monitoring function setting.
• When monitoring stop (bit 0: ON) is set for Data area full stop specification
Monitoring is stopped when the data is stored for the size of the monitor data area. At this time, monitoring stop (1002H) is
written for send/receive data monitoring function setting.
• When 1-packet stop specified (bit 1: ON) is set for 1-packet stop specification
Monitoring is stopped when the sending of one packet send data or the receiving of one packet receive data is completed.
If the size of one packet exceeds the size of the monitor data area, monitoring is stopped when the data is stored for the
size of the monitor data area. At this time, monitoring stop (1002H) is written to send/receive data monitoring function
setting. The type of packets for which monitoring starts or stops differs depending on the communication type of protocols.
Communication type
Send Only
Receive Only
Send & Receive
*1 If the size of one packet exceeds the size of the monitor data area, monitoring stops when the data for size of the monitor data area is
stored.
■Monitor data
The data stored in the monitor data area is as follows.
Ex.
Monitoring data device specification
Monitoring data start device No. specification
Monitoring data size specification
Device
Data
D0
0032H
D1
0064H
D2
1000H
D3
1001H
D4
1002H
D99
1003H
D100
1004H
D101
1005H
6 PREDEFINED PROTOCOL SUPPORT FUNCTION
196
6.8 Programming
Stop requirement
Monitoring stops when one send packet is monitored.
Monitoring stops when one receive packet is monitored.
Monitoring stops when one send packet and one receive packet are monitored.
Description
Program
Monitor data device No.
Number of the device in which the oldest data is stored.
Number of monitor data
Number of monitor data stored in the monitor data area
Monitor data 1
Monitor data area
Monitor data 2
Monitor data 3
Monitor data 98
Monitor data 99
Monitor data 100
: D device (0)
: 0
: 100
*1
*1
*1
Explanation of data
The oldest data is D50. (0032H=50)
Number of monitor data is 100
(0064H=100)
Send data/00H
Send data/01H
Send data/02H
Send data/03H
Send data/04H
Send data/05H