
2nd edition, 27-10-2017 7000.05056, 2nd edition, 27-10-20177000.05056
Characteristics of the programming language
8
Tab. 2: FAULHABER command extension
REM Comment.
Placed at the beginning of a line and applies until the
end of the line.
REM Comment
IF THEN GOTO
IF THEN GOSUB
Conditional jump or branch into a sub-program. Used
in a line without ENDIF.
May not be used in the following constructs:
IF THEN
ELSE
ENDIF
GOSUB
RETURN
FOR TO
NEXT
IF z=1 THEN GOSUB Step1
IF THEN EXIT
FOR
IF THEN EXIT
EVT
Jump out of a FOR loop or an event routine. Used in a
line without ENDIF.
May not be used in the following constructs:
IF THEN
ELSE
ENDIF
GOSUB
RETURN
FOR a = 1 TO 5
IF x = 1 THEN EXIT FOR
NEXT a
IF THEN
EXIT GOSUB
Jump out of a sub-program. Used in a line without
ENDIF.
May not be used in the following constructs:
IF THEN
ELSE
ENDIF
GOSUB
RETURN
:Sub1
IF x = 1 THEN EXIT GOSUB
RETURN
Command Function Example
SETOBJ Write an object in the object dictionary.
Syntax: SETOBJ <Index>.<Subindex> = <variable or
value>
SETOBJ $6083.$00 = 500
GETOBJ Read an object in the object dictionary.
Syntax: <variable> = GETOBJ <Index>.<Subindex>
a = GETOBJ $6083.$00
DEF_EVT_VAR Defines a variable which, when the event occurs,
returns the value of the event status bit-mask.
DEF_EVT_VAR e
EN_EVT Activation of an event routine which is triggered by
the device state signalled by a change in the object
0x2324.01 (event handling).
Note: only one event routine can be active at a time
Syntax: EN_EVT <bit mask>,<event mark>
EN_EVT $ffffffff, EvHandler
DI_EVT Deactivation of all events for processing that is being
performed in parallel.
Syntax: DI_EVT
DI_EVT
RET_EVT Jump back from an event routine.
Syntax: RET_EVT
: EvHandler
RET_EVT
SAVE Permanent saving of one or more variables in the
EEPROM (comma-separated list).
Syntax: SAVE <variable1<,variable2,...>>
SAVE a, b, z
Command Function Example