Controller -- Queue
From SysCAD Documentation
Navigation: Main Page -> Models -> Process Control Models
Contents |
Queue Profile Format
- The first row in the Queue Profile may contain headings made up with valid SysCAD Tags.
- If the TagsInHeading selection box is ticked, these valid SysCAD tags will be automatically loaded into SysCAD.
- If the TagsInHeading selection box is NOT ticked, the first row is ignored by SysCAD.
- For SysCAD Tags that includes engineering units, put tag in single quotes ' '. For example 'Feed.Qm_Rqd (t/h)'.
- If SysCAD finds a blank column or an invalid tag, all remaining tags are ignored.
- Queue Profiles do not support string tags.
- The columns in the profile should contain data that must be read.
- The maximum columns loaded into SysCAD profile model will be 230.
Example Queue Profile
| Feed_FC.Cfg.[0].Spt | 'COOLINGWATER.T_Rqd (C)' | 'FV102.Posn.Reqd (%)' |
|---|---|---|
| 200 | 20 | 100 |
| 200 | 25 | 90 |
| 100 | 46 | 95 |
| 200 | 36 | 100 |
| 200 | 75 | 90 |
How to use a Queue Profile
The Queue profile can operate in two ways:
- Manually press the Advance_Row button to move along the queue.
- Used in conjunction with another unit operation such as a General controller to program in the queue logic. User can set up logic so that once a condition is met, the queue advances to the next row.
Example
Queue Profile: Test.csv
FEED01.Qm_Rqd (t/h) 100 200 300
PGM file: QueueLogic.pgm
Bit Advance*
Double Value@
If Advance
SetTag("QC_1.Advance_Row", 1) ;This will advance the queue profile to the next in line.
Advance = 0
Endif
Value = GetTag("P_1.Qm (t/h)")
Data Sections
| Tag / Symbol | Input / Calc | Description |
|---|---|---|
| Common First Data Section | ||
| On | Tick Box | Enables or disables the Queue Profile Blocks. |
| TagsInHeading | Tick Box | Uses the first row of the Queue profile as output tags. If this is selected but the tags on the QO tab page is not filled in automatically, simply press the Reload or Reload_Restart button to force load the tag names. |
| SetAlways | Tick Box | |
| Folder | Display | The full path of the Queue profile. |
| File | Input | The file name of the Queue profile. Note: this file must be created first. File can be txt or csv format. |
| Status | Display | The status of the Queue profile with a brief summary of the file. |
| Edit | Button | Allow the user to edit the file. |
| Browse | Button | Use this button to Browse for the file. |
| Reload | Button | Reloads the Queue Profile. |
| Restart | Button | Restarts the Queue Profile from the first row. |
| Reload_Restart | Button | Reloads and Restarts the Queue Profile from first row. |
| ShowCnv | Tick box | If this is selected, the engineering units used will be shown with the variable value. |
| Check Tags | Button | SysCAD will perform a check on the validity of the tags used. |
| TagCount | Input | The number of columns being read from the queue profile, maximum is 230. |
| WrapAround | Tick Box | If this box is selected, then when the queue profile reaches the last entry in the file, it will start again from the beginning. If not, the value will remain being the last value in the file. |
| StartRow | Input | This is the starting row number. User can start the queue at any valid row. |
| CurRow | Input | This is the current row number the queue is at. |
| AdvanceRow | Button | Use this button to advance to the next row in the queue profile. |
| RowCount | Display | The total number of rows of data in the queue profile. |
| Tag.Item.[x] | If the TagCount is more than 1, then more fields will be available below. Note: if the user leaves a field blank, then the corresponding column of data from the profile will be skipped. | |
| Output_Tag | Input | This is the manipulated variable. Note: only white, changeable data fields can be used here. If the TagsInHeading tick box is selected, then the tags present in the first row of the profile will be used here. If the tag is not automatically filled in after the TagsInHeading is selected, press the Reload or Reload_Restart button on the first Tab page, this will force load the profile tags. |
| Value | Display | The value read from the queue profile. |
Adding this Model to a Project
Insert into Configuration file
Sort either by DLL or Group.
|
|
DLL: |
Control1.dll |
→ |
Units/Links |
→ |
Control: Queue Profile |
|
or |
Group: |
General |
→ |
Units/Links |
→ |
Control: Queue Profile |
See Project Configuration for more information on adding models to the configuration file.
Insert into Project
|
|
Insert Unit |
→ |
Control |
→ |
Queue Profile |
See Insert Unit for general information on inserting units.

