COMFILE CUTOUCH CT1820 User manual

An LCD Touch Screen with an
Integrated BASIC & Ladder Logic Controller
CUTOUCH
CT1820
Last Updated 2015 06 08
www.ComfileTech.com
Comfile Technology, Inc CT1820 User's Manual 1 Of 93

Introduction
The CT1820 is the latest, next generation CUTOUCH improving upon the previously released CT1721C.
It is comprised of a built in CB400 Cubloc core module, a GHB3224 graphical LCD and touch panel, and
includes a wide variety of I/O capabilities.
The following shows the how the CT1820 compares to the CT1721C.
1. The LCD is the same.
2. The program memory has been increased: 80KB 200KB
3. The data memory has been reduced: 28KB 7KB
4. FRAM non volatile memory has been added: 32KB
5. The number of communication ports have been increased: 1 to 3
6. I/O can be extended with Comfile Technology's MODPORT (Field I/O)
7. The enclosure is rated waterproof IP65.
CT1721C CT1820
Program Memory 80KB 200KB
Data Memory 28KB 7KB
FRAM (Non volatile Memory) None 32KB
Communication Ports 1 3
Total I/O Count 82 50
MODPORT Connectivity Not Supported Supported
CT1721C Backward Compatibility
CT2721C code is not portable to the CT1820.
Comfile Technology, Inc CT1820 User's Manual 2 Of 93

Table of Contents
Introduction...........................................................................................................................2
Chapter 1 Overview.....................................................................................................................4
Product Comparison................................................................................................................5
CUTOUCH Overview................................................................................................................6
The CT1820's Appearance........................................................................................................7
CUBLOC STUDIO...................................................................................................................10
Downloading Programs to the CT1820.....................................................................................11
Download and Execution........................................................................................................13
Firmware Download..............................................................................................................14
CT1820 Start Pack...............................................................................................................15
Chapter 2 I/O............................................................................................................................16
The CT1820's I/O Ports..........................................................................................................17
PWM Output.........................................................................................................................20
CT1820's I/O Port Electrical Specifications................................................................................23
Interfacing to Proximity Sensors.............................................................................................24
CT18XX Series' Relays & Registers..........................................................................................26
Chapter 3 Command Reference...................................................................................................27
CT1820 Analog Input............................................................................................................28
CT1820's Non volatile FRAM...................................................................................................29
Real Time Clock....................................................................................................................30
Beep (Sound).......................................................................................................................33
RS 232/485 Communication...................................................................................................34
LCD Contrast Adjustment.......................................................................................................35
Chapter 4 Touch Input................................................................................................................36
Menu System Library.............................................................................................................37
Menu Commands..................................................................................................................37
Processing Touch Input..........................................................................................................42
Touch Calibration..................................................................................................................44
Setting the RTC's Date and Time.............................................................................................46
Chapter 5 ModPort I/O Expansion................................................................................................47
Using the CT2820 with the Modport.........................................................................................48
Modport Function Library.......................................................................................................49
Modport Test Program...........................................................................................................54
Chapter 6 Sample Programs........................................................................................................56
Sample 1.............................................................................................................................57
Sample 2.............................................................................................................................58
Sample 3.............................................................................................................................59
Sample 4: Numeric Input.......................................................................................................60
Sample 5: CuCanvas.............................................................................................................62
Sample 6: Multi page Menu Implementation.............................................................................67
Sample 7: Contrast Adjustment..............................................................................................72
Sample 8: RTC Adjustment....................................................................................................74
Sample 9: Input Status Monitor..............................................................................................78
Sample 10: Digital Output Control...........................................................................................79
Chapter 7 Panel Mounting...........................................................................................................82
Dimensions..........................................................................................................................83
Panel Cutout.........................................................................................................................84
Panel Mounting Procedure......................................................................................................85
Comfile Technology, Inc CT1820 User's Manual 3 Of 93

Chapter 1
Overview
Comfile Technology, Inc CT1820 User's Manual 4 Of 93

Product Comparison
CT1721C CT1820
(New in 2013)
LCD Screen 5.7" Monochrome 5.7" Monochrome
Graphics Engine GHB3224C GHB3224C
Core Module CB290 CB400
Program Memory 80KB 200KB
Data Memory 28KB 7KB
Inputs 32 (24VDC) 22 (24VDC)
Outputs 32 (NPN TR) 20 (NPN TR)
Analog Inputs 8 8
High Speed Counter 2 None
PWM 6 3
External Interrupts 4 None
Total 82 50
Front Panel (IP65 Rating) No Yes
Download Cable DSUB 9 PIN 3 PIN
Battery Backup Yes No (Use FRAM Instead)
RTC and RTC Battery Built in Built in
The CT1820 does not contain a backup battery for the data memory. To retain data between power
cycles, please use the FRAM non volatile memory instead.
Comfile Technology, Inc CT1820 User's Manual 5 Of 93

CUTOUCH Overview
The Cutouch is a Cubloc Core with an integrated LCD and Touchscreen. It can be programmed to draw
graphics (lines, circle, etc...) on the LCD and to read the coordinates of touch inputs from a user.
The Cutouch provides a new approach to employing a touchscreen and PLC in the automation field. The
cost of a separate touchscreen, LCD, and PLC can be significant, but the Cutouch provides and
integrated solution at a relatively low cost..
Futhermore, the Cutouc is programmed is BASIC, a language that is quite easy to learn and use.
Comfile Technology, Inc CT1820 User's Manual 6 Of 93

The CT1820's Appearance
Comfile Technology, Inc CT1820 User's Manual 7 Of 93

Comfile Technology, Inc CT1820 User's Manual 8 Of 93

Comfile Technology, Inc CT1820 User's Manual 9 Of 93

CUB OC STUDIO
Cubloc Studio is the Integrated Development Environment used to program the CT1820 in both BASIC
and Ladder Logic. It is a free download available from www.ComfileTech.com.
* To program the CT1820, be sure to #include "CT18XX" at the top of the source file.
Comfile Technology, Inc CT1820 User's Manual 10 Of 93

Downloading Programs to the CT1820
After authoring and compiling source code using Cubloc Studio, it can be downloaded to the CT1820 via
the host PC's RS 232 serial port for execution. Once the program is downloaded to the CT1820, it will
remain in in the CT1820's read only memory even between power cycles. First, the CT1820's download
cable must be used to connect the CT1820 to the host PC.
CT1820 Download Cable CT1721C Download Cable
The download cable is not included as only one is needed to download to many devices. Please be sure
to add a download cable to your first purchase. The host PC end of of the download cable is a DB 9
female connector and the CT1820 end is a 3 pin Molex SPOXTM 5268 female connector.
If the host PC does not have any built in RS 232 serial ports, a USB to serial adapter can be used.
Comfile Technology, Inc CT1820 User's Manual 11 Of 93

Comfile Technology, Inc CT1820 User's Manual 12 Of 93

After the host PC is connected to the CT1820 via the download cable, open Cubloc Studio and choose
"Setup" "PC int→erface setup..." from the menu.
Select the host PC's serial port (Com Port) that is connected to the CT1820.
Comfile Technology, Inc CT1820 User's Manual 13 Of 93

Download and Execution
In Cubloc Studio, choosing "Run" from the menu (or typing CTRL R) will compile and download the
currently open program to the CT1820.
Once a program is compiled and downloaded to the CT1820, it cannot be retrieved and decompiled back
into source code form.
Comfile Technology, Inc CT1820 User's Manual 14 Of 93
Clicking this icon will save the source code,
compile, and initiate downloading

Firmware Download
If downloading does not go well, it may be helpful to download the firmware.
Downloading the firmware will restore the CT1820 to its default factory state. All user programs will be
lost.
The firmware is essentially the CT1820's operating system. At the time of manufacturing, the latest
available firmware is downloaded to the CT1820.
If new firmware is released, a new version of Cubloc Studio will also be released. When downloading
with the latest version of Cubloc Studio, a prompt may appear to update the CT1820's firmware.
Comfile Technology, Inc CT1820 User's Manual 15 Of 93

CT1820 Start Pack
The CT1820 Start Pack is recommended for initial CT1820 purchases. It contains all the necessary
accessories to take full advantage of the CT1820's features.
Comfile Technology, Inc CT1820 User's Manual 16 Of 93

Comfile Technology, Inc CT1820 User's Manual 17 Of 93

Contents: CT1820, 3 pin download cable, 1 meter 40 pin connection cable, 40 pin terminal block.
NOTE: The CT1820 Start Pack does not include a USB to serial adapter/cable. If your host PC does not
have a built in RS 232 serial port, you may need to buy a USB to serial adapter/cable separately.
Comfile Technology, Inc CT1820 User's Manual 18 Of 93

Chapter 2
I/O
Comfile Technology, Inc CT1820 User's Manual 19 Of 93

The CT1820's I/O Ports
The following image shows the location of the various I/O ports on the back and side of the CT1820.
Please use a 24VDC power supply (20~25VDC) and pay careful attention to the polarity.
Power consumption of the CT1820 with no I/O load is approximately 3 watts.
*Please do not attempt to disassemble the the CT1820, as it can res lt in nintentional
damage to the the LCD and other components. Prod cts that have been tampered with will
not receive warranty or service benefits.
Comfile Technology, Inc CT1820 User's Manual 20 Of 93
Table of contents
Popular Touchscreen manuals by other brands

Vivitek
Vivitek NovoTouch LK9810i user manual

InTouch
InTouch KIO420L user manual

URC
URC Total Control TDC-7100 owner's manual

Elo TouchSystems
Elo TouchSystems 1939L user guide

Universal Remote Control
Universal Remote Control TOTAL CONTROL TKP-7500 owner's manual

Bridgetek
Bridgetek LDSBus BRT AN 080 user guide

Elo TouchSystems
Elo TouchSystems 1938L user guide

Carrier
Carrier equipment touch Installation and setup guide

NETGEAR
NETGEAR HSS101 user manual

Tyco Electronics
Tyco Electronics Elo Entuitive Touchmonitor ET1925L Series user guide

Elo TouchSystems
Elo TouchSystems 1739L user guide

Xinje
Xinje TH465-M user manual