Crestron simpl plus language ref 사용자 설명서
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G
SIMPL+
®
z 329
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.
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
event
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.
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; // ok
}
PUSH digIn
{
TerminateEvent; // ok
}
RELEASE digIn
{
TerminateEvent; // ok
}
CHANGE digIn
{
TerminateEvent; // ok
}
FUNCTION MyFunc()
{
while (1)