=====================================================================
=            PAC Series  Additional Sample Programs                 =
=        [Temperature Sensor Input] Temperature Monitor             =
=                                                         Ver1.00   =
=                                                  CONTEC Co.,Ltd.  =
=====================================================================


- Contents
=========================
  Introduction
  Specification
  Folder Structure
  Setup Method
  Sample Screen Description
  Version-up History


- Introduction
=========================
  Thank you for purchasing this product.
  This sample is a sample that displays the temperature sensor input value as a waveform.
  Please refer to each reference manual for the detailed setting method of product.


- Specification
=========================
  [Hardware Configuration]
  - When using only the CODESYS controller
        CPS-PCS341EC-DS1-1201 + CPS-SSI-4P
        CPS-PCS341MB-DS1-1201 + CPS-SSI-4P
  - When using an EtherCAT slave in addition to the CODESYS controller
        CPS-PC341EC-1-9201 + CPS-ECS341-1-011 + CPS-SSI-4P
        CPS-PCS341EC-DS1-1201 + CPS-ECS341-1-011 + CPS-SSI-4P

  [Requested PAC Firmware Version]
  - CPS-PC Series
        CPS-PC341 Firmware Version 2.01 or later
  - 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

  [Required Packages 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

  Folder Description
  [HMI]           : A file (.page) is stored to be read out to CONPROSYS HMI.
  [config]        : There is a configuration file. Contains LAN IP address settings as well as 
                    HMI multilingual configuration file.
  [bin]           : There are executable files (app, crc) for the CODESYS development environment.
  [projectarchive]: It is an archive to expand when opening with a different version of CODESYS.
  [src]           : It is the ST language source project file folder for the CODESYS development environment.


- Setup Method
=========================
A configuration file is provided to operate this sample.
Temperature monitoring is possible just by setting the configuration file according to the following procedure.
Please note that each setting will be overwritten when setting the configuration file.
   1. Access the PAC controller with a WEB browser.
   2. From the menu, select [Maintenance] → [Configuration File], click the "Browse" button from "Restore", 
      select the config.dat file in the config folder, and then click the "Update" button.
   3. From the menu, select [Exit] → [Save and Reboot].
   4. After the reboot is complete, select [Monitoring View] from the menu.

If you only want to update the PLC program, you can follow the procedure below.
   1. From the menu, select [Maintenance] → [PLC Program], upload the CODESYS file.
      Check the product name, click "Select File" in ".app" and ".crc" to select the binary file that matches the product, and then click the "Update" button.
      Example)
      For CPS-PCS341EC-DS1-1201, select the app file and crc file 
      in the CODESYS/CPS-PCS341EC/bin folder.

If you only want to update the HMI, you can follow the procedure below.
   1. From the menu, select [Monitoring Edit] to switch to the HMI screen.
   2. Select [File] → [Open from local disk] from the menu bar 
      to load "TemperatureMonitor.page" (HMI/TemperatureMonitor.page).
   3. Select [File] → [Save page] from the menu bar. 
      Please overwrite and save to [page1.page] in the user folder of the save location.
   4. Select [File] → [Save the settings to ROM] from the menu bar.
   5. Close the HMI screen.


- Sample Screen Description
=========================
  - Display the temperature from channel 0 to 3.
  - The horizontal axis represents time and the vertical axis represents temperature.


- Version-up History
=========================
  Ver.1.00                      2022.08
  ----------------------------------------
  - First release
 