Heisenware Docs
Go to websiteGet a demo
  • 👋Welcome
  • Getting started
  • Release Notes
    • v84 - Get in the flow
    • v83 - Beauty treatment
    • v82 — Fully distributed
    • v81 — Removing old cruft
    • v80 — Chicks on fire
    • v79 — Nothing is forever
    • v78 — Keep moving
    • v77 — More intelligence
    • v76 — Well cooked
  • Build & Deploy Apps
    • Overview
    • Flow Builder
      • Nodes (Functions)
        • Inputs
        • Trigger
        • Output
      • Flows
      • Function Extensions
        • Modifier
        • Filter
        • Error handler
        • Memorizer
      • Objects & Instances
      • Utilities
        • Basic Functions
        • PDF functions
        • Circular buffer
        • Timer
        • Counter
    • Integrations
      • Protocol Connectors
        • GraphQL
        • HTTP/REST
        • MQTT
        • OPC UA
          • Heidenhain PLCs with OPC UA
        • RS-232/485
        • Siemens S7
      • Data Connectors
        • File
        • Relational Database
        • Time Series Database (WIP)
      • API Connectors
        • OGC SensorThings API
        • Operating System
        • Zebra RFID IoT Connector
      • Agent / (Edge Connector)
      • Calling Custom Code
    • UI Builder
      • Input Widgets
        • Form
        • File Upload
        • Photo
        • Signature
        • Barcode / QR-Code (WIP)
        • Document Scan (WIP)
      • Display Widgets
        • Chart
        • Chat
        • Circular Gauge
        • Data Grid
        • Linear Gauge
        • Map
        • Media View
        • Progress Bar
        • Sparkline
        • Status Lamp
        • Toast
        • Value Box
        • Kanban Board
        • Data Tiles
        • Pie Chart
        • Sankey
      • Buttons
      • Text Box
      • Images
      • Icons
    • Communication Interfaces
      • Email Notifications
      • OPC UA Server
    • Data & File Storage
      • Internal InfluxDB
      • Internal PostgreSQL
      • File Server
    • App Appearance
      • Pages
      • In-App Navigation
      • Screens & Devices
      • Theming
    • Simulation & Testing
      • Simulating Events
      • Simulating Data
    • PDF Templates
    • RAG-based Chatbot
    • Deployment
  • Manage Apps
    • Overview
    • Manage Apps
      • General Settings
      • Users and Access
      • Distribution & Versioning
    • Manage Integrations
    • Manage Account
      • Account Structure
      • Members
      • Workspaces
  • TUTORIALS
    • Build Your First Heisenware App
  • Connect Heidenhain CNC with OPC UA Support
  • Related links
    • Website
    • Privacy policy
    • Imprint
Powered by GitBook
On this page
  • Creating a counter
  • Deleting a counter
  • Counter functions
  • Incrementing a counter
  • Decrementing a counter
  • Resetting a counter
  • Getting the count
  1. Build & Deploy Apps
  2. Flow Builder
  3. Utilities

Counter

Last updated 10 months ago

The counter counts up or down from zero or a preset number every time the corresponding functions are triggered. A counter can also count into the negative.

To quickly start with counters:

  1. Find the Functions panel on the left-hand side of the screen.

  2. Expand Utilities and then Counter.

  3. Create a counter instance with the function.

  4. Expand the instance that appeared in the panel and get started with using the timer.

Use the and functions to manage the existing timers. Existing timers can be seen in the functions panel on the left under Timer. Yellow ones are not instantiated and green ones are ready for use.

Creating a counter

To create a counter:

  1. Insert a counter name in the yellow field.

  2. Optionally insert a number for the initial state of the counter. (Only works if the counter is not yet instantiated.)

  3. Click the trigger field to create an instance of the counter. You should see the counter in the functions panel go from yellow to green.

Deleting a counter

To delete a counter:

  1. Insert the name of the existing counter you want to delete in the yellow field.

  2. Click the trigger field.

The instance in the functions panel will turn yellow again, until the yellow field of the create function is cleared, or the create function is deleted from the board.

Counter functions

To utilize counters, you can find functions tied to each instance when you expand the instance.

Incrementing a counter

Triggering the increment function increases the counter by 1.

Decrementing a counter

Triggering the decrement function decreases the counter by 1.

Resetting a counter

With reset you can set the counter to 0 or a new specified state. The input field has initial greyed out in it, because in the future reset should reset the function to the initial state. As such, please always enter a number for now.

  1. Insert or link a value in the input field.

  2. Trigger the function.

Getting the count

The getCount function returns the current count of the counter.

create
create
delete
Creating a counter with initial state of 55
Deleting a counter instance
Location of counter instances
Incrementing the counter
Decrementing the counter
Setting a new value for the counter
Getting the counter state