Anonymous - 2018-11-22

Originally created by: mg

Hallo Leute

Entschuldigung, Ich bins schon wieder ....

Wenn ich eine RETAIN VARIABLE definiere, läuft der PFC200 nicht mehr stabil. Das heißt nicht, daß er jedes Mal abstürzt aber wenn ich nun mit dem System weiterarbeite stürzt es zu 90% nach ca. 5 min ab. Sobald ich die RETAIN Variablen wieder herauslösche ist es wieder gut. (Persistent hab ich auch mal probiert ... aber das geht gar nicht).

Auf jeden Fall stürzt es nach "allesBereinigen" / Login+"Download" NUN NACH DER AKTION "BootProjekt laden" ab.
Wenn ich zuerst ohne RETAIN lade und dann mit RETAIN einen Änderungsdownload durchführe scheint es zu funktionieren.
Wenn ich dann allerdings "BootProjekt laden" mache, ist Codesys wieder abgestürzt.

Ein Absturz kann sich auf 2 Arten zeigen.
a) kein Zugriff mehr auf die Steuerung aber die PLC läuft weiter.
Da hilft manchmal das Trennen der Verbindung, aber dann darf ich nichts mehr ändern sonst kommt b)
b) Programmabarbeitung wird gestoppt.

Ich habe dazu die codesyscontrol.log mal herauskopiert und mit ein paar Kommentaren versehen:

1542872846, 0x00000009, 1, 0, 2, Running as network server
1542872846, 0x00000009, 1, 0, 1, Running as network client
1542872846, 0x00000007, 1, 0, 6, Network interface: <ipaddress>192.168.2.10</ipaddress>, subnetmask <subnetmask>255.255.255.0</subnetmask>
1542872846, 0x00000018, 1, 0, 4, Network interface <interface>ether 4</interface> at router <instance>0</instance> registered
1542872846, 0x00005f0d, 1, 0, 1, interface <interface>can0</interface> is not available
1542872846, 0x00000124, 1, 0, 0, No certificate for the OPC UA server available.
1542872846, 0x00000124, 1, 0, 0, Security policy allows plain text communication. Secure communication is deactivated.
1542872846, 0x00000124, 1, 0, 0, **********
1542872846, 0x00000124, 1, 0, 0, OPC UA Server Started:
1542872846, 0x00000124, 1, 0, 0, Hostname: PFC200-426DFA, Port: 4840
1542872846, 0x00000124, 1, 0, 0, URL: opc.tcp://PFC200-426DFA:4840
1542872846, 0x00000124, 1, 0, 0, Loopbackadapter activated.
1542872846, 0x00000124, 1, 0, 0, All available networkadapters are used.
1542872846, 0x00000124, 1, 0, 0,
*********
1542872846, 0x00000124, 1, 0, 0, Provider CODESYS_DefaultProvider with Version 0x3050d00 registerd at the OPC UA server.
1542872846, 0x00000124, 1, 0, 0, Provider CmpOPCUAProviderIecVarAccess with Version 0x3050d00 registerd at the OPC UA server.
1542872846, 0x00000030, 1, 0, 6, Local network address: <ipaddress>192.168.2.10</ipaddress>
1542872846, 0x00000018, 1, 0, 4, Network interface <interface>BlkDrvTcp</interface> at router <instance>2</instance> registered
1542872846, 0x00000018, 1, 0, 1, Setting router <instance>0</instance> address to

(000a)

1542872846, 0x00000018, 1, 16, 8, Network interface for mainnet=<mainnet>ether 5</mainnet> not found
1542872846, 0x00000018, 1, 0, 1, Setting router <instance>1</instance> address to
(0000)

1542872846, 0x00000018, 1, 0, 1, Setting router <instance>2</instance> address to
(2ddc:c0a8:020a)

1542872852, 0x00000126, 1, 0, 0, Valid license found for OPC UA IecVarAccess provider.
1542872852, 0x00000002, 1, 0, 7, Retains matched to bootproject of application [<app>Application</app>]
1542872852, 0x00000002, 1, 0, 6, Bootproject of application [<app>Application</app>] loaded
1542872852, 0x00000002, 1, 0, 10, Application [<app>Application</app>] started
1542872852, 0x00000001, 1, 0, 34, CODESYS Control ready
1542872852, 0x0000100c, 1, 0, 0, Visuinitialization starting.
1542872852, 0x00001012, 1, 0, 0, Opened alarm storage file, version: 3
1542872852, 0x0000100c, 1, 0, 0, Visuinitialization done.
1542872853, 0x00000071, 1, 0, 0,
********
1542872853, 0x00000071, 1, 0, 0, Web Server
1542872853, 0x00000071, 1, 0, 0, Root directory : $PlcLogic$/$visu$
1542872853, 0x00000071, 1, 0, 0, Web Server
1542872853, 0x00000071, 1, 0, 0, Root directory : $PlcLogic$/$visu$
1542872853, 0x00000071, 1, 0, 0, Host : PFC200-426DFA
1542872853, 0x00000071, 1, 0, 0, HTTP port : 8080
1542872853, 0x00000071, 1, 0, 0, HTTPS port : 443
1542872853, 0x00000071, 1, 0, 0, Connection type : HTTP, HTTPS
1542872853, 0x00000071, 1, 0, 0,
*********
1542872853, 0x00000033, 1, 0, 0, TlsCreateContext: The given namespace 'WebServer' was not found in config file.
1542872853, 0x00000071, 1, 0, 0, The needed certificate is not available for HTTPS.
1542872853, 0x00000071, 1, 0, 0, HTTPS is not working with your configuration. See previous log entries for details!
1542872940, 0x00000001, 1, 0, 0, runtime licensed
--------------------- NACH MEINEM LOGIN mit Codesys: ALLES IST OK --------------
--------------------- NACH MEINEM LOGOUT - siehe nächste Zeile --------------
1542873226, 0x00000030, 8, 81, 1,
EXCEPTION
<task>BlkDrvTcp</task> <ip>0x823aeb0</ip> <bp>0xb6f99000</bp> <sp>0xb547c218</sp>
------------ REGELSTATION LÄUFT ALLERDINGS WEITER ----------
--------------------- NACH MEINEM WEITEREN LOGIN ist scheint vorerst ALLES OK --------------
------------ nach ca. 20sec kommt es zum Totalabsturz (PLC stoppt) ----------