beckhoff TS6420 — 8.1 Quick Start

Samples At first insert a R_TRIG function block to start your program with a rising edge. After that create a state machine for the call of your database function blocks, like it is shown in the picture below. Now declare all other variables that you need. Especially the structure of the table. You can find a description how to do this for Microsoft Compact SQL in the Information System [ } 40] : An AutoID is generated in the “ID” column. The value in this column is always increased by 1. The “Timestamp” column stores the time at which the data record was saved. And the name of the variable is stored in the third column. Under “Value” you find the values of the variables.

You can take the remaining variables from the next picture. TS6420 101 Version: 1.2