<< Click to Display Table of Contents >> Navigation: Target Systems > CODESYS > Implement in CODESYS V3.5 |
Start CODESYS V3.5:
Open „New Codesys Project“
Create a „ Standard Project“ and choose a name and Location for the Project.
Select „ CODESYS Control Win V3 x64 (3S – Smart Software Solutions GmbH) as Device and
Structured Text (ST) as PLC-PRG in.
Now you have to import the PLCopenXML file from Selmostudio.
Highlight Application and click on „Project“ go to „Import PLCopenXML“.
Put a Checkmark on all „Insertable Items“ you need and press Ok.
Highlight Application and click on „Project“ go to „Add Folder“, name the new Folder with „GVLs“.
Highlight the new Folder GVLs and click on „Project/Add Object/Global Variable List“ and then „Add“.
Now you need to add the Library, click on Library Manager/+Add Library
Go to Application/Common, click on Selmo Basic then OK (Always use the latest Version).
Highlight Application and click on „Project“ go to „Add Object“, and „Symbol Configuration“.
Add.
Write your in and outputs in the GVL, also the In/Output Mapping (PRG) of your Modell.
In this case:
Open PLC_PRG (PRG) and write „ GlobalControl ();“
Go to Symbol Configuration, make a Checkmark on all Symbols and click on Build.
Highlight Application and click on „Project“ go to „Add Object“, and „Persistent Variables“.
Add.
Open „Persistent Variables“ make a right click and go to „Add All Instance Paths“.
F11 or Build and then you can save the project.
Make sure your „CODESYS Control Win SysTray-x64“ and „CODESYS Gatewy SysTray-x64 ar running.
Next select the Network Path to the Controller. Go to Device (CODESYS Control Win V3 x64),
Scan Network to find your Controller/PC.
If you found your Device you can Login.
Press F5 or Start to start the Application.
Here you can Start/Stop the Application or Login/Logout.