> For the complete documentation index, see [llms.txt](https://inspinia-technology.gitbook.io/skyplatform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inspinia-technology.gitbook.io/skyplatform/skyplatform-technical-user-documentation/plugins/functions/sample.md).

# SAMPLE

<figure><img src="https://lh7-us.googleusercontent.com/slidesz/AGV_vUc6dVmQXEq-YYKnfl_COKc5LHbH58TU2j3QMasLeGb84tZmMMXnJXmVyonU-AMDCGw0nW7EB1BqF34DhXubwxdnsxLLmGySZ16k3WVY-bUGClwYQUKCalNQYf0LL5a6ZZBjbJEgidwoLrW0evijmfDqNE9sN3c=s2048?key=npIi8zOHIy81LrwrrhJT2w" alt=""><figcaption></figcaption></figure>

**Power Up**: As demonstrated in the example, this block continuously outputs a "1" signal while the device is energized.

**Link**: In this example, the block is connected to the arm-disarm output on the Security page. When the alarm is activated, the "2" signal is converted into the string "Alarm was set."

**Trigger**: Regardless of the input received, this block is configured to output the constant string "Greetings."

**Value Trigger**: This block outputs the data present at its input (which can be variable) when a trigger signal is received from the port.

**Loop**: In this example, the block starts a loop upon receiving a "1" command at the start input. It counts the "3" signal at its input and sends this signal to the output 12 times at 1-second intervals.

<figure><img src="https://lh7-us.googleusercontent.com/slidesz/AGV_vUfAF5utGDccLuvUGbHFcoBcZkRM4mqsfItfvySvA2lkjd1hRqYl2L04eqLAx3nm-NRTdHvC4vCfcMKjTl5j3hG15QR7TgkgrDpSiQLqpYMeGC_m-WxmLALKDoAElrhyVtoi8uBggRCXuRTkJXa7WAEOruTa7CY=s2048?key=npIi8zOHIy81LrwrrhJT2w" alt=""><figcaption></figcaption></figure>

In this example, the **Notification** block is set up to alert the phone in case of a burglar alarm triggered from the security page. The **Prepare** input is used to activate the block with a "1" command. The **Title** and **Body** fields are used to specify the notification's title and message content.

When the "1" command is sent to the **Prepare** input, the block sends a notification to the phone via the mobile application, displaying the specified title and message.

<figure><img src="/files/MblkmLCY7kRBLWNYJC9J" alt=""><figcaption></figcaption></figure>

The **Counter** block in this example is configured to count up to 15 in increments of 3. After receiving the start command, when the input receives the number 5, the block will count as 8, 11, 14, 17, and 20 sequentially. These values will be output at the specified interval time frequency, and the counting process will be completed after reaching the final value.

<figure><img src="https://lh7-us.googleusercontent.com/slidesz/AGV_vUdH7E2kpOtACgy6R1VYBqjc3RETjx_E_lZLr1VqDZdTlbEDpn32-sKJqWMCUTNkxyGICEQFvkaz4t9APX_mCfL6TSwJKzcbZBOtJpvoQEK2pA6BUeBXAtM1lQfMM4SU2xrmdwLLPh6UQB1EwRWbBeAlxL_rlxI=s2048?key=npIi8zOHIy81LrwrrhJT2w" alt=""><figcaption></figcaption></figure>

The **Memory** block is designed to retain the last state of the digital output "1," ensuring that this output state is preserved and restored when the system powers back on.

<figure><img src="https://lh7-us.googleusercontent.com/slidesz/AGV_vUfH1-yTWlp9kJl3o28pzUVFbVYlLT0quooMEJZSFpUBbeHDrPIgFGja-ixjFza9XF4yDGIG-Iq-J4EGL3F0aJrMqT1wV2nUptPAZRJ3deKWQgM8hRORy1WfcTRaGAUwsJ5Ybhc2b9gOp4FwSDead2X8NxnKDWsv=s2048?key=npIi8zOHIy81LrwrrhJT2w" alt=""><figcaption></figcaption></figure>

**VRF Memory**: In the image, you can see examples of VRF control using a UI, control transfer to another device via TCP/IP with Modbus Slave, and the implementation of VRF Memory. These examples illustrate how the VRF Memory block is used in conjunction with other control methods to maintain system states and manage communication between devices.

<figure><img src="https://lh7-us.googleusercontent.com/slidesz/AGV_vUcePhf24Wt5C88tpeV3Pu_vcoEPheUw51tOJ8ow5-C-9KnJkZ6CorGA_-1QK2kBMlCcgfesigWAVWhZhXbRKDd2Pc_Irxgz0RWwM8nvFydrwpwmqmUqObkdhTy4FuEsWEL9Opw41AzsjhfI-_53rAy2K9inMSM=s2048?key=npIi8zOHIy81LrwrrhJT2w" alt=""><figcaption></figcaption></figure>

**Convert**: In the image above, you can see examples of converters that handle conversions to Mode, Hex, and Integer formats. These converters are used to transform data into the appropriate format needed for different operations or communications within the system.<br>

<figure><img src="/files/2eiLvlnx1oGzdQWxS41b" alt=""><figcaption></figcaption></figure>

**Scaling:** In the setup above, different samples of the Scaling object show how the scaling object works.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://inspinia-technology.gitbook.io/skyplatform/skyplatform-technical-user-documentation/plugins/functions/sample.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
