PLC libraries
The TwinCAT SMS library contains a block for sending SMS messages directly from the PLC. The SMS library is based on the 'Serial Communication' (COMlib) library. This makes it possible to communicate with the PC's serial interface and with the serial terminal (KL6xxx) in the same way. More detailed information may be found in the documentation for the ‘Serial Communication' library.
Properties:
- Sending an SMS via a connected GSM modem.
- The devices listed below can be connected via a serial data cable to the serial interface of the TwinCAT PC or via the Kl6xxx serial terminal.
- Sending SMS messages of up to 160 characters.
- It is available for the PC and for the Bus Controller (BC).
Requirements:
- Installed TwinCAT System, Installation level: TwinCAT PLC or higher.
- TwinCAT PLC runtime on PC or BC (Bus Controller).
- Suitable GSM modem with a data cable.
Currently supported devices:
- Westermo GS-01 (communication parameters: 9600 baud, 8 data bits, no parity bit, one stop bit)
- Siemens S35i (communication parameters: 19200 baud, 8 data bits, no parity bit, one stop bit)
- Nokia 6210 (communication parameters: 19200 baud, 8 data bits, no parity bit, one stop bit)
- Maestro 100 (communication parameters: 9600 baud, 8 data bits, no parity bit, one stop bit)
The following files are copied into the ..\TwinCAT\PLC\Lib directory during installation:
- TcPlcSMS.Lib (SMS library for the PC)
- TcPlcSMSBC.lb6 (SMS library for the BC)
- COMlib.lib, COMlibBC5B.lb6, COMlibBCext.lb6, ChrAsc.Lib and ChrAsc.obj (Serial Communication libraries for the PC and the BC)
- COMlibV2.lib, COMlibV2lb6 (Serial Communication library for the PC and the Bus Controller (BC) v2.0 ). Only with TwinCAT SMS Server version 2.0 and higher!
Further Information