1tool Course EN
1tool Course EN
Version. 2.7
Welcome!
Trainers:
Trainees:
Introduction
Setup 1tool
Licence management (SW/HW)
How to create, edit, test, upload a project into a pCO
Overview of 1tool components
Special functions/features
Overview of special functions: virtual keys, alarms, define the key function, images, multilanguage, etc.
Programming languages
Project management
At the end of the training you will have made a simple application for a simple AC unit.
You will be able to create a new application and open/modify already made ones.
For you is more important to remember that certain functions are available rather than
to remember HOW to use them: for this there are the slides, the user manual,
No details regarding:
1tool
Programming tool
for all programmable controllers/terminals of pCO sistema
PGDtouch
Graphic/TouchScreen
pCO5
pCO5+
pCO compact
pCO1
pCOC
Semi-Graphic
Supernode
pCOXS
Graphic/TouchScreen
PGD1
pCO3
pCO2
PGD3
PGD0
Semi-Graphic
Miscellaneous information
Schedule:
Rules
1. If the explanation is not clear or if you have
questions or curiosity feel free to ask
2. If the exercise is unclear, ask immediately
to repeat
3. If you are too in late with exercise ask help
(max 5 min)
???
HE
LP
Topics 1/7
Topics 2/7
Topics 3/7
10
Topics 4/7
Topics 5/7
Topics 6/7
Topics 7/7
Project documentation
Menu File/Create solution documentation
Setup
1.
Start Windows
Login as Administrator
2.
3.
4.
Click 1tool_setup.exe
5.
6.
7.
License 1/2
Software:
Hardware:
16
License 2/2
Hardware license activation procedure:
1.
2.
3.
Start 1tool
4.
5.
6.
7.
8.
9.
10.
11.
Enter the Serial Number (12 chars string on the holographic label)
and paste the License Code
12.
13.
14.
Press the Activate Key: The license key is installed permanently in the dongle
17
1tool components/editors
Solution Explorer
Mask Editor
Network Editor
Simulator
Simulation on the PC
Upload of application files into the controller, definition of Logs, commissioning/test functions
Migration Wizard
18
D.Out N.1
Cooling
20.0
(Setpoint)
Room_Temp
A.In. N.1
Type 0 (NTC)
1.0
19
D.Out N.1
Cooling
Room_Temp
20.0
(Setpoint)
A.In. N.1
Type 0 (NTC)
1.0
3.0
20
A.Out N.1
Heating_Valve
Cooling_Valve
D.Out N.2
D.Out N.1
Heating
Cooling
Room_Temp
Setpoint
(20.0)
A.In. N.1
Type 0 (NTC)
21
(slide)
Backup
22
Upload
1.Connect PC to device using the USB/RS485 converter
2.Compile the project successfully, then click the button
(pCO Manager)
3. Set the
pCO address
and
PortNumber
of your converter,
and click
button Connect
in the toolbar.
23
Variables
Analog pin
Integer pin
(main types)
Memory Types
ID letter
permanenT (flash).
Variable Wizard
The properties are divided into categories (General Data is the most important)
These are properties that are provided to those who must communicate with
the program (Commissioning, BMS, project documentation, etc.)
Often the value of a property influences the value/visibility of other
Allowed characters: AZ 09 _
Case non sensitive
Simple description
(multilanguage, see on the right)
25
Variable List
Custom filter
Right-click title bar to select visible
properties and order
Filter by User/System/Module,
Datatype, MemoryType, etc
F12 to export variables (XLS)
26
Unconnected pin
If the pin is unconnected:
Input pins will take the default value as the pin was connected to a constant
Output pins will take a temporary variable automatically.
They are equivalent
27
Loop of masks
(Mask)
(Global)
Standard/Special Field
How
What
Virtual keys
0
the value of a variables: Its necessary a virtual key.
The virtual key is pressed when the variables changes from 0 to 1.
How to manage a virtual key:
1. Manage the variable that assumes the value 1
when the virtual key has to be pressed
2.
3.
Exercise: Show the main mask after 60s of inactivity of the keyboard
31
Note :
You cant place two blocks with the same number in the same page.
You can use Jump_Start and Jump_End blocks to skip
some blocks during the execution.
32
1tool provides a set of system variables for turning the buzzer ON/OFF
(MAN_BUZZER_EN, MAN_BUZZER_ON, MAN_BUZZER_OFF)
Built-in standard management of alarms provides:
to switch the buzzer ON as soon as an alarm starts (Alarm status 01)
to manage the alarm memory variable (Alarm memory)
a set of system variables:
BUZZER
GLOBAL_ALARM
0: buzzer OFF
1: buzzer ON
0: no alarm memories
1: at least 1 alarm memory (logical OR of mAL)
RESET_BUZZER
RESET_ALARMS
AL
mAL
33
is pressed:
then
1tool language
if(SysVarList.GLOBAL_ALARM==0)
{
Goto_mask(No_Alarms);
}
if(SysVarList.GLOBAL_ALARM==1 &&
SysVarList.BUZZER==1)
{
SysVarList.RESET_BUZZER=1;
Goto_loop(Loop_Alarms);
}
No alarms
if(SysVarList.GLOBAL_ALARM==1 &&
SysVarList.BUZZER==0)
{
SysVarList.RESET_ALARMS=1;
Goto_loop(Loop_Main);
}
34
Download: NO
Download: YES
35
Exercise 15 - Alarms
AL_HT = 0
AL_LT = 1
AL_HT = 0
AL_LT = 0
Heating
AL_HT = 1
AL_LT = 0
Cooling
Room_Temp
Setpoint
(20.0)
A.In. N.1
Type 0 (NTC)
(High temp. Limit) 30.0
36
Exercise 15 - Alarms
AL_HT = 0
AL_LT = 1
AL_HT = 0
AL_LT = 0
Heating
1.0
15.0 (Low temp. limit)
AL_HT = 1
AL_LT = 0
Cooling
Setpoint
(20.0)
Room_Temp
1.0
A.In. N.1
Type 0 (NTC)
37
38
ST block
OWNER:
CAREL
Current project
User
Library management:
Note
40
Macroblocks
How to create a macroblock:
1. Create a temporary New project,
Module/Macroblock type
2. Delete the Terminal node
(macroblocks dont contain mask)
3.
4.
5.
6.
7.
Modules (1/4)
Linked:
- The masks mantain the link with the instance of the block.
- If the block is deleted its masks are deleted too
- It is possible only to add TEXT/IMAGES/ANIM/LINE/RECT, move masks
- If module masks in the LIB change, the module masks in the appl. are automatically
updated
Imported:
- The masks are imported and become project masks
- It is possible to do any kind of modification
- If module masks in the LIB change, the module masks in the appl. are NOT updated
Strategy only:
- The mask are not inserted
42
Modules (2/3)
MODULE
APPLICATION
Module masks are places in the application in the loop with the same name
The position depends on the MaskDefaultPosition property.
43
Modules (3/4)
Both module and application can be designed for several terminals and languages
The masks are inserted in the
original loop according to the
property MaskDefaultPosition:
Default, First mask, Last mask
ModuleApplication
Module
Module
Application
ActiononTERMINAL
PGD1
PGD1
Masks inserted
Masks ignored
PGD0
PGD3
Application
ActiononLANGUAGES
EN
EN
Masks inserted
IT
IT
Masks inserted
Masks ignored
DE
First
First
Default
Default
Last
First
No masks inserted
Module
FR
Application
Masks inserted(only
Default
Last
Imported)
System asks which lang. to use
44
Modules (4/4)
Notes
Auto connection
A module cant contain modules (with masks) but only atoms/macroblocks. The masks
are ignored.
Simulator 1/2
Terminal Editor simulates the LED under keys. Buzzer is not simulated
46
Simulator 2/2
Simulation control
Connectivity (pCO3)
48
1.
2.
3.
4.
Terminal configuration
pLAN units
pCO3/2/5/5+
LCD4x20
PGD0/1
pLAN
pCO1
pCOXS
PGD2/3
ARIA/PAD
pCOC
FCM
Supernode
pLAN/BMS - Examples
pLAN
1
2
1
3
2
pLAN
1
32 SH(1,2,3,4)
pLAN
32 SH(1,2) 1
BMS
2
32 SH(1,2)
BMS
pLAN
AirCon unit
AirCon unit
PR(1)
PR(3)
32
SH(1,3)
31
SH(1,3) 52
pLAN - Exercise
Address: 1
pCO*
COURSE project
Room_Temp
Address: 2
Address: 32
Terminal
pCO*
COURSE project SH(1,2)
Room_Temp
Terminal
configuration from
point of view of
TERMINAL
Terminal
configuration from
point of view of
PCO
53
2.
3.
For the Controller objects you have to specify the application project (***)
4.
For some Parametric pLAN the pLAN links are created automatically (see specific slide)
You can Copy/Paste links: select links, click Copy button, right-click destination controller, select Paste links
The Source unit of pasted links become the selected unit.
You can insert in a Network Page some graphic objects: Image (e.g. Roof map), Line, Rect, etc
(*) You can create several Network Page. Example: Ground_Floor, First _Floor, Roof
It is irrelevant the order of the pages
P01: Adr Priv/Shared
(**) It is irrelevant in which Network Page you insert the Controller, Terminal, Parametric pLAN Trm1 None -Trm2 None -(***) For the Terminal objects you can define a default configuration.
Trm3 None -- OK?No
It is installed at pCO start-up only if there are no terminals already configured,
that is Trm1/2/3=None.
54
pLAN-Terminal config.
Press
Display address
UP+DOWN+ENTER setting..........:32
to continue
Press
NetSTAT 1 8
9 16
UP+DOWN+ENTERT:32
Enter 17 24
To quit 25 32
contemporary
for 5+5 seconds
Controller address
Terminal 1/3 ADDRESS PR/SH
Terminal 2/3 ADDRESS PR/SH
Terminal 3/3 ADDRESS PR/SH
Units ONLINE
: Controller (pCOx, ARIA,
EEV driver, )
: Terminal (TEXT, PGD, LED)
: None
55
Controllers architectures
Point-to-Point (stand-alone)
(obsolete)
Only 1 controller (with or without built-in terminal)
Address must be 0
The PGD display in external terminals works in Text display compatibility mode:
1 fixed font (CAREL_TERM), 4rows/20columns, only single-height rows, no images
pLAN - Group
Group 1
Group 2
Group 3
Group 4
57
58
59
pLAN
}
}
..\SolutionName\Bin\Target\PLANn\address\
UNIT1-2 contain same files suitable for CHILLER units
UNIT3-4 contain same files suitable for AHU units
1tool
2.6.X
PointToPoint(Stand alone)
..\SolutionName\Bin\Target\ApplicationName
pLAN
..\SolutionName\Bin\Target\PLANn\Address_X_Y_NNN
contain files suitable for units address X and Y
running the application NNN
PlantWatch
HTTP
CAREL Local
PCgate
Analog
Conv.485/USB
max. 207
PlantVisor
DLL
GSM
(SMS)
CAREL Local
max. 15
HTTP / SNMP
WEBgate
CAREL Local
max. 15
ModBus
Gateway
CAREL Local
ModBus RTU
OPC
ModBus TCP/IP Konnex
BACnet MS/TP LonWorks
BACnet IP
HTTP/SNMP (email)
Analog
Serial card
CAREL Remote
GSM
(SMS)
62
Protocol
BMS
63
3.
4.
64
Carel protocol
Carel Slave
(Normal)
COM_PROTOCOL_BMS=1
BMS_EXTENSION=0
199 Digital variables
127 Analog variables
127 Integer variables
Carel Slave
(Extension)
COM_PROTOCOL_BMS=1
BMS_EXTENSION=1
207 Digital variables
207 Analog variables
207 Integer variables
ModBus protocol
ModBus Slave
(Normal)
ModBus Slave
(Extension)
COM_PROTOCOL_BMS=3
BMS_EXTENSION=0
COM_PROTOCOL_BMS=3
BMS_EXTENSION=1
ModBus Slave
Extended
COM_PROTOCOL_BMS=30
BMS_EXTENSION=ignored
2048 Digital variables
5000 Analog variables
5000 Integer variables
The CAREL/MODBUS slave protocols are available for all serial ports:
BMS, BMS2, FIELDBUS,FIELDBUS2
65
MODBUS
MODBUS
CAREL
1
+1
+1
+1
n
1
+1
+1+offset
+1+offset
Digital
Analog
Coils
Registers
n
1
Integer
n
Registers
66
COM_PROTOCOL_BMS = 30,
ModBus Slave Extended
BMS_EXTENSION = 0
BMS_EXTENSION = 1
BMS_EXTENSION ignored
Offset = 128
Offset = 208
Offset = 5001
Carel
protocol
ModBus
protocol
Carel
protocol
ModBus
protocol
Carel
protocol
ModBus
protocol
Digital
199
Coil
200
Digital
207
Coil
208
Digital
2048
(*)
Coil
2049
Analog
127
Register
(Analog)
128
Analog
207
Register
(Analog)
208
Analog
5000
(*)
Register
(Analog)
5001
Integer
127
Register
(Integer)
130
256
Integer
207
Register
(Integer)
210
416
Integer
5000
(*)
Register
(Integer)
5003
10002
(*) Addresses > 207 are available only if ModBus Slave Extended protocol is set.
67
Other protocols
To communicate with protocols different by
CAREL / MODBUS, you must select the
"CAREL Slave Local protocol.
Some further action is required in the application
or configuration files.
Examples:
CAREL Slave Remote: phone number,
CAREL Slave
CAREL Master
LON, Trend,
Konnex , CANbus,
BACnet, Ethernet,
68
Images
How to insert an image?
Drag & Drop
Image object
Format: standard BMP, black&white (monocrome)
Editor: your preferred one (Paint, Paint.net, Photoshop, CorelDraw, )
Max size: PGD0: 120x32, PGD1: 132x64 (1 character: 6x8 pixel)
Images must be in the Resources node
Create a new image
Import (es. [1tool]\ImageLibrary\PGD)
Images are saves in the .GRT (see pCOload)
Overlap Text & Image reverse effect
ResourceUsedOnBool/Int with images
69
Why to install default values? Because at compile time the variables could change
its position (address) in the memory so they could take another value.
Previous
version
T-permanent
memory
Current
version
Setpoint = 0.0
Setpoint = 20.0
0
0
Setpoint
Unit_Status = 200
Setpoint
GENERAL RULE: every
time you200installUnit_Status
a new version it is recommended to install
the default values. It is not necessary0 if you dont change the list of the variables.
0
To fix the position of the variable in the memori you can use the "Maintain
Variable Address" compile flag, but is has limitations.
70
71
In the DVD you can find the complete document. The most important keypoints are:
Project management
Start to develop only once the technical specification have been clarified and agreed by the customer
Make a Backup on a server for each official version. Make daily backup (1tool provides a specific function)
Start to develop starting from a standard application (Project Template, Chiller Core or other standard
application)
Define the architecture of the SW with a TOP > DOWN approach, then develop/test with DOWN > TOP
approach
Strategy pages: create one or more pages for each function / device
Mask pages: idem (create the loops and define the key function, then populate loops and define mask content)
Strategy
Write comments
Think simple! Avoid tricks, ask yourself if you can do better and easier.
Take care of any possible anomalous working condition (i.e. unit offline, )
Mask
Use a consistent style in all masks (align text on the left and field on the right, first letter of the sentence in 74
32KB
BIOS
Operating system
T memory+reserved
Permanent memory
32KB
Application files
IUP+BLB/BIN+GRP
75
Next steps
1) Buy the Starter Kit (see next slide)
2) Study Language Reference:
atoms/macroblocks/modules, System Variables, KFE statements
3) Study Slide/QuickReference
4) Make practice:
Create a simple project or modify a standard project
5) Need help?
Support
)
76
Starter kit
Description
(Software or Hardware)
Simulator box
(at least 2 pcs for pLAN applications)
PGD0/1 terminal
USB/RS485 converters
(small/big connector)
Ask your sales office for other product (simulator for other pCO, other serial cards, etc)
77
Standard applications
Standard application 1tool
FLCORMCH0E: Chiller Core (this is not a standard but it was meant as template for a custom chiller/hp)
FLSTDMAHUE: Air Handling Unit
FLSTDMHPGE: Heat Pump
FLSTDMCZ0E: pLAN AC+EVD400 driver+integr.humidifier
Standard application EasyTools (need to be migrated)
Chiller/HP, CCU, RoofTop,Seasoning Room, Rack controller,
(See complete list in KSA)
Project Template: starting point for a generic application
Demo application for field device and features (EVD, Belimo,
PowerPlus, ModbusMaster, )
Source file & more Info: ask 1tool Customer Care
78
1tool support
E-mail: [email protected]
(only issues regarding 1tool program
Provides Technical support (i.e. problem during compilation, not
Application support (i.e. how to implement defrost)
Other: [email protected], [email protected])
79
The end
Thank you for your attention,
if you have any question please feel free to ask
80