Difference between revisions of "SMS"

From IPLOG
Jump to: navigation, search
Line 73: Line 73:
 
Closing the bus0_001_re1 relay provided the SMS text is ON and has been received from Phone_Number.
 
Closing the bus0_001_re1 relay provided the SMS text is ON and has been received from Phone_Number.
  
[[File:SMS_RX.png]]  
+
[[File:SMS_RX_Example.png]]  
  
 
'''SMS_TX'''
 
'''SMS_TX'''
Line 79: Line 79:
 
Closing the tamper sends an SMS in the form "Door open" to the phone number Phone_Number.
 
Closing the tamper sends an SMS in the form "Door open" to the phone number Phone_Number.
  
[[File:SMS_TX.png]]  
+
[[File:SMS_TX_Example.png]]  
  
 
'''More examples'''
 
'''More examples'''
  
 
[[Libraries for IEC 61131-3|Back to Libraries]]
 
[[Libraries for IEC 61131-3|Back to Libraries]]

Revision as of 10:29, 15 April 2020

Description:

SMS_TX/SMS_RX blocks are used for communication between the program and the user through the GSM network. It use SMS messages to transmit and receive information.

SMS_RX

Receive SMS messages.

SMS RX.png

Asynchronous interface
out VALID bool indicates success operation and valid output
out FROM string source phone number
out TEXT string SMS content


SMS_Tx

Sends SMS messages.

SMS TX.png


Asynchronous interface
in SEND bool r_edge rising edge starts new operation
in NUMBER string destination phone number
in TEXT string SMS content


Block behavior:

SMS_RX - If a new incoming SMS is detected, a short pulse appears on the VALID output, the FROM and TEXT outputs are filled according to the SMS content.

SMS_TX - If a rising edge is detected at the SEND input, an SMS message is sent to the phone number from NUMBER input and the text contains the text from the TEXT input.


Examples

SMS_RX

Closing the bus0_001_re1 relay provided the SMS text is ON and has been received from Phone_Number.

SMS RX Example.png

SMS_TX

Closing the tamper sends an SMS in the form "Door open" to the phone number Phone_Number.

SMS TX Example.png

More examples

Back to Libraries