| Dettagli del download |
|
AppendRecordToDb is a project designed to demonstrate how to use the RDb.AppendRecord method to add a new record into a data table. Tags named LongInt, String, and Word are defined within the System device. The values of these tags will be logged to the data table. The following tags are also defined: RecordTimeStamp, which contains the current time (the RSys.Now method), and BlockSamplingData, which is linked to a button in the visualization window (you can enable/disable data logging with this button). The Data1 data table contains three fields connected to the three tags mentioned above. The sampling method is set to Script-controlled (by RDb.AppendRecord procedure). The Time stamp source property is set to Tag (RecordTimeStamp) and Blocking tag is set to BlockSamplingData. The SaveRecord event script is defined via the Script Manager. This script sets the RecordTimeStamp tag to the current time and calls the RDb.AppendRecord method. To start the script, press the Save record button. |
|
|||||||||||||||||||||||||||||||||

Gli esempi presenti su questo sito sono stati liberamente inviati dagli utenti di automationforum.it, è stato espressamente specificato loro di inviare solo esempi FREE. Automationforum.it non si ritiene responsabile dell'eventuale presenza di esempi rilasciati sotto licenza commerciale, Automationforum.it invita tutti coloro che individuano esempi rilasciati sotto licenza commerciale presenti in questa raccolta a segnalarlo dall'apposito