===================================================================== = PAC series additional sample program = = [Analog output] Analog waveform output = = 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 uses CONPROSYS HMI to output analog voltage based on preset value to an analog voltage output device connected to the CONPROSYS PAC controller or an analog voltage output device connected to the EhterCAT slave controller from a Web browser. 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-AO-1604VLI CPS-PCS341MB-DS1-1201 + CPS-AO-1604VLI - When using EtherCAT slave in addition to CODESYS controller CPS-PC341EC-1-9201 + CPS-ECS341-1-011 + CPS-AO-1604VLI CPS-PCS341EC-DS1-1201 + CPS-ECS341-1-011 + CPS-AO-1604VLI [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 "AnalogWaveformGenerator.page" (HMI/AnalogWaveformGenerator.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 ========================= - You can output analog from channel 0 to 3. - You can select constant voltage, rectangle wave, or sine wave. - You can change the amplitude, voltage, and frequency of the output waveform. The parameters that can be set differ depending on the mode. - Constant voltage: The constant voltage value can be changed. - Rectangle wave : Amplitude, constant voltage value, and frequency can be changed. - Sine wave : Amplitude, constant voltage value, and frequency can be changed. Each setting parameter can be set within the following range. - Amplitude : 1 to 10 can be set. - Constant voltage value: -10 to 10 [V] can be set. - Frequency : 1 to 1000 [Hz] can be set. - The current output value is updated at 1-second intervals on the WEB monitoring screen. - Version Upgrade History ========================= Ver.1.00 2021.12 ---------------------------------------- - First release