# 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="https://2866306475-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsOJKIPVBwStiyHDRNL5F%2Fuploads%2FLIXFuyVJue0p0xAcIfog%2Fimage.png?alt=media&#x26;token=3479c7d7-8b14-4ac1-9211-85cac3eaf81f" 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.\


<figure><img src="https://2866306475-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsOJKIPVBwStiyHDRNL5F%2Fuploads%2F5HLCJLoi6LKfk6vm4qDg%2Fimage.png?alt=media&#x26;token=1d1ed756-da82-428c-82c6-17bd24300db2" alt=""><figcaption></figcaption></figure>

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