Hi!
It´s my first time handling a CP343-1 IT (1GX20). At this time I´m testing the different options provided by this device.
I´m working with Step 7 V5.1 and SP 6 (German). The CPU is a CPU313C. Now I want to send an email from the CP343. The test-function on the CP343 itself worked as well as the NCM S7.
I created a datablock according to the specification in the documentation, that demands a structure as followsI'll try to translate)
DB20
Address Name Type StartingValue Comments
0.0 Struct
+0.0 TO String[40] 'TO:[email protected];' required
+42.0 CC String[40] 'CC:[email protected];' optional
+84.0 FROM String[40] 'FROM:[email protected];' optional
+126.0 SUB String[40] 'SUB:Status of S7;' optional
+168.0 Text String[100] 'TXT:XYZ;' required
+270.0 Attach String[4] 'BNY:' optional
+276.0 Value1 Byte B#16#27 optional
+277.0 Value2 Byte B#16#03 optional
=278.0 END_STRUCT
I tried using the function fc 5 (German: AG_Send) and i was able to send an email with the parameters that are required ('TO:;' and 'TXT:;'). The CP343 had no problem with this. But as soon as I include any of the optional parameters the CP343 fails to send a mail. I used the NCM S7 Diagnosis Programm to check this. I tried all posibilities such as using only one string to which the parameters are assigned (ex.:+0.0 String[140] 'TO:xxxx;TXT:yxyx;') or altering the order of the datablock shown above. The result is always that emailing works only using exclusively the two required entries.
Is there anyone who could give me a hint?
Thanks in advance for your help.
Greetings!
It´s my first time handling a CP343-1 IT (1GX20). At this time I´m testing the different options provided by this device.
I´m working with Step 7 V5.1 and SP 6 (German). The CPU is a CPU313C. Now I want to send an email from the CP343. The test-function on the CP343 itself worked as well as the NCM S7.
I created a datablock according to the specification in the documentation, that demands a structure as followsI'll try to translate)
DB20
Address Name Type StartingValue Comments
0.0 Struct
+0.0 TO String[40] 'TO:[email protected];' required
+42.0 CC String[40] 'CC:[email protected];' optional
+84.0 FROM String[40] 'FROM:[email protected];' optional
+126.0 SUB String[40] 'SUB:Status of S7;' optional
+168.0 Text String[100] 'TXT:XYZ;' required
+270.0 Attach String[4] 'BNY:' optional
+276.0 Value1 Byte B#16#27 optional
+277.0 Value2 Byte B#16#03 optional
=278.0 END_STRUCT
I tried using the function fc 5 (German: AG_Send) and i was able to send an email with the parameters that are required ('TO:;' and 'TXT:;'). The CP343 had no problem with this. But as soon as I include any of the optional parameters the CP343 fails to send a mail. I used the NCM S7 Diagnosis Programm to check this. I tried all posibilities such as using only one string to which the parameters are assigned (ex.:+0.0 String[140] 'TO:xxxx;TXT:yxyx;') or altering the order of the datablock shown above. The result is always that emailing works only using exclusively the two required entries.
Is there anyone who could give me a hint?
Thanks in advance for your help.
Greetings!