E_DbgDirection

This variable type can be used by buffer blocks or protocol blocks for configuration of debug outputs.

The debug output itself can be created e.g. by  ADSLOGSTR function.

At a ringbuffer e.g. the debug output via the variable can be done in the following way:

TYPE E_DbgDirection:
(
    eDbgDirection_OFF       := 0,(* Disabled (no debug oputput) *)
    eDbgDirection_IN    := 1,(* Enabled only for incomming data *)
    eDbgDirection_OUT       := 2,(* Enabled only for outgoing data *)
    eDbgDirection_ALL       := 3(* Enabled for incomming and outgoing data *)
);
END_TYPE

Value

Description

eDbgDirection_OFF

Debug output is deactivated

eDbgDirection_IN

Activates the debug output for incomming data

eDbgDirection_OUT

Activates the debug output for outgoing data

eDbgDirection_ALL

Activates the debug output for incomming and outgoing data

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v2.11.0 Build > 1537

PC or CX (x86, ARM)

TcUtilities.Lib