DeleteSMS (FB)¶
FUNCTION_BLOCK DeleteSMS EXTENDS CBM.ETrigTo
By use of this function block, the committed short message as received with the last mentioned function is deleted.
After starting this function block, it will try to allocate the modem.
When it is free a lock is set and therefore reserved for the currently function block.
After a reset (falling edge on “xExecute”) the lock is released.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xExecuteBOOLRising edge: Action startsFalling edge: Resets outputsIf a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone,xError) are present at the outputs for exactly one cycle.ETrigTo
udiTimeOutUDINTDefines the time (µs) after which an FB (e.g. requiring an external acknowledgement) aborts operation due to a timeout with error message.
ETrigTo
Output
xDoneBOOLTRUE: Action successfully completedETrigTo
xBusyBOOLTRUE: Function block activeETrigTo
xErrorBOOLTRUE: Error occurred, function block aborts actionFALSE: No errorETrigTo
Inout
ModemFBThe modem function block
smsThis structure includes all information, which are needed to delete the short message. After deleting, this structure will be empty.
Output
eErrorerror code
VisuResultThis output is needed for the visualization.