Compiler Error 1604; Compiler Error 1605 - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Compiler Error 1604

construct error: 'EVENT' already has a body
The EVENT statement can only be defined once per SIMPL+ module. A previously
defined definition of EVENT was already encountered by the compiler.
The following are examples of this error:
EVENT
// ok
{
}
EVENT
// error – EVENT is already defined
{
}

Compiler Error 1605

construct error: Function can only be contained within an
The function, TerminateEvent, can only be used within a PUSH, CHANGE,
RELEASE or EVENT statement. The compiler encountered this function outside of
one of these event functions.
The following are examples of this error:
DIGITAL_INPUT digIn;
EVENT
{
TerminateEvent;
}
PUSH digIn
{
TerminateEvent;
}
RELEASE digIn
{
TerminateEvent;
}
CHANGE digIn
{
TerminateEvent;
}
FUNCTION MyFunc()
{
while (1)
event
// ok
// ok
// ok
// ok
Software
®
SIMPL+
329

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIMPL+ and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF