Faultuser generate fault statement, Fault, User generate fault statement – Lenze PMSS1000 Simple Servo User Manual

Page 57

Advertising
background image

Indexer-Programmer-Manual.pdf REV 1.3

Example:


EVENT Event1 IN_A1 RAISE ; switch event
JUMP

EventCodeProcess

ENDEVENT

EVENT Event2 IN_A1 RAISE ; switch event
JUMP

EventCodeProcess

ENDEVENT

EVENT Event1 ON
EVENT Event2 ON

{
User

code

}

EVENTS OFF

;all events are disabled


.
.
EVENTS ON

;Events Event1 and Event2 enabled again

FAULT User

generate

fault

Statement


Purpose

Allows user program set custom system fault. This is useful when custom program needs
to standard fault process for custom conditions like data supplied by interface out of
range etc. Custom fault numbers must be in region of 128 to 240 (decimal)


Syntax

FAULT FaultNumber Sets system fault.

Faultnumber – constant in range 128-240

Variables

are

not

allowed

in

this

statement.


Remarks

Custom fault will be processed as any regular fault. There will be a record in the fault log.

See Also

ON FAULT



Example:

FAULT 200

;Sets fault #200


V0=200
FAULT V0

;incorrect. Variables not allowed here

57

Advertising