===================================================================== = PAC series additional sample program = = [Analog input] Analog voltage monitor = = Ver1.00 = = CONTEC Co.,Ltd. = ===================================================================== - Table of contents ========================= Introduction Specification Folder Structure How to Setup Sample Screen Explanation Version Upgrade History - Introduction ========================= Thank you very much for your continued patronage. This sample is a sample that displays the analog input value as a waveform. For details on how to set the product, refer to each reference manual. - Specification ========================= [Hardware Configuration] - When using only the CODESYS controller CPS-PCS341EC-DS1-1201 + CPS-AI-1608LI CPS-PCS341MB-DS1-1201 + CPS-AI-1608LI - When using EtherCAT slave in addition to CODESYS controller CPS-PC341EC-1-9201 + CPS-ECS341-1-011 + CPS-AI-1608LI CPS-PCS341EC-DS1-1201 + CPS-ECS341-1-011 + CPS-AI-1608LI [Required PAC firmware version] - For CPS-PC series CPS-PC341 Firmware Version 2.01 or later - For CPS-PCS series CPS-PCS341 Firmware Version 2.01 or later [Supported development environment] - CODESYS Ver.3.5 SP14 Patch 3 [Supported development language] - ST language [Packages required for development language] - CONPROSYS package for CONPROSYS Version 1.2.0.0 or later - Folder Structure ========================= The folder structure is as follows. . ├── CODESYS │   ├── CPS-ECS341-1 │   │   ├── CPS-PC341EC │   │   │    ├── bin │   │   │   ├── projectarchive │   │   │   └── src │   │   └── CPS-PCS341EC │   │   ├── bin │   │   ├── projectarchive │   │   └── src │   ├── CPS-PCS341EC │   │   ├── bin │   │   ├── projectarchive │   │   └── src │   └── CPS-PCS341MB │   ├── bin │   ├── projectarchive │   └── src ├── HMI └── config Gives a description of the folder. [HMI] : Folder containing files (.page) to be read into CONPROSYS HMI. [config] : Folder containing configuration files that contains LAN IP address settings as well as HMI multilingual configuration files. [bin] : There are executable files (app, crc) for the CODESYS development environment. [projectarchive]: An archive for unpacking when opening with different versions of CODESYS. [src] : CODESYS ST language source project file folder for development environment. - How to Setup ========================= 1. Access the PAC controller with a web browser. 2. Select [Maintenance] -> [Configuration File] from the menu, press the "Browse" button from "Restore", select the config.dat file in the config folder, and then press the "Update" button. 3. Select [Maintenance] -> [PLC Program] from the menu and upload the CODESYS file. Check the product name, select the binary file that matches the product from "Select File" in ".app" and ".crc", and then press the "Update" button. For example, For CPS-PCS341EC-DS1-1201, select the app and crc files in the CODESYS/CPS-PCS341EC/bin folder. 4. From the menu, select [Monitoring Edit] to move to the HMI screen. 5. Select [File] -> [Open from local disk] from the menu bar to load "VoltageMonitor.page" (HMI/VoltageMonitor.page). 6. Select [File] -> [Save page] from the menu bar. Save the file in [page1.page] in the user folder by overwriting. 7. Select [File] -> [Save the settings to ROM] from the menu bar. 8. Close the HMI screen. 9. Select [Exit] -> [Save and Reboot] from the menu. 10. After the reboot is complete, select [Monitoring View] from the menu. - Sample Screen Explanation ========================= - Displaying analog inputs on channels 0 through 7. - The horizontal axis is time and the vertical axis is voltage. - The voltage range is -10V to 10V. - The analog input value is updated every second. - Version Upgrade History ========================= Ver.1.00 2021.11 ---------------------------------------- - First release