Beruflich Dokumente
Kultur Dokumente
P-CIM Email
Table of Contents
Overview ....................................................................................................................................................... 3
System Requirements................................................................................................................................... 3
Using P-CIM Email in Interactive Mode.................................................................................................... 4
Runtime Usage in Interactive Mode ........................................................................................................... 4
Using P-CIM Email in Background Mode ................................................................................................. 5
Examples ....................................................................................................................................................... 6
AutoAction Example .................................................................................................................................. 6
Advanced Alarm Handler Example............................................................................................................ 7
Sending Email using P-CIM Alarm Pager Notification ............................................................................ 7
Send Rate and Dispatch Cycles .................................................................................................................. 8
System Requirements................................................................................................................................... 8
Setup Instructions......................................................................................................................................... 8
Enabling P-CIM Database Blocks .............................................................................................................. 9
Configuring the ODBC Data Source .......................................................................................................... 9
Configure the Email Parameters............................................................................................................... 10
Scheduling ................................................................................................................................................ 11
Message Format ....................................................................................................................................... 12
Run Time Usage.......................................................................................................................................... 13
Accessing the Dispatcher Configurator ................................................................................................. 13
2 of 13
Overview
With P-CIM Email you can dispatch alarm and system event messages to any email recipient or
to a group of email recipients. P-CIM Email can also be incorporated into the runtime (Operator
Workstation) display to allow a user to manually generate and dispatch email messages.
P-CIM Email integrates with a resident MAPI mail server to enable transmission.
P-CIM Email can operate in two modes:
Interactive
Background
In Interactive mode, the application displays the Email Sender form at the users station. The
user manually configures the content of the email message and sends it.
In Background mode, the parameters and layout of the email message are configured as an
Action command during the application development using a command-line syntax. This Action
command can then be associated with an:
Action Button
AutoAction
Alarm Class
When the Action is triggered, P-CIM Email composes and dispatches the email message
automatically.
System Requirements
To use P-CIM for Windows Email your system must include:
Any 32 Bit Windows OS
P-CIM for Windows or P-CIM for the Web Rev. 6.54+
A resident MAPI mail exchange service
Internet Mail access
For P-CIM Revision 6.54 - SEK enabled for Pager and Email transmission
For P-CIM Revision 6.60+ - SEK enabled for Email transmission (Pager not necessary)
Important Check that the resident mail exchange service is running before invoking P-CIM
Email.
3 of 13
icon.
4 of 13
Description
Comments
Address
Subject
Subject text
Body-text
Profile name
-R
-D
Optional
-L
-H
-#
Range of 1-9.
5 of 13
Examples
Email user1@afcon-inc PLC failure L
When executed, email is sent to user1 with the Subject PLC failure and no message text, labeled
for Low importance. Uses default mail profile.
Email Shift Managers; Plant Foremen New Holiday Schedule Labor
Day night workers outlook R 3
When executed, email is sent to all users in the Shift Managers group and in the Plant Foremen
group. The message contains the Subject New Holiday Schedule and a text message that
contains Labor Day night workers (remainder of message). This message is labeled for Normal
importance (by default) and for Read notification. It specifies the profile outlook. It is configured
for 3 retries if not successful.
Email CEO@vacation.com; All Users Engine room is on fire R
D H 9
When executed, email is sent to CEO@vacation.com and to all users in the All Users group. This
message contains no Subject and a text message that contains the specified text. It is labeled for
Delivery and Read notification, High importance, and 9 (maximum) retries. Uses default profile.
AutoAction Example
To email to all plant foremen that the trend reports for the month are to be submitted. A possible
AutoAction script may be:
Action Name: TrendReportEmail
Trigger:
|!@AtDate(XXXX15)
Mode:
Up
Action:
Email Plant Foremen Trend Report Today is
?|!<<$Date>>?. Trend Reports are due! outlook D 3
6 of 13
The node number of the P-CIM client station originating the alarm.
Date
The date of the alarm formatted using the Windows regional setting.
Time
The time of the alarm formatted using the Windows regional setting.
Tag-Name
Alarm-Type
Tag-Value EGU
The value of the block causing the alarm followed by the EGU notation as
specified in the block.
Tag-Description
7 of 13
Each message is buffered in an ODBC database table. From this database, the alarm data is
retrieved and formatted and subsequently dispatched as email.
The P-CIM Email Dispatcher-Configurator is a utility for configuring recipient and message
parameters, formatting the alarm data, and for scheduling the time intervals for dispatch: Once
the message, format, and schedules are configured and the database block is enabled for
dispatch by enabling one or both of the Pager options at every Send Rate period, the P-CIM
Email Dispatcher retrieves the alarm data, formats the email message, and sends it to the target
recipient(s). No further user input is required.
System Requirements
In addition to the components listed above (page 3), the host computer must also be equipped
with one of the following ODBC compatible database systems:
MS Access
SQL Server
Setup Instructions
There are three steps to setting up your P-CIM system for Alarm Pager Notification via email:
1. Properly enable the P-CIM database blocks.
2. Configure the ODBC Data Source.
8 of 13
3. Configure the email parameters for dispatch (i.e., Send Rate, recipients, scheduling,
message format, etc.).
This tells P-CIM to send the alarm data to the ODBC buffer.
2. In User DSN, choose Add. The Create New Data Source dialog box appears.
3. Select the desired driver (for MS Access, select Microsoft Access Driver [*.mdb]; for SQL
select SQL Server, etc.). Click Finish.
4. In the Setup dialog box choose Create.
5. Specify a name and path for the data source. Click OK.
The new data source appears in the ODBC32 main window.
Email Sender and Dispatcher
9 of 13
Note The Dispatcher Configurator appears only at the first use. After that, the Email
Dispatcher window appears (see Run Time Usage, page 13). To invoke the Dispatcher
Configurator from the Dispatcher window, choose File > Configuration
1. Begin at the Preferences tab.
2. Select the ODBC Data Source that you created earlier (see above, page 9) from the
drop-down list.
3. Enter a value for Send Rate (see page 8) in seconds. (Range: 1-999 seconds).
4. Enter a value for maximum retries (1-9).
5. Proceed to the Scheduler tab.
10 of 13
Scheduling
By default all recipients receive email at all times. Use the Scheduler to designate time periods for
withholding transmission for each recipient.
To schedule a recipient:
1. Select the desired recipient from the list.
2. Enable the weekdays that are to be scheduled (choose Mute All to enable scheduling i.e. withholding - for all times).
3. Set the time periods for non-transmission (up to two time periods per weekday). Use 24hour format.
4. Repeat this procedure for all recipients that are to be scheduled.
Proceed to the Message Format tab.
11 of 13
Message Format
You can customize the message format for each recipient. To do this:
1. Select the recipient.
2. There are seven possible message fields as described above (page 7).
Place those that you wish to appear in the message in the Message Fields window. Place
the remainder in the Available Fields window.
Use the Add and Remove buttons to move the fields between windows.
3. The included fields appear in the Message Sample window. You can rearrange the order
by selecting the desired field in the Message Fields window and repositioning it using the
Move Right and Move Left buttons.
To restore the format to the default layout, choose Reset.
4. Choose the options for level of Importance, Profile, Read/Delivery receipt request.
5. Repeat steps 1-4 for all the recipients for whom you wish a customized format.
6. Click on Save. All of the settings configured in this session are stored in an INI file.
7. Click on Close to close the Dispatcher - Configurator.
12 of 13
13 of 13