=====================================================================
=            PAC series additional sample program                   =
=             [Digital I/O] Digital monitor                         =
=                                                         Ver1.01   =
=                                                  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 controls digital input and digital output.
  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-DIO-0808BL
        CPS-PCS341MB-DS1-1201 + CPS-DIO-0808BL
        CPS-PC341MB-ADSC1-9201

  - When using EtherCAT slave in addition to CODESYS controller
        CPS-PC341EC-1-9201 + CPS-ECS341-1-011 + CPS-DIO-0808BL
        CPS-PCS341EC-DS1-1201 + CPS-ECS341-1-011 + CPS-DIO-0808BL


  [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-PC341MB
│   │        ├── 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 "DioMonitor.page" (HMI/DioMonitor.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
=========================

  Input port  ：Displaying digital input. You can check the input ON(green)/OFF(red). 　

  Output port ：Displaying digital output. Press the button to switch between ON(green) and OFF(red). 


- Version Upgrade History
=========================

  Ver.1.00 -> 1.01		2021.10
  ----------------------------------------
  - Changed the name from "Checkmate" to "PAC series additional sample program [Digital I/O] Digital monitor"

  - Change the screen layout of HMI
        - Add port No
        - Change background color to green

  Ver.1.00                      2021.07
  ----------------------------------------
  - First release
