Visualisation via the "plc designer opc server, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 32

Advertising
background image

L-force | PLC Designer

Lenze specifications

30

DMS 3.2 EN 02/2011 TD29



Code in the PLC Designer:

MyTaskInfo (bReset := FALSE, bBeginCycle := TRUE, tCycleTime
:= 1000);

IF MyTaskInfo.tJitterLast > MyTaskInfo.tCycleTime THEN

LLS_AddLog( eSeverity:= LLS_Warning, eFacility:=

LLS_PLC_USER_LOG_SCOPE1, 'cycle time violation' );

END_IF

Logbook entry of the IPC:

00539 2009-03-29 08:55:48 cycle time violation

Soft PLC Warning

> PLC_USER_LOG_LEVEL1

Precondition:
• The "SysTaskInfo.lib" and "SysLibTime.lib" libraries have been integrated into the

PLC Designer project.

• The following code must be called cyclically in the task to be checked.
• The cycle time specified in the function block must correspond to the task interval

(task configuration --> task properties).

2.5

Visualisation via the "PLC Designer OPC Server"

By default the visualisation (VisiWinNET) under Windows XP uses the OPC tunnel to

visualise the items of the IPC. With communication via the "PLC Designer OPC Server"
the »PLC Designer« offers an individual path. To configure the "PLC Designer OPC

Server" start the file OPCConfig.exe in the directory:
Programme\Lenze\PlcDesigner\<Version>\OPC

Advertising