1 / 28

CoDeSys

CoDeSys. Target Settings. Choose you hardware. Only the CPU There is some changes in the 750-841 targets. For hardware which support network functionality or visuaization you can enable it here. The programming environment. Navigation in WAGO-I/O-PRO. Declaration window. POUs Data types

tamas
Download Presentation

CoDeSys

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CoDeSys

  2. Target Settings Choose you hardware. Only the CPU There is some changes in the 750-841 targets. For hardware which support network functionality or visuaization you can enable it here.

  3. The programming environment Navigation in WAGO-I/O-PRO Declaration window POUs Data types Visualisation Resources Instruction window Message window

  4. Making a small program PLC_PRG defines the primary program. This name will automatically appear when you start a new project. The program PLC_PRG will start PLC is sett into run. Choose a programming language for PLC_PRG

  5. Task configuration PLC_PRG is as default sett as a freewheeling task. In larger projects the task configuration makes the plc run more reliable and smooth. Right click and choose append Task Choose Task configuration Click the Resourses tab Right click

  6. Choosing a programming language Instruction List (IL) Ladder Diagram (LD) Function Block Diagram (FBD) Sequential Function Chart (SFC) Structured Text (ST) Continuous Function Chart (CFC)

  7. The Programming Languages IL LD FBD LD 17 ST lint (* Kommentar *) GE 5 JMPC next LD idword EQ istruct.sdword STN test SFC ST CFC IF value < 7 THEN WHILE value < 8 DO   value:=value+1;  END_WHILE;END_IF;

  8. PLC Configuration Configure your IO modules in PLC Configuration Choose PLC configuration Click the Resourses tab Right click and append Sub element to start Wago’s IO Configurator

  9. Data sheet on PDF

  10. Import from I/O check

  11. Assign variable names to IO Double click ”AT” and type in Variable name

  12. How to use the variables in the Program Select & F2

  13. Making programs Give the program a name Right click Click Select a programming language

  14. Making a function block Give the Function block a name Right Click Select Function Block Click Choose the programming language you which to use

  15. How to call a Program, Function block & Function Choose block FB from library Own FB Mark the text and press F2

  16. Libraries Right Click

  17. Libraries

  18. Libraries on the internet Industrial Automation Libraries Downloads Program Examples Building Automation Industrial Automation

  19. Web visualization Hatch of Web visualization Visualization tab

  20. Making a visualization ”PLC_visu” defines the start page. The neme vil not appair automaticly. Have to be typed in manualy. Right Click

  21. Sub pages Right Click and Configure Input Hatch of Curcer in the window an press F2

  22. Example

  23. Field bus Assigning IO directly to field bus Right click to add variables to field bus

  24. Communication Parameters Double click, type in IP address of CPU Click here before OK

  25. Export You can export the complete project, configurations and programs

  26. Import You can Import the complete project, configurations and programs

  27. How to Flash your project From here you can start an stop the PLC. Online>>Login Store the project to the flash memory in the PLC. The complete project can be downloaded from the PLC afterwards This makes a bootable code. This is required if the PLC should start after power off

More Related