CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Feb 26, 2020 11:09 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Apr 06, 2005 2:57 pm 

I 've been trying to follow the example you have in your documentation with the traffic lights. I believe I have managed that till the point were the colors of the 2 lights are assigned to global variables in the Resources area. I write the necessary declerations:


but when I try to build the project I get error messages specifying that the above addresses are invalid. I noticed that in the CoDeSys manual you write

"We will not do the needed controller configuration here in this example, because it depends on which target package you have available on your computer. Please see PLC configuration for further information"

As target I use the Windows NT Soft PLC included in your demo package. I read the instructions for PLC configuration but I don't understand what I have to do to configure these addresses. You mention "*.cfg" files but not what these files look like. Moreover when I go to the Option "PLC configuration" I only get the standard Settings and I can append a CanMaster or a CanElement but I don't think I need such things. Could you please help me with that?
Thank you very much in advance

PostPosted: Thu Apr 07, 2005 11:02 am 
Site Admin
User avatar

Joined: Mon Jan 31, 2005 10:48 am
Posts: 237
In the standard Setup of CoDeSys there are no configuration files included for the PLCWinNT-SoftPLC.

In case you e.g. select the hard real time SoftPLC CoDeSys SP RTE as the target you could select several fieldcard modules such as the CP5613. For this Profibus fieldbus card you can append a sub element and configure its Inputs and Outputs. Thus you will have the physical I/O addresses available listed in the declaration of the global variables.
You can extend the available fieldbus cards and subelements (input and output nodes) by copying the Profibus GSD files in one of the configuration directories (specified in the menu Project / Options / Directories).

In case you just want to test the example without physical addresses but with the SoftPLC you can as well switch of the address check: Open the Target Settings dialogue (in the register card Resources) and highlight the register card "General" there. You will find the option "no address check" that can be activated.

By the way: In your example of the declaration you have to use unique variable names :wink: . You forgot to rename the LEDs after copying them.

Roland Wagner

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

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 4 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