CODESYS Development System
Programming the Controller Application in the Project Declaring the global variables First, declare the variables that you want to use across the entire application. To do this, create a global variab
CODESYS Development System
Establish the Connection to the PLC Starting the gateway server and PLC Checking the options for accessing the controller Controllers must never under any circumstances be accessible from the Internet
CODESYS Development System
Application on the PLC Downloading the application to the PLC Requirement: The application has been compiled without errors. For more information, see: Debugging the application program Click Online →
CODESYS Development System
Creating and Configuring a Project What is a project? . What is a project? A project contains the objects which are necessary to create a controller program ("application"): Pure POUs Examples: progra
CODESYS Development System
Creating Standard Projects Click File → New Project , and then the Projects → Standard Project template. Specify a name (example: myProject ) and a location in the file system. The Standard Project di
CODESYS Development System
Data Type: __UXINT, __XINT, __XWORD Variables with these special data types are converted to a platform-compliant data type, depending on the target system. CODESYS supports systems with address regis
CODESYS Development System
User-defined data type: TYPE :
CODESYS Development System
Data Structure: STRUCT A structure is a user-defined data type, which combines multiple variables of any data type into a logical unit. The variables declared within a structure are called members. Yo
CODESYS Development System
Data Type: Implicit Enumeration The implicit enumeration allows for an easy way to declare a new enumeration variable which is valid only within the local POU. A variable of this type can take a limit
CODESYS Development System
Addresses Caution If you use pointers to addresses, then the contents of addresses can be moved during an online change. If you use absolute addresses, then the contents of addresses does not change d