CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Wed Oct 18, 2017 11:06 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Feb 18, 2016 3:58 pm 
Offline

Joined: Tue Jan 19, 2016 11:13 am
Posts: 7
I'm trying to get the Codesys opc server to work together with a simulated codesys v3 program.
The OPC user guide suggests this should work, but i can't get it running.

I have a simple project:
* 1 codesys control win v3 device
* simple program with a few booleans / integers and a timer
* 1 global variable which increments every cycle (as suggested somewhere in the forums)
* a symbol table

when I run the code, and I configure the OPC server with a GATEWAY3 interface, and 127.0.0.1 as plc address, i can see my tags with Matrikon Explorer
when I simulate the code, and I configure the OPC server with a SIMULATION3 interface and project name pointing to the .xml document (incl. path), i can see the plc in Matrikon Explorer, but no application, program or tags appear.

I guess i'm missing something?


Top
   
PostPosted: Mon Feb 22, 2016 2:01 pm 
Offline

Joined: Mon Feb 22, 2016 10:16 am
Posts: 4
I have a similiar issue using SIMULATION3. I am a new user to CoDeSys, running CODESYS Control Win V.3.5 SP8.

I have read the OPC manual, and have added a symbol file and have selected my variables, and set up the OPC-server to load the xml symbol file using an absolute file name. Then I compile and run the program.

I have tried both running the OPC server as a server and as just as a regular application, as specified in the manual.

When I go into the Matrikon OPC explorer, I see the OPC server and I see the that PLC-name that I have given, but Matrikon is unable to find any tags.

I have also tried as the OP said, to set the simulator as GATEWAY3 and specify both the local IP-address and the PLC name, but to no avail.
OPCServer.log then gives:
(22.02.2016, 10:16:13.371) [PLC1_Test]: CPLCHandler: Reconnect[7]: STATE_PLC_NOT_CONNECTED: tries to open channel...
(22.02.2016, 10:16:27.458) **** ERROR: [PLC1_Test]: CPLCComBase3: <-Open() Could not resolve nodename <127.0.0.1>


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Wed Feb 24, 2016 10:58 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2160
Hi,
1. why not using the real plc, which comes with CODESYS Installation
2. why not using OPCUA - less administration effort! - NO OPC Server needed everything is embedded in the PLC Runtime (Control Win or Control RTE)

BR
Edwin


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Wed Feb 24, 2016 2:55 pm 
Offline

Joined: Mon Feb 22, 2016 10:16 am
Posts: 4
Edwin Schwellinger wrote:
Hi,
1. why not using the real plc, which comes with CODESYS Installation
2. why not using OPCUA - less administration effort! - NO OPC Server needed everything is embedded in the PLC Runtime (Control Win or Control RTE)

BR
Edwin


You will have to bear with me if I this is a little over my head, I am a new user of CoDeSys.

1. I do not understand what you mean by "real opc". Do mean use the physical hardware instead of simulation mode, because that is not feasible in my case, but perhaps you mean something else?

2. I am running Control Win so I do have the the OPC UA server as you said. I can press the button you point to but then what? Where can I see my tags (I have never used OPC UA.)


Top
   
PostPosted: Wed Feb 24, 2016 3:50 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2160
Quote:
1. I do not understand what you mean by "real opc". Do mean use the physical hardware instead of simulation mode, because that is not feasible in my case, but perhaps you mean something else?

yes I mean you have a real plc running which run on the same pc where you execute CODESYS... so you have everything what you need.

BR
Edwin


You do not have the required permissions to view the files attached to this post.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited