


You will notice that a one-shot triggers the messages. Here is the PLC program for sending both messages. The subject line will be different to distinguish the two. We will send two messages one will be an email and the other an SMS text message. We use the EMAIL instruction in the PLC to send the messages. Ladder Logic Program – PLC Send Email Text Messages Now that we have set up our email client device we can move on to programming the Email messages. Enter your ”‘From’ Email Address” – Enter your Google Gmail account address. This is the time the PLC waits before setting any error message. The Timeout setting can be left at 30 seconds. Then press ‘Select’ to return this address to the configuration page.Įnsure that the SMTP Server Port is set for 25. Ex: ‘beside the ‘S’TP Server I’P Address’ hit the ‘DNS Lookup….’īeside the URL: enter the server address aspmx.l.gAddress’m and’ hit ‘Lookup’’ This will retrieve one of the server’s IP addresses. Select ‘SMTP Client (Email)’ and hit ‘OK.’īeside the ‘Device Name,” enter a na”e for the the’Email Client. If you”do, then s”lect it and hit “Edit Device”) Select “New Device” (If you do not already have an SMTP Client (Email) configured. In ‘System Configuration”n,’ select”‘Device Configuration.’ Hit the “Configure…” button if the IP address needs to be modified. In ‘CPU Configuration,’’ verify the IP address and netmask.’This will be automatically populated when using the Do-more Simulator. Under ‘Project Browser’: ‘Tools,’ select ‘System Configuration.’
#Send sms via smtp server simulator
Start a new project with the simulator or an existing one with a connection to the internet. ( H2-DM1E) System Configuration – PLC Send Email Text Messages The actual Do-More PLC must have an Ethernet connection connected to the internet. We will be using the simulator for our example.
#Send sms via smtp server free
This is available free of charge and is a fully functional package complete with a simulator. You must set up this free service if you do not have a Google Gmail account. This does not require authentication, so more PLCs can communicate with the server. We will use a restricted Gmail SMTP server to send emails and text messages. Restricted Gmail SMTP Server – PLC Send Email Text Messages Restricted Gmail SMTP server – does not require authentication, and you will only be restricted to sending messages to Gmail or Google Apps users.Messages can be sent to anyone inside or outside of your domain. Gmail SMTP server – requires authentication with your Gmail/Google Apps account and password.You can send messages to anyone inside or outside of your domain. The SMTP relay service sends mail from your organization by authenticating with the IP address(s).Google provides three different SMTP settings to send email messages from a printer, scanner, or application (PLC). Simple Mail Transfer Protocol (SMTP) is an internet standard for email transmissions. Gmail Less Secure App Access – App “passwords SMP” – Google – PLC Send Email Text Messages If you are using this to send Emails from your controller, you must enable 2-step verification. This will allow you to generate an “App Password” for your controller or program. Google is removing “Less Secured Apps” in the mail app. Once in your Gmail account, the message can be automatically forwarded to another verified email or SMS text message address. We will walk through sending email and text messages from the PLC to Google Gmail. In our example, we will use a restricted Gmail SMTP server so that no authentication will be required. This is probably due to the networks involved, and authentication can be complicated. However, very few applications do this on the production floor. Sending email messages from the PLC sounds like an easy task.
