Настройте Secure PLC Email Messaging в последней версии набора программ для повышения производительности. Чтобы использовать эту функцию, вы должны установить пакет программ для повышения производительности или выше, а затем загрузить последнюю версию микропрограммы в ЦП для повышения производительности. Эта установка состоит из 3 частей. Во-первых, DNS. Если ваш почтовый сервер использует соглашение об именах, подобное этому, а не прямой IP, вам необходимо настроить DNS. Этот сервер используется для разрешения IP-адреса используемого имени. Чтобы настроить его, войдите в конфигурацию вашего оборудования и затем выберите CPU. Выберите вкладку Ethernet-порт и здесь введите DNS-сервер. Я бы посоветовал использовать DNS вашего провайдера, но если вы не уверены, что это такое, вы всегда можете использовать общедоступный DNS-сервер Google. Вы также можете настроить это в окне подключения к процессору, но я бы посоветовал настроить его здесь, так как это делает это часть проекта PLC. Теперь, когда у вас есть эта настройка, выберите ОК.


А затем выберите здесь на вкладке Почтовые учетные записи. Вы можете настроить до 4 учетных записей в своем проекте PLC. Если вы посмотрите здесь, вы заметите, что есть шаблоны учетных записей для некоторых из наиболее распространенных почтовых серверов. Если вы не видите своего провайдера электронной почты здесь, выберите Пользовательский и введите информацию, предоставленную вашим провайдером электронной почты. Я настраиваю Gmail, поэтому я выберу здесь. Итак, дайте имя вашей учетной записи. Это имя будет использовано в инструкции по электронной почте позже. Этот шаблон уже настроил имя моей службы, поэтому, если вы делаете пользовательскую настройку, вы вводите ее вручную. Шифрование и номер порта уже установлены. Мне действительно нравятся эти шаблоны, это делает эту настройку намного проще. Эта часть сертификата используется для проверки личности сервера электронной почты. Когда мы создаем эту учетную запись здесь, в нашем проекте, этот сертификат становится частью нашего проекта PLC.


When an electronic instruction is launched by a device, mail server certificates are checked as part of the establishment of an encrypted connection. Most of the default certificate usage cases will work for your application, especially for the template provider here. In some organization email accounts, you will need to use your own certificate or the "No check" option. Enter your username and password. Hit well, and that completes the email client setup. Now let's create a test letter. I will create an initiating bit for my email.

https://youtu.be/y_EROE6TccM

Enter in the email instructions. Point here, before we begin, in these fields you can put a tag or direct text. If you enter direct text, it must be inside quotes. If it is not inside quotes, the software will assume that it is a tag. I'm going to choose to use the structure. When I do this, these fields get tags created for them, which will be part of a structure like this. Now select the email client we created earlier. Here I will enter in the address from as a direct text. Be sure to include quotes. I'm going to choose to add an error and event file and a log file and a log file. These are the latest files stored in external processor memory.


For destination addresses, I'm going to type in the tag. Now that you have entered it, select OK. I would advise to change all lines to at least 64 characters. Now for this, I would choose the maximum number of characters, and also advise to make sure that they are saved. Now, I want you to notice that both the Message and the subject are strings, and the maximum number of characters for them is 128.


You will need to keep this in mind when creating your emails. Select ok and let's send this project to your processor. Now that I’ve created a message, I’m going to select the line that the instruction is on and right-click and add it to my data view. Give this tab a name. I really like this feature in Productivity, it really makes troubleshooting easier in your code. All tags associated with this thread are then added to the data view tab. Now go to the data view and select this tab. I'm going to manually enter text for my subject, message and destination address. To create your own line in ladder logic code, simply use the Pack string statement.


Now that I have entered this information, I will send it to the PLC.

 
Σχόλια

Δεν υπάρχουν ακόμα σχόλια.
Πρόσθεσε ένα σχόλιο για να ξεκινήσεις τη συζήτηση!

Blog
Τα blogs ενημερώνονται κάθε 5 λεπτά