beckhoff — 10.2.2 Issue a complex message

Samples ◦Keep the standard task-settings. ◦Create a new ST-program. ◦Open the menu Window -> Library Manager and add TcSystem.lib to the project. Now you have access to the ADSLOGEVENT function block. 2. Use the TcEventConfigurator [ } 20] to create a quit-requiring message with the SourceID 17001 and EventID 1 3. Add following code to the project: (*Variable-declaration*) VAR event : FB_SimpleAdsLogEvent; bEvent : BOOL; bQuitEvt : BOOL; END_VAR (*PLC Code*) Event( SourceID := 17001, EventID := 1, bSetEvent := bEvent, bQuit := bQuitEvt); 4. Start the PLC Program. 5. Start the TcEventbar ('TwinCAT/Eventlogger' directory). 6. By toggling bSetEvent1 the message will be triggered.

Rising edge starts the message, otherwise it will be reset. 7. Toggling bSetEvent won't reset the message cause it is a quit-requiring message. It must be deleted before bSetEvent can be reset and bQuitEvent must be set. Requirements 10.2.2 Issue a complex message Messages can be triggered in 2 ways: simple and complex. TcEventLogger 187 Version: 1.1 Language / IDE Source code TwinCAT PLC (Structured Text) https://infosys.beckhoff.com/content/1033/ TcEventLogger/Resources/12333057163/.zip