5 inserting more user pous, Inserting more user pous, 4plc functionality – Lenze E94AxPExxxx User Manual

Page 46

Advertising
background image

4

PLC functionality

4.2

Preparations for creating a PLC program

46

Lenze · 9400 Servo PLC· Reference manual · DMS 4.0 EN · 11/2013 · TD05/06

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

List of the system events

• Execution of a maximum of 1,000 instructions as a result of a system event is permissible.
• POUs (= program organisation unit) which are called by system events are not monitored

according to runtimes by a "watchdog" compared to tasks.

4.2.5

Inserting more user POUs

Four POUs have already been created in the POUs

Standard project "PLC_Application.pro"

( 40)

.

In order to insert more POUs, please select the menu command ProjectObjectInsert.
The New POU opens where you can define the type, name and language you want to use to program

the POU:

System event

The called POU starts, ...

PLC_AfterReset

after the PLC has been reset.

PLC_BeforeReset

before the PLC is reset.

PLC_DebugLoop

Not supported

PLC_FQSPState

when quick stop by trouble has been activated.

PLC_MessageState

when a message has been activated.

PLC_OnboardCANError

when a system bus error occurs (e.g. Bus-Off).

PLC_Start

when the PLC is started.

PLC_Stop

when the PLC is stopped.

PLC_TaskOverrun

when a task has overflown.

PLC_TripState

when trouble has been activated.

PLC_WarningState

when a warning has been activated.

Advertising