• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Product
    • Design UI
    • Develop
    • Analyze and test
    • Deploy
    • Framework and toolbox
    • Compatibility
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - CDP Core
  • SendMessage
  • 4.11.3

SendMessage

The SendMessage is a block used to send messages to one or multiple targets using added MessageArgument outputs.

Usage

SendMessage supports adding multiple MessageArgument outputs and multiple Argument inputs.

When user-added input arguments exist they are added to the data partition of the message. Depending on the message Command the encoding of the arguments is as follows:

  • for any CM_TEXTCOMMAND the data is encoded as semicolon-separated argument name and value key-value pairs "Speed=10;Distance=15".
  • for any binary command the data is encoded as network byte-ordered raw data bytes in the current argument order.

Object API

TriggerOnFlags option defining when a message should be sent. Rising sends message on the rising edge of Trigger argument, Falling sends message on the falling edge of Trigger argument, High sends message when Trigger argument is high during cycle time and, Low sends message when Trigger argument is low during cycle time, Data sends message when any of the data Arguments added have changed, Init sends message once after application startup.
TriggerArgument that is used to trigger message sending according to set flags in TriggerOn property

Note: No messages will be delivered until all MessageArgument(s) are connected. While not connected triggers will arm the sender, causing a message to be sent when all MessageArgument have become connected.

See also MessageArgument, ReceiveMessage, and MessageProxy.

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

    © Copyright 2022 CDP Technologies. Privacy and cookie policy.

    Return to top