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
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?