SMS Function Block in ST

Source text: TcSmsSrvStTest.exe

Task

Simple function block for sending an SMS.

Description

The message and the telephone number to be called are provided via inputs.

The rising edge of the SEND input initiates transmission.

Calling the SMS Function Block

SMS Function Block in ST 1:

Implementation

The PlcSystem.lib library must be linked for the ADS block.

Declaration of the Variables

SMS Function Block in ST 2:

ST Code of the Function Block

SMS Function Block in ST 3: