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:
- At the value eDbgDirection_IN or eDbgDirection_ALL the debug outbut is done if a new value is added into the buffer;
- At the value eDbgDirection_OUT or eDbgDirection_ALL the debug output is done if a value is deleted from the buffer;
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 |