Starting a new Codesys project can be divided between tasks performed in OpenPV and in the Codesys IDE. OpenPV will be primarily used to provide the starting example which contains the device descriptor files and to provision the display. The Codesys IDE will be used from thereon out to write code and download to the display.
OpenPV Steps
1 - Create a new project
- Select the Codesys.IO Demo as the staring point for all new Codesys projects
- This creates a new folder with the Codesys project archive and all the necessary files needed by OpenPV. This image shows the files after they have been unarchived in Codesys.
2 - Manage Codesys Licensing
- Create a new Spark Project( This is different than the Codesys project created earlier).
- This will manage all the licenses, team members, devices provisioned, and applications.
- Select the project then open the module manager to purchase the desired number of Codesys licenses. Follow the online prompts to purchase licenses using a credit card.
- After making the purchase select "Refresh Project" to update the license list available for that project.
- From the main page select the Provisioning Project dropdown box and select the project name containing the license. Select the codesys runtime license.
3 - Install The Codesys License
- The display must be connected and running the loader app.
- Select License Target to install the license on the display.
- Upon completion the following message will appear in the console.
- The display serial number will now be visible in the Target Devices manager under the project section.
4 - Install the Project
- Select Generate then Load to Target to load the Demo application or your own project onto the display. Note: This step must be completed before the display can connect to the Codesys IDE. Alternatively you can install a precompiled application .opv file on the display.
- The Codesys application will now be running on the display.
- As an option you can load a pre-compiled application .opv file from the Targets window using the Load Application button.
Codesys Steps
1 - Open the Project Archive
- Open the project archive file that was created by OpenPV
- Extract the Artifacts
Connect to the Display
- Double click on the EControls-ARM-LInux Device then select Scan Network to connect to the OpenView display.
Build and Login
- Build the code and Login as normal.
- The app running on the display will be replaced with the newly built app.
- The display will show the splash screen page until you start the debugger.
Remote Visualization
- View the Visualization using a web browser, enter the default ip address of the display and port number Codesys is utilizing: 192.168.7.1:8080
Comments
0 comments
Please sign in to leave a comment.