Packet Monitoring Specifications
Item
Specification
Maximum data size of one packet data file
12 MB
Maximum number of packets that can be obtained
3,904 packets
Format of packet data file
TCPDump format (cap)
Time information
Recorded (unit: μs)
The elapsed time starting when packet monitoring be-
gins is recorded. (Packet monitoring can be started
when power turns ON, for an EtherCAT instruction, or
for a Sysmac Studio operation.)
Save location for packet data file
CPU Unit's system: 1 file
SD Memory Card inserted in CPU Unit: Multiple files
(up to capacity of SD Memory Card)
Sample Programming
This sample transfers EtherCAT communications packets to an SD Memory Card when an EtherCAT
slave error occurs. The file name is 'PacketFile.'
The processing procedure is as follows:
1
The system-defined variable
_EC_ErrSta
(EtherCAT Error) is monitored and processing is
started if an error occurs.
2
The EC_StopMon instruction is used to stop execution of packet monitoring for EtherCAT com-
munications.
3
The EC_SaveMon instruction is used to save EtherCAT communications packet data to a file in
the system of the CPU Unit.
4
The EC_CopyMon instruction is used to copy that file to the SD Memory Card.
5
The EC_StartMon instruction is used to restart execution of packet monitoring for EtherCAT
communications.
LD
Internal
Variables
Variable
Data type
Initial value
Comment
OperatingEnd
BOOL
False
Processing completed
Operating
BOOL
False
Execution condition
A
BOOL
False
B
BOOL
False
C
BOOL
False
RS_instance
RS
EC_StopMon_instance
EC_StopMon
EC_SaveMon_instance
EC_SaveMon
EC_CopyMon_instance
EC_CopyMon
EC_StartMon_instance
EC_StartMon
Appendices
A-10
NJ/NX-series CPU Unit Built-in EtherCAT Port User's Manual (W505)
Содержание NJ101-10 Series
Страница 10: ...Manual Structure 8 NJ NX series CPU Unit Built in EtherCAT Port User s Manual W505...
Страница 68: ...2 Part Names and Slave Settings 2 18 NJ NX series CPU Unit Built in EtherCAT Port User s Manual W505...
Страница 80: ...3 EtherCAT Communications 3 12 NJ NX series CPU Unit Built in EtherCAT Port User s Manual W505...
Страница 236: ...9 Troubleshooting 9 38 NJ NX series CPU Unit Built in EtherCAT Port User s Manual W505...
Страница 274: ...Appendices A 38 NJ NX series CPU Unit Built in EtherCAT Port User s Manual W505...
Страница 275: ...I Index I 1 NJ NX series CPU Unit Built in EtherCAT Port User s Manual W505 I...
Страница 279: ......