Notice in the message, we combine text with actual word and bit addresses that we want to send. 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.’ 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. 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |