Cicode: Difference between revisions
Appearance
Content deleted Content added
m Date the maintenance tags and general fixes |
Redirecting per Wikipedia:Articles for deletion/CitectSCADA |
||
Line 1: | Line 1: | ||
#REDIRECT [[Citect]] |
|||
<!-- Please do not remove or change this AfD message until the issue is settled --> |
|||
{{AfDM|page=CitectSCADA|date=2008 August 17|substed=yes}} |
|||
<!-- For administrator use only: {{oldafdfull|page=CitectSCADA|date=17 August 2008|result='''keep'''}} --> |
|||
{{Mergeto|Citect|date=August 2008}} |
|||
{{ infobox programming language |
|||
| name = Cicode |
|||
| logo = |
|||
| paradigm = |
|||
| year = |
|||
| designer = [[Citect]] |
|||
| developer = |
|||
| latest_release_version = 7.0.0 |
|||
| latest_release_date = August 2007 |
|||
| latest_test_version = |
|||
| latest_test_date = |
|||
| typing = |
|||
| implementations = |
|||
| dialects = |
|||
| influenced_by = |
|||
| influenced = |
|||
| operating_system = [[DOS]] [[Microsoft Windows|Windows]] |
|||
| license = |
|||
| website = http://www.citect.com/ |
|||
}} |
|||
'''Cicode''' is the programming language used by [[CitectSCADA]] software which contains a set of GUI which generate '''Cicode''' programs and has an interpreter for running the '''Cicode''' program. |
|||
The structure and syntax of '''Cicode''' is very similar to that of the [[Pascal programming language]], the main difference being that it does not include pointers and associated concepts. Citect provides a rich programming [[API]] that includes sophisticated programming constructs such as concurrent tasks and [[Semaphore (programming)|semaphores]]. |
|||
== Samples == |
|||
The function is used to log information to a file. |
|||
<CODE><PRE> |
|||
FUNCTION I0_Trace(STRING sPrompt) |
|||
INT hDev; |
|||
INT hTime; |
|||
STRING sText; |
|||
IF hTraceOn THEN |
|||
IF (StrLeft(sPrompt, StrLength(sMask)) = sMask) THEN |
|||
TraceMsg(sPrompt); |
|||
hTime = TimeCurrent(); |
|||
sText = TimeToStr(hTime, 2)+" "+TimeToStr(hTime, 1)+" "+sPrompt; |
|||
SemWait(hDebugSem, 10); |
|||
FileWriteLn(hDebugFile, sText); |
|||
SemSignal(hDebugSem); |
|||
END |
|||
END |
|||
END |
|||
</PRE></CODE> |
|||
[[Category:Procedural programming languages]] |
Latest revision as of 10:49, 3 September 2008
Redirect to: