SMTP Diagnostics Object
Original instructions
Overview
The SMTP Diagnostics object presents the instances, attributes and services described below.
Class ID
404 (hex), 1028 (decimal)
Instance IDs
The SMTP Diagnostics object presents two instance values:
Attributes
SMTP Diagnostics object attributes are associated with each instance, as follows:
Instance ID = 0 (class attributes):
Attribute ID
Description
GET
SET
Data Type
01
Revision
X
UINT
02
Max Instance
X
UINT
X = supported
— = not supported
Instance ID = 1 to 256 (instance attributes):
Attribute ID
Description
Type
GET
SET
Value
01
SMTP Server IP Address
UDINT
X
02
Email Service Status
UDINT
X
1 = Idle
2 = Operationa
3 = Stoppedl
03
Link to SMTP Server Status
UDINT
X
1 = OK
2 = NOK
04
Number of Emails Sent
UDINT
X
05
Number of Response from the Server
UDINT
X
06
Number of Errors
UDINT
X
07
Last Error
UDINT
X
08
Last Email Header Used
Array of Octets
X
09
Time Elapsed from the Last Email
DINT
X
-1 = no email was sent (or statistics were cleared)
0A
Number of Time Server Was Not Reachable
UDINT
X
X = supported
— = not supported
Services
The SMTP Diagnostics object performs the following services upon the listed object types:
Service ID
Description
Class
Instance
Notes
hex
dec
01
01
Get_Attributes_All
X
X
To get all attributes in one message.
0E
14
Get_Attribute_Single
X
X
To get a single attribute as specified.
4C
76
Get_and_Clear
X
Clears data in the following attributes: 4, 5, 6, 7, 8, 9, 10
X = supported
— = not supported