Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: jay.mason@victaulic.com on January 20, 2025, 09:44:21 AM
-
Good day.
What would cause the C1 on error bit to be active in the Email command.
The C1 bit is active as soon as the code loads.
The Smtp functions with the exception of being able to verify the login credentials which after some reading my be an issue with Gmail.
But the first issue is the c1 indicator .
What I am attempting to accomplish is to have an email sent when an error occurs.
The plc side is straight forward just the VPN and network side is challenging .
Thank you
Jay
-
C1 is reporting the SMTP transaction error. EMAIL uses the SMTP protocol, along with any other layers (e.g. security, TCP addressing, etc.). If any of those error out, the C1 bit will come on.
DmLogger can help diagnose the issues your PLC is having. It can turn on some bits in the PLC to send event log information by the PLC to DmLogger.
Although it sounds like you have a good idea what your issues are, DmLogger can provide some details of what the PLC is actually doing. Look at Debug->Do-more Logger in Designer. You will want to temporarily turn on Enable Message Dump ST36 in the pre-view dialog to DmLogger. This will broadcast the EMAIL SMTP events out the PLC's Ethernet port, allowing DmLogger to show you those.
Don't forget to turn ST36 bit off after you have some DmLogger entries that provide you with the information you need to take the next step (you can always turn it back on again when testing EMAIL again).
-
I think I misunderstood. The C1 bit is retentive by default, so it remembers its last state. You probably have no code to actively clear the C1 error bit, so just turn it off from Data View.
The EMAIL instruction will automatically turn it OFF as soon as the EMAIL begins execution, but it may turn back ON soon after due to the issues you mentioned.