{}

Our Brands

Impact-Company-Logo-English Black-01-177x54

Welcome to the Schneider Electric Website

Welcome to our website.
Search FAQs
How to use the TRB142 Teltonika modem with the Modicon M241/251 and M262 Controllers in EcoStruxure Machine Expert?
  1. Modem configuration
First of all, it is strongly recommended to go to Teltonika website and retrieve the latest FW version of the TRB142 Teltonika.
https://wiki.teltonika-networks.com/view/TRB142_Firmware_Downloads

Connect the TRB142 modem to your PC thanks to the USB cable supplied with the modem.
Use the Quick Start Guide available with the modem TRB142 to change configuration of modem.
https://teltonika-networks.com/products/gateways/trb142

To enter the gateway's Web interface, type http://192.168.2.1 into the URL field of your Internet browser.

Use this Login information:
  • Username: admin
  • Password: admin01

Go to Services >> Serial Utilities >> Modem Control:

Teltonika_newFW

From this page, Add a New Instance with the same communication settings as defined in the controller application:

Teltonika_newFW_2_M221
=> Click “Save & Apply

Note: Mode has to be set on Full Control. In this mode, the TRB142 modem is completely started when the 2G,3G,4G LEDs are blinking and all signal LEDs are OFF.
  1. Controller configuration

Serial port configuration:

M241-SerialPortConfig

ASCII Manager configuration:

M241-ASCIIManagerConfig

Select Generic Modem and add the following init command:
AT&F;E0;S0=2; S3=13;S4=10;Q0;V1;+CBST=0,0,1;&W;+CMGF=1;+CNMI=2,2,0,0,0

M241-InitStringCmd
  1. Function Blocks configuration

How to send a SMS?

To be able to send a SMS, you have to use the Function Block SendSMS and put the phone number between “” as input of the phoneNbpin:

M241-FBSendSMS

How to receive a SMS?

To be able to receive a SMS, you have to use the Function Block ReceiveSMS and wait for new message. As the parameter CNMI has been set to 2,2,0,0,0 in the init command, a new message will be directly forwarded to the controller.


M241-FBReceiveSMS

When executing the function block, it will stay in Busy state until receiving a message as the timeout has been set to 0 (infinite).

Schneider Electric Malaysia

Explore more
Range:
Articles that might be helpful Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
Explore more
Range: