Beiträge anzeigen

Diese Sektion erlaubt es ihnen alle Beiträge dieses Mitglieds zu sehen. Beachten sie, dass sie nur solche Beiträge sehen können, zu denen sie auch Zugriffsrechte haben.


Themen - moumie

Seiten: [1]
1
Codesys 2 / SMTP_CLIENT_DEMO with gmail error
« am: 29. September 2015, 11:57:58 »
Hi !

I want to send email with the smtp_client_demo using a free public mail like gmail.
I have successfully compiled and run the demo code, but unfortunately I cannot receive the email
in my account.
I am getting the errors:

SMTP_ERROR_T = 1
SMTP_ERROR_C = 16711680

According to oscat documentation:
 -  Problem: DNS_CLIENT --> Format error: The name server was unable to interpret the query.

I don't understand it clearly.
I have attached a screenshoot of my program running.

Thanks for any help or hints.

[gelöscht durch Administrator]

2
I am new to oscat.  :-[
I try to run the demo program for FTP.
I have exported the FTP demo and import it in my new progarm.
I have added the required library.
But I keep getting the following error:

Error 3554:  Task Configuration (3) : Task entry 'FTP_CLIENT_DEMO;' must be a program or a global function block instance.

Thanks

[gelöscht durch Administrator]

3
Bitte kann jemand mir helfen zu schreiben/lesen einer datei mit oscat.lib .
Ich habe schon oscat-lib dokumentation gelesen aber das ist nicht genug...
Ich brauche nur ein kleinen Code Beispiel.  :)


System:
- Codesys 3
- Structured text

4
PLease in the Oscat netlib documentation P.119-120. There is the following assignment format to the function code.

VMAP[m].FC := DWORD#2#binary_binary_binary_binary; (FC n, n,n, n)

where n = function code (I understand clearly).
m = index of the VMAP array.

e.g:
VMAP[1].FC := DWORD#2#00000000_10000000_00000000_00011100); (FC 2,3,4,23)
VMAP[2].FC := DWORD#2#00000000_10000000_00000000_00011000); (FC 3,4,23)
VMAP[3].FC := DWORD#2#00000000_11000001_10000000_01111010);(FC1,3-6,15-16,23)
VMAP[4].FC := DWORD#2#00000000_11000001_00000000_01011000); (FC 3,4,6,16,23)

Can someone tell me the meaning of this expression ?

Regards.

5
Please I am new to oscat. I have successfully run the demo client and server codes in Structure text. But I really don't know the meaning of differents parameters or variables used. I could not find them in them documentation . Can someone explain them to me ?

MB_SERVER:

               IP_C : IP_C; => ?
   S_BUF : NETWORK_BUFFER_SHORT; => ?
   R_BUF : NETWORK_BUFFER_SHORT; => ?
   VMAP : ARRAY [1..10] OF VMAP_DATA; => ?
   DATA : ARRAY [0..255] OF WORD; => ?
   IP_CONTROL2_1: IP_CONTROL2; => ?
              MB_SERVER_1: MB_SERVER; => ?
              ENABLE : BOOL; => ?

MB_CLIENT:
              IP_CONTROL2_1: IP_CONTROL2; => ?
   MB_CLIENT_1: MB_CLIENT; => ?
   IP_C: IP_C; => ?
   S_BUF: NETWORK_BUFFER_SHORT; => ?
   R_BUF: NETWORK_BUFFER_SHORT; => ?
   DATA: ARRAY [0..255] OF WORD; => ?
   W_DATA_BITPOS: INT; => ?
   W_DATA_ADR: INT; => ?
   W_POINTS: INT; => ?
   W_ADDR: INT; => ?
   R_DATA_BITPOS: INT; => ?
   R_DATA_ADR: INT; => ?
   R_POINTS: INT; => ?
   R_ADDR: INT; => ?
   FC: INT; => ?
   ENABLE: BOOL; => ?

Regards           

Seiten: [1]