PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. Arne Smets
  2. PLCnext Engineer
  3. Thursday, 30 April 2020

Hello,

 

I want to set up some email notifications for the plcnext. As it's still not available on proficloud, I decided to use the ITlibrary.  (https://www.plcnextstore.com/#/224)

When I open the SMTP Client example, there are quite some errors. After I added the datatypes (page 44 of the PDF from the PLCnext Store), I still have some errors, see attachment.

I understand that I have to create those datatypes, but what should be in the datatype? Or where am I able to find it?

 

Arne

 

 

Attachments (1)
Accepted Answer
twidmer@phoenixcontact.com Accepted Answer Pending Moderation
1
Votes
Undo

Hi Arne

I just tried the example "ITL_9_EXA_ITL_SMTP_Client". It works very well. My hardware AXC 2152 FW 2020.0.1 . You can have my PLCnext Engineer example, see transfer-link.
Then you only have to adjust the parameters according to your email account, see print screen
s marked red. Of course you also have to adjust your project and PLC IP settings.

Try a Gmail account first.
I had to change a security setting on my Gmail account «allow less secure apps»
https://support.google.com/accounts/answer/6010255

Transfer-Link:

Adresse: https://extrans.phoenixcontact.com/extrans2/index.jsp?id=758602720
Passwort: yxtSIDldzQ

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi Arne,

I didn't see any errors when using this procedure:

  • Download the IT Library from the PLCnext Store.
  • Install the IT Library in the default location.
  • Copy the two libraries - IT_Library_9.pcwlx and IP_Com_9.pcwlx - from the installed location, to the default PLCnext Engineer "User Library" directory (C:\Users\Public\Documents\PLCnext Engineer\Libraries)
  • Copy the sample project from the installed location to the default PLCnext Engineer "Project" directory (C:\Users\Public\Documents\PLCnext Engineer\Projects).
  • Open the sample project from the Projects directory.

The libraries defines some of the data types that you need, these should all be available when you import the libraries, and you should see all of these data types listed in the documentation for the library.

Hope this helps.

~ Martin.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

  1. more than a month ago
  2. PLCnext Engineer
  3. # 1
Arne Smets Accepted Answer Pending Moderation
0
Votes
Undo

Installed everything again (same way), but it is fixed.

  1. more than a month ago
  2. PLCnext Engineer
  3. # 2
Arne Smets Accepted Answer Pending Moderation
0
Votes
Undo

Is there an example online for this library? I have connected everything, but I'm not recieving anything. I'm not sure if something is not correct in the code or at the server... 

Acke Chau Accepted Answer Pending Moderation
0
Votes
Undo

There are examples. The examples are located in the installed library folder. The picture shows default installation folder.

ITlibrary9

Arne Smets Accepted Answer Pending Moderation
0
Votes
Undo

Yes i noticed. I work with smtp for the first time and don't know much about the server. Due to that I am not sure what all of the information is and if it is correct... Because I'm not recieving an email when I toggle boolean.

 

Arne Smets Accepted Answer Pending Moderation
0
Votes
Undo

The function block sets the client error to true, but in the errorlog is no error, also the datarec string is not telling anything. What could be the reason?

 

vjogia Accepted Answer Pending Moderation
0
Votes
Undo

Hi,

I am using the  ITL_SMTP_Client functional block for sending e-mail alerts as soon as I have a high priority alarm generated in my system. I have imported the library following all the steps mentioned in the discussion above. Now, I require help configuring the functional block. As I understand, the user-defined data types are already in-built with the SMTP_Client functional block, so for the inputs to the block, I have to create my tags using these pre-defined data types. Is that correct?  Could you please share the transfer link mentioned above again as it is expired? That will be helpful.

Thanks,

Vivek 

 

  1. one week ago
  2. PLCnext Engineer
  3. # 7
Arne Smets Accepted Answer Pending Moderation
0
Votes
Undo

The program in the link was almost the same as the standard download in the store. The things that were important for me where: 1) The gateway should be your internetrouter IP. 2) The DNS IP address should be the same as your gateway. 3) Give your gmail account permission less secure acces. I used port '587'. Last thing you maybe are not aware of is that the target address count should be (obviously) the same as the number of addresses in your addresslist.

Arne

 

  1. one week ago
  2. PLCnext Engineer
  3. # 8
vjogia Accepted Answer Pending Moderation
0
Votes
Undo

Thanks Arne. It was helpful. It's working now. 

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.