User Manual
17
Fire & Security Products
Siemens Building Technologies
03.2003
4.2 Instruction list
CALL Executes another sequence. When the called sequence execution completes, the
control returns to the sequence that issued the CALL command. The first parameter is
the called sequence number. To the called sequence up to seven parameters can be
passed.
COM
Sends commands to subsystems. The first field of this instruction is the Subsystem
number to which the command has to be sent. Then you have to type the Command
number (see Chapter 11 for command codes). Each command can have up to 5 pa-
rameters and these are the next fields displayed. Each type of subsystem has its own
commands. Some of these commands use a parameter, and others do not - refer to
Chapter 11 to find out which commands require one or more parameters.
CSEQ Terminates the execution of the current sequence, and initiates the sequence named
in parameter 1. All sequences must end with either CSEQ or STOP.
DECP Decrements the point value of 1 unit. This instruction requires three parameters: the
first one is the subsystem number, the second is the point number and the third is the
treatment code (see Tab. 52 for the acceptable values).
ENDIF Ends an IF block. Whenever one of the instructions IFEQ, IFNE, IFGT, or IFLT is
used, ENDIF must also be used. Whenever one of the four IF tests test is false, the
program moves to the first instruction after ENDIF.
FOR This instruction used in conjunction with the NEXT instruction to execute n times the
portion of code between the FOR...NEXT. The FOR instruction accepts four parame-
ters. The first is the loop index. Three values are acceptable: -4, -3, -2, which let you
nest up to three FOR...NEXT loops in a single sequence. The second parameter is the
initial value of the loop index (range 0 - 65535). The third parameter is the loop index
final value (range 0 - 65535) and the fourth is the loop index step (range 0 - 65535).
Each FOR instruction must followed by a NEXT instruction.
IFEQ This instruction looks into a specified subsystem (parameter 1) and tests for equality
between a point (parameter 2) and a specified value (parameter 3). If the offset value
(parameter 4) is different from 0, then this value is added to the point (parameter 2)
and result is compared with the parameter 3. If it is equal to the value, the program will
process the next instruction. If it is not equal, the program will pass to the first instruc-
tion after ENDIF.
IFGT This instruction looks into a specified subsystem (parameter 1) and tests for greater
size between a point (parameter 2) and a specified value (parameter 3). If the offset
value (parameter 4) is different from 0, then this value is added to the point (parameter
2) and result is compared with the parameter 3. If it is greater than the value, the pro-
gram will process the next instruction. If it is not greater than the value, the program
will pass to the first instruction after ENDIF.
IFLT This instruction looks into a specified subsystem (parameter 1) and tests for lesser
size between a point (parameter 2) and a specified value (parameter 3). If the offset
value (parameter 4) is different from 0, then this value is added to the point (parameter
2) and result is compared with the parameter 3. If it is less than the value, the program
will process the next instruction. If it is not less than the value, the program will pass to
the first instruction after ENDIF.