Implement in CODESYS V3.5

<< Click to Display Table of Contents >>

Navigation:  Target Systems > CODESYS >

Implement in CODESYS V3.5

 

Start CODESYS V3.5 SP16 Patch 4:

clip0335

 

Open „New Codesys Project“

clip0336

 

Create a „ Standard Project“ and choose a name and Location for the Project.

clip0337

 

Select „ CODESYS Control Win V3 x64 (3S – Smart Software Solutions GmbH) as Device and

Structured Text (ST) as PLC-PRG in.

clip0338

 

Now you have to import the PLCopenXML file from Selmostudio.

Highlight Application and click on „Project“ go to „Import PLCopenXML“.

clip0339

 

Put a Checkmark on all „Insertable Items“ you need and press Ok.

clip0340

 

Highlight Application and click on „Project“ go to „Add Folder“, name the new Folder with „GVLs“.

clip0341        clip0342

 

Highlight the new Folder GVLs and click on „Project/Add Object/Global Variable List“ and then „Add“.

clip0449

 

 

Now you need to add the Library, click on Library Manager/+Add Library

clip0345

 

Go to Application/Common, click on Selmo Basic then OK (Always use the latest Version).

clip0346

 

Highlight Application and click on „Project“ go to „Add Object“, and „Symbol Configuration“.

clip0347

 

Add.

clip0348

 

Write your in and outputs in the GVL, also the In/Output Mapping (PRG) of your Modell.

In this case:

clip0349

clip0350

clip0351

 

Open PLC_PRG (PRG) and write „ GlobalControl ();“

clip0352

 

Go to Symbol Configuration, make a Checkmark on all Symbols and click on Build.

clip0353

 

Highlight Application and click on „Project“ go to „Add Object“, and „Persistent Variables“.

clip0354

 

Add.

clip0355

 

Open „Persistent Variables“ make a right click and go to „Add All Instance Paths“.

clip0356

 

F11 or Build and then you can save the project.

clip0357

clip0358

 

Make sure your „CODESYS Control Win SysTray-x64“ and „CODESYS Gatewy SysTray-x64 ar running.

clip0363         clip0364

 

Next select the Network Path to the Controller. Go to Device (CODESYS Control Win V3 x64),

Scan Network to find your Controller/PC.

clip0359

 

If you found your Device you can Login.

clip0360

 

Press F5 or Start to start the Application.

clip0361

 

Here you can Start/Stop the Application or Login/Logout.

clip0362