730 likes | 2.25k Views
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
E N D
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 Visualisation Resources Instruction window Message window
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
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
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)
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;
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
Assign variable names to IO Double click ”AT” and type in Variable name
How to use the variables in the Program Select & F2
Making programs Give the program a name Right click Click Select a programming language
Making a function block Give the Function block a name Right Click Select Function Block Click Choose the programming language you which to use
How to call a Program, Function block & Function Choose block FB from library Own FB Mark the text and press F2
Libraries Right Click
Libraries on the internet Industrial Automation Libraries Downloads Program Examples Building Automation Industrial Automation
Web visualization Hatch of Web visualization Visualization tab
Making a visualization ”PLC_visu” defines the start page. The neme vil not appair automaticly. Have to be typed in manualy. Right Click
Sub pages Right Click and Configure Input Hatch of Curcer in the window an press F2
Field bus Assigning IO directly to field bus Right click to add variables to field bus
Communication Parameters Double click, type in IP address of CPU Click here before OK
Export You can export the complete project, configurations and programs
Import You can Import the complete project, configurations and programs
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