Ethernet Units Operation Manual

180
Overview of Mail Function Section 8-1
Version
IP address (decimal notation)
Subnet mask (decimal notation)
ID address conversion method
Optional Information The optional information that can be sent is shown in the following table. Dif-
ferent information can be selected with each mail trigger, and it is also possi-
ble to make multiple selections. (The selections are specified in the CPU Bus
Unit System Setup.) If not even one is selected, however, no e-mail will be
sent even when the trigger condition is met.
The Ethernet Unit processes error log and status data in ASCII so that it can
be easily read as e-mail.
Note Set user-created information in ASCII.
8-1-2 Mail Triggers
The user can select any of the following trigger conditions for e-mail. The des-
ignation is made in the CPU Bus Unit System Setup. The particular informa-
tion to be sent can be selected individually for each trigger condition.
8-1-3 Sending Mail
Triggered by Mail Send
Switch
To send mail only as required, use the Mail Send Switch (bit 3) from among
the Unit Control Switches in the CIO Area words allocated to the CPU Bus
Unit. When the Ethernet Unit detects that the Mail Send Switch has turned
Item Contents
User-created information User-created information is data set by the user, in ASCII, in the CPU Unit’s memory. A maxi-
mum of 1,024 bytes of data is sent from the user-created information address set in the CPU
Bus Unit Area. If there is a null code (00 Hex) in the data, however, only the data up to that
point will be sent.
The data set by the user is sent just as it is, and the code is not converted. The relevant words
are always read by the Ethernet Unit, so the contents of the mail can be changed by changing
the contents of the words.
Error log information The error log information includes the entire error log in RAM. A maximum of 64 records can
be saved. For details, refer to 10-3 Error Log.
Status information The following data is sent.
(1) Open/closed status of UDP sockets 1 to 8
(2) TCP status of TCP sockets 1 to 8
(3) Unit error information
(4) Counter information
Total number of receive packets
Total number of receive errors
Total number of send packets
Total number of send errors
Total number of send collisions
Name Trigger condition Contents
User mail When Mail Send
Switch turns ON.
Mail is sent when the Mail Send Switch set in the words allocated to the CPU Bus
Unit in the CIO Area turns from OFF to ON (leading edge).
Error mail When an error is
recorded in the error
log.
Mail is sent when an error occurs and is recorded in the error log.
Periodic mail Fixed time intervals Mail is sent each time the interval set in the CPU Bus Unit Area elapses. The inter-
val can be set to anything from 10 minutes to 10 days.