Editing POUs
To edit a POU, open it by double-clicking it from the project tree. The relative editor opens and lets you modify the source code of the POU.Changing the name of the POU:Select a POU from the project tree then open its context menu by right-clicking on its icon, choose Rename Program.Duplicating a POU:Select a POU from the project tree then choose the appropriate voice of the menu Project>Duplicate object.Enter the name of the new duplicated POU and confirm the operation.Deleting POUsSelect a POU from the project tree then choose the appropriate voice of the menu Project>Delete Object.Confirm the operation to delete the POU.Editing POU propertiesSelect a POU from the project tree then open its context menu by right-clicking on its icon, choose Edit Program Properties.
A window will appear allowing you to edit information such as version number, description and, if the POU is a function or a function block, also the icon and the image.The icon must have a maximum size of 100×100 pixels; if added, the icon will be dis- played overlaying to the block when it is used in a graphic language (LD or FBD)The images must have a maximum weight of 30 KB per image. You can display imported images in the description windows by linking them with HTML syntax; check the use HTML syntax box and then use
; to add the image to the description.View POU properties:Select a POU from the project tree then choose the appropriate voice of the menu Project>View PLC object properties,Exclude from build:Select a POU and right-click on it to open its context menu, from there select Exclude from build. Doing so the POU will be ignored when compiling the project, even if the POU is used in the project.For example: if a program as been already assigned to a task, you can avoid to compile it by selecting “exclude from build” instead of removing the program from the task; this will allow you to change the project behaviour without changing the project tree.Be careful, excluding from build a POU that is required by another element will generate an error message. For example: if you exclude from build a function which is called by a program, when compiling the program you’ll obtain en error message.