Function Block For Sending SMS for CS1 and CJ1

Modified on Mon, 6 Oct, 2025 at 9:19 AM

Introduction
Function Block for sending SMS via the serial port of integrated PLC CS1 and CJ1 Series.
 
The PLC's serial port must already be cleared of protocol. The modem must be configured to speeds of 9600, no parity and 8 data bits. The local echo of the modem must be disabled with the command ATE0.
The FB takes the phone number from the DM, and sets it as a sequence of ASCII codes and the string of SMS. For both there must be a byte = 0 after the last character.
Within the FB you have to specify the DM which you have taken the phone number from as a constant boundary (eg & 100 -> D100), the same applies to the string of text message.
 

Attachments (1)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article