User guide

2-38
IM 04L51B01-17EN
Mail Header (Recipient Address)
Sets the mail header including the recipient address.
Syntax
SMailHead,p1,p2,p3,p4
p1
Sender address (up to 64 characters,
ASCII)
p2
Recipient address 1 (up to 150
characters, ASCII)
p3
Recipient address 2 (up to 150
characters, ASCII)
P4
Character string to add to the subject (up
to 32 characters, ASCII)
Query
SMailHead?
Example Set the sender address to “recorder1@data.
com” and the recipient address to “pc1@data.
com.” Add “part1” to the subject.
SMailHead,’recorder1@data.com’,
’pc1@data.com’,,’part1’
SMailBasic
Common Section of the Mail Body
Sets the items that are common to the body of all mails.
Syntax
SMailBasic,p1,p2
p1
Header string (up to 128 characters, UTF-
8)
p2
Include source URL (Off, On)
Query
SMailBasic?
Example Set the header to “recorder1,” and include the
source URL.
SMailBasic,’recorder1’,On
SMail
Destination and Behavior for Each Mail
Type
Sets the destination and behavior for each mail type.
Alarm Notification
Syntax
SMail,p1,p2,p3,p4,p5,p6
p1
Setting type (Alarm)
p2
Recipient (Off, 1, 2, 1+2)
Off
Not send
1
Send to recipient 1
2
Send to recipient 1
1+2
Send to recipient 1 and 2
p3
Inclusion of instantaneous data (Off, On)
P4
Alarm action
On
Send mails when alarms occur
On+Off
Send mails when alarms occur
and when they are cleared
p5
Inclusion of tag number or channel
number in subject (Off, On)
Scheduled Transmission
Syntax
SMail,p1,p2,p3
p1
Setting type (Time)
p2
Recipient (Off, 1, 2, 1+2)
p3
Inclusion of instantaneous data (Off, On)
Report Notification
Syntax
SMail,p1,p2
p1
Setting type (Report)
p2
Recipient (Off, 1, 2, 1+2)
Media Alarm Notification
Syntax
SMail,p1,p2
p1
Setting type (Media)
p2
Recipient (Off, 1, 2, 1+2)
Power failure notification
Syntax
SMail,p1,p2
p1
Setting type (Power)
p2
Recipient (Off, 1, 2, 1+2)
System Error Notification
Syntax
SMail,p1,p2
p1
Setting type (System)
p2
Recipient (Off, 1, 2, 1+2)
Query
SMail[p1]?
Example Send alarm notifications to recipient 1 when
alarms occur and when they are cleared.
Include instantaneous data at the time of
transmission, and include the tag number or
channel number in the subject.
SMail,Alarm,1,On,On+Off,On
Description
The report function is an option (/MT).
SMailAlarm
Alarm Notification Mail Target Channels
Detects the alarm status of the specified channels and
sends alarm notifications.
Syntax
SMailAlarm,p1
p1
Channel string (up to 249 characters, up
to 50 channels)
Use channel number to specify the
channels. 4-digit numbers for I/O
channels. Numbers that start with “A”
for math channels (A015). Numbers
that start with “C” for communication
channels (C020). The maximum
number of characters per channel is 4.
Use periods to separate channel
numbers (see example).
To specify all channels from the first
channel to the last channel, delimit the
channels with a hyphen. An error will
occur if there are no valid channels in
the hyphen designated channels.
Query
SMailAlarm?
The channel string is output exactly as it is
specified.
Example Set the target channels to channels 0001 to
0021, 0101, A025, and C003.
SMailAlarm,’1-21.101.A25.C3’
SMailTime
Scheduled Transmission Times
Sets the scheduled transmission times.
Syntax
SMailTime,p1,p2,p3,p4
p1
Recipient (1 or 2)
p2
Reference time: Hours (HH) (00 to 23)
2.4 Setting Commands