-Menü

Beiträge anzeigen

Dieser Abschnitt erlaubt es Ihnen, alle Beiträge anzusehen, die von diesem Mitglied geschrieben wurden. Beachten Sie, dass Sie nur Beiträge sehen können, die in Teilen des Forums geschrieben wurden, auf die Sie aktuell Zugriff haben.

Beiträge anzeigen-Menü

Beiträge - moumie

#1
Codesys 2 / Re: SMTP_CLIENT_DEMO with gmail error
30. September 2015, 12:19:38
Zitat von: peewit in 30. September 2015, 10:53:58
your plc-type is ?

have you set a gateway address in the PLC


Hi Peewit !

I am using a Bachmann PLC.I have set the gateway address in the PLC.
#2
Codesys 2 / SMTP_CLIENT_DEMO with gmail error
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]
#3
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]
#4
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
#5
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.
#6
Zitat von: peewit in 19. August 2015, 13:27:57
Look in the documentation in Chapter 9.13 and 9.14

Thanks Peewit. I get it now  :D
#7
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