Scheduled Events

From SysCAD Documentation
Jump to: navigation, search

Navigation: Main Page -> Models -> Control 2 Models


General Description

This model is used in Dynamic Simulation only. This unit is similar to the Downtime model and the Events model.

The Scheduled Events unit operation can be used to simulate periodic events in a plant model, such as Batch Addition, Reagent dosing, Batch Filtration, etc. The model allows a tag to be set to one of two values depending on whether the unit is active or inactive due to a scheduled event.

The Required Period of the Scheduled Event includes both the Active and Inactive periods.

The user may configure the unit to set the Output Tag continuously or only once when the scheduled event occurs.

The diagram below shows how the Scheduled Events model sets the value during the Active and Inactive periods and also what happens during the Offset period.

Scheduled Events1.png

Examples

1. Set the Output Tag once only Use this configuration to set a Batch process such as, trucks off loading ore to a stockpile. The Scheduled events unit can then have the truck capacity as the value to set Once when the Active value is set.

2. Set the output Tag continuously Use this configuration if you require a flow to have a noise component when it is On and then it will be Off during the inactive period.


Diagram

Scheduled Events.jpg

The diagram shows the default drawing of the Scheduled Events unit.

Inputs and Outputs

There are no connections to this unit.

Data Sections

The default sections and variable names are described in detail in the following tables. The default Scheduled Events access window consists of 2 sections. This number may increase or decrease, based on user configuration.

Summary of Data Sections

  1. ScheduledEvents tab - Contains general information relating to the unit.
  2. Info tab - Contains general settings for the unit and allows the user to include documentation about the unit and create Hyperlinks to external documents.

Scheduled Events Page

Unit Type: ScheduledEvents - The first tab page in the access window will have this name.

Tag / Symbol

Input / Calc

Description/Calculated Variables / Options

Common Data on First Tab Page

On Tick box Switch the unit on (ticked) or off (cleared).
SetTagAlways Tick box If not ticked, the model will only set the output tag for first iteration and when the value changes. Therefore if the user or another controller changes the same tag it will not be overwritten by this model until the next event occurs. If ticked the model will set the output tag every iteration.
IntegralPeriod Tick box This relates to the active period of the unit between scheduled events. If this box is ticked, then SysCAD may adjust the active period entered to suit the stepsize of the project. For example, if the step size is 1 hour, and the period given is not an exact number of hours, then SysCAD will adjust this number to make it an exact number of hours. If this box is left clear, then SysCAD will use the exact number entered. This may lead to some unevenness in the periods but the total amount of active time will be correct over a long period of time.
IntegralInactivePeriod Tick box This is the same as IntegralPeriod except it relates to the inactive period of the unit due to the scheduled event. If this box is ticked, then SysCAD may adjust the inactive period entered to suit the stepsize of the project. If this box is left clear, then SysCAD will use the exact number entered. This may lead to some unevenness in the periods but the total amount of inactive time will be correct over a long period of time.
Count Input The number of independent Scheduled Event blocks required. This may be any number from 0 up to 20. The user may also change this number at any time except when the model is running. The unit will always add new Scheduled Event blocks after existing ones, and it will delete them starting from the last block.
So, if you have 5 scheduled event blocks set up and you change this to 4, scheduled event block number 5 will be deleted.
 
Total Time Output The total time for the Schedule Events has been running. This is usually = the run time of the project.
Reset_All Button This will reset the results values and restart any offsets.
Each independent scheduled event block has the following layout. Additional tab pages will be added as required to fit more scheduled event blocks.
SE.[Scheduled Event Block number]
Requirements...
Description / Desc Input Optional scheduled event block description.
RequiredPeriod / RqdPeriod Input Required Period - The total time period from the start of one scheduled event to the start of the next scheduled event.
Offset Input The time period before the first scheduled event will occur. The offset can be larger than the Period to effectively allow the output remain active until the scheduled period. The output tag will be set at the start of the offset period. This time is reset if the reset button is pressed.
RqdInactivePeriod Input Required Inactive Period - The Inactive time period of the scheduled event, i.e. how long the equipment is inactive. This must be less than or equal to the Total Period. If it is equal to the period, the output will always be the inactive value (i.e. it is always inactive).
ActiveValueToSet / ActiveVal Input The value used for Output. If a TagToSet has a valid tag, then that tag will have this value when the equipment is active (i.e. not stopped) due to the scheduled event.
InactiveValueToSet / InactiveVal Input The value used for Output. If a TagToSet has a valid tag, then that tag will have this value when the equipment is inactive (i.e. stopped) due to the scheduled event.
TagToSet Input This input is optional. The tag to be set when the equipment is active or inactive (values as defined above) due to the scheduled event. The current value being set is shown in Output.
Results...
Period Output The total time period from the start of one scheduled event to the start of the next scheduled event. This may be different to the number entered if the IntegralPeriod option has been selected.
ActivePeriod Output This is equal to Period - InactivePeriod. It is the time the equipment is active due to the scheduled event.
InactivePeriod Output The Inactive time period of the scheduled event, i.e. how long the equipment is inactive. This may be slightly different to the number entered if the IntegralInactivePeriod option has been selected.
Active Output The current state of the equipment, expressed as a numerical value. This value could be referenced in PGMs for example to perform a series of tasks depending on the state of the equipment. If the equipment is active, then the value is 1. If the equipment is inactive due to the scheduled event then the value is 0.
OutputValue / Output Output The value that TagToSet is set to (if specified).
 
TtlInactiveTime Output The total amount of inactive time due to the scheduled event since the model was last reset.
TimeToNextInactivePeriod Output The amount of time until the next inactive period due to the scheduled event.
NextEvent Output The time and date of the next scheduled event.

Adding this Model to a Project

Insert into Configuration file

Sort either by DLL or Group.

 

DLL:

ControlDyn.dll

Units/Links

Control 2: Scheduled Events

or

Group:

General

Units/Links

Control 2: Scheduled Events

See Project Configuration for more information on adding models to the configuration file.


Insert into Project

 

Insert Unit

Control 2

Scheduled Events

See Insert Unit for general information on inserting units.