--- title: "Read and Write Data" slug: "read-and-write-data" updated: 2024-01-30T14:09:44Z published: 2024-01-30T14:09:44Z canonical: "kb.dataparc.com/read-and-write-data" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.dataparc.com/llms.txt > Use this file to discover all available pages before exploring further. # Read and Write Data ### GD(tagnumber) Get data for input tag “tagnumber”. **Syntax**: *result* = *GD(tagnumber)* **Remarks**: GD returns the current value for the input tag in location “tagnumber”. **Example**: This example gets the current value for Input tag number 9. Result = **GD**(9) ### Tag(tagnumber, writevalue,*datetime*) Write data to output tag “tagnumber”. **Syntax:** *Tag(tagnumber, writevalue,optional datetime)* **Remarks:** This function writes the value “writevalue” as the current value of the output tag in location “tagnumber”. It defaults to writing that value with a timestamp equal to current time. An optional third parameter allows the user to set a specific timestamp to write out data, which should be a time equal to current time or in the past, not a future point. **Example:** This example sets the current value for the output tag in location 9 to 30.5. **Tag**(9, 30.5)