Event Runs
The Simulator features an Event Run feature, which allows you to create a list of S6F11 messages at fixed intervals that simulate report generation. An Event Run consists of one or more events, with each event containing a S6F11 message that will be sent to the simulator when the event fires.
Add Event Runs
Each simulator can have multiple event runs specified, each with a unique set of events. To access a simulators event runs, go to the Gateway Webpage Configure section and navigate to the SECS/GEM -> Simulator page, and in the More menu to the right of the simulator select the sim variables option. At the bottom of the SDL editor tool, there will be a link for Event Runs that will take you to the page where new event runs can be created.

On the Event Runs page, a new event run can be created by clicking the Create new Event Run link, where you can specify the name of the new event run.
Add Events
Once an event run has been made, new events can be added to it that will execute in order from when the event was started. An event run can have any number of events within it. Events must be from S6F11 messages that have been previously captured, which can be copied from the Messages table in the database. To add a new event, navigate to the Event Runs page and click on the More menu to the right of the event run that you wish to add events to. Select the events option to navigate to the Events page where you can click on the Create new Event link to create a new event in that event run. Each event has a few different properties that can be configured.
Property Name | Description |
---|
Event Name | The name of the event. |
Index | The index of the event. Note, each event must have a different index in the event run. |
Delay | The delay in seconds from the last event until this event fires. |
Send Data | A JSON formatted message that will be sent to the equipment connection when the event fires. The message must include header and body fields. |
Below is an example of a message for the Send Data property.
Code Block |
---|
language | js |
---|
title | JSON - A Sample Send Data Message for an Event Run |
---|
|
{
"header":{
"stream":6,
"function":11,
"reply":true,
"doc":"Event Report Send"
},
"body":[
{
"format":"U4",
"value":2,
"doc":"DATAID, Data ID"
},
{
"format":"U4",
"value":3,
"doc":"CEID, Collected Event ID"
},
[
[
{
"format":"U4",
"value":1,
"doc":"RPTID, Report ID"
},
[
{
"format":"A",
"value":"150408103706",
"doc":"V, Variable data"
},
{
"format":"A",
"value":"OFF-LINE/HOST OFF-LINE",
"doc":"V, Variable data"
}
]
]
]
]
} |
Using Event Runs
To use an event run, it needs to be started. To start an event run navigate to the Event Runs page, and in the More menu to the right of the event run you wish to start select the start option. If at any time you wish to cancel the event run, simply select the cancel option from the More menu.
Import Events
Instead of manually entering in events, multiple events can be imported from previously captured messages in the Messages table. Simply click on the Import Events link on the Events page. This will allow you to set up an import with various parameters.
Import Parameter | Description |
---|
Datasource | The datasource to pull events from. |
Equipment Name | The name of the equipment connection that the events are coming from. |
Equipment Table Prefix | The prefix of the specified equipment's database tables. |
Range Start | The starting date and time to import events from. |
Range End | The ending date and time to import events from. |
Once the import parameters have been set up, clicking Begin Import at the bottom will start the import process, which will pull any possible events based on the specified parameters.