HIQUEL SLS-500 Master Controller Software Manual

SLS
SLS----500
SLSSLS
Master Controller
Master Controller
Master ControllerMaster Controller
Graphical programing with
SLS-500-Configurator
500
500500
SLS-500 Master Controller
Software manual
www.hiquel.com
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
Herbert Weiß, Helmut Maurer:
SLS-500 Master Controller – User Manual Version: 4.03 Great care has been taken in the creation of the text,
illustrations and program examples in this manual. Neither HIQUEL, there authors nor their interpreters may be held responsible for any errors herein, nor can they be held responsible or liable for cons equences arising from any errors herein.
This manual is subject to copyright law. All rights are reserved. This manual may not be copied in part or whole in any form
including electronic media without the written consent of Hiquel. Neither may it be transferred in any other language suitable for machines or data processing facilities. Also rights for reproduction through lecture, radio or television transmission are reserved.
Hiquel copyrights this documentation and the accompanying software.
Copyright 2002-2004 by HIQUEL GmbH
www.hiquel.com 2
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
Attention! You are handling
dangerous electrical current!
Disconnect the supply voltage before making any wiring modifications.  Ensure that the system cannot be switched on accidentally.  Ensure that the device and its surroundings are potential free.  Please refer to the specific installation and mounting instructions.  Qualified personal only should handle the device.  The device has to be mounted in such a way that no unintentional
operation may occur.
All control and supply voltage wiring must be routed so that no
inductive or capacitive interferenc e or any other severe electric al noise disturbance may interfere with the device.
Supply voltage variation must not exceed the specifications in the
technical details. If so, proper performance of the device cannot be guaranteed.
Emergency installations according to EN60204/IEC204 (VDE0113)
must remain active in all modes of the automated installation. Activation of the emergency installation must not cause an uncontrolled or undefined start cycle.
The software engineer has to make sure, that no failure func tions of
the automated installation may occur when line faults or core faults arise.
Notwithstanding the above, local regulations must be observed in all
installations.
www.hiquel.com 3
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

Content

ATTENTION! YOU ARE HANDLING DANGEROUS ELECTRICAL
CURRENT!.................................................................................................3
CONTENT..................................................................................................4
SLS-500 MASTER CONTROLLER.........................................................14
PREFACE ................................................................................................15
SYSTEM REQUIREMENTS.....................................................................16
CREATE NEW PROJECT .......................................................................17
Start PowerPoint..........................................................................17
Open SLS-500-Configurator sample...........................................17
Save new project.........................................................................18
Start presentation (press F5).......................................................19
SLS-500-Configurator does not respond.....................................20
SLS-500-Configurator responds successfully.............................20
IMPORTANT ADVICE.................................................................21
CONFIGURATION...................................................................................22
Configuration page......................................................................22
Add objects..................................................................................23
Delete objects..............................................................................24
Program object priority ................................................................25
Define in/outputs..........................................................................25
PROJECT.................................................................................................26
Project:Info ..................................................................................26
Project:Import..............................................................................27
Project: Update I/Os....................................................................28
PAGES.....................................................................................................29
Page: Zoom all ............................................................................29
www.hiquel.com 4
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
Page: Zoom 100%.......................................................................29
Page: Zoom 75%.........................................................................29
Page: Zoom 60%.........................................................................29
Page: New...................................................................................29
Page: Del.....................................................................................30
Page: Copy..................................................................................31
Page: Ignore................................................................................31
Page: Go to .................................................................................32
Page: Execute.............................................................................33
PAGE EXECUTION .................................................................................34
Standard page.............................................................................34
Page/Execute/every 1ms.............................................................36
Page/Execute/every 10ms...........................................................36
Page/Execute/every 100ms.........................................................36
Page/Execute/clock every second...............................................37
Page/Execute/clock every minute ...............................................37
Page/Execute/clock every hour...................................................37
Page/Execute/clock every day ....................................................38
Page/Execute/clock every Week.................................................38
Page/Execute/clock every Month................................................38
Page/Execute/clock every Year...................................................39
Page/Execute/only for initialisation..............................................39
Page/Execute/on binary memory ................................................39
Page/Execute/on analogue memory ...........................................40
CONNECTIONS.......................................................................................41
Creation.......................................................................................41
Mind the direction of the arrow....................................................41
Create connections......................................................................42
Change the style of the line.........................................................43
DATA TYPES OF SLS-500-CONFIGURATOR .......................................44
www.hiquel.com 5
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
Bit data ........................................................................................44
Analogue data .............................................................................44
Text data......................................................................................44
CONSTANTS OF SLS-500-CONFIGURATOR .......................................45
Binary constants..........................................................................45
Analogue constants.....................................................................47
Text constants.............................................................................49
SPECIAL FLAGS .....................................................................................51
Special flag: START....................................................................51
Special flag: every 1ms ...............................................................51
Special flag: every 10ms .............................................................52
Special flag: every 100ms ...........................................................52
Special flag: Clock every second.................................................52
Special flag: Clock every minute .................................................53
Special flag: Clock every hour.....................................................53
Special flag: Clock every day.......................................................53
Special flag: Clock every week....................................................53
Special flag: Clock every month..................................................54
Special flag: Clock every year.....................................................54
MEMORIES..............................................................................................55
Bit memory ..................................................................................56
SET bit memory...........................................................................56
RESET bit memory......................................................................56
TOGGLE bit memory...................................................................57
Analogue memory .......................................................................58
IF rising edge SET analogue memory.........................................59
IF falling edge SET analogue memory........................................60
IF both edges SET analogue memory.........................................60
IF permanent high SET analogue memory .................................60
IF permanent low SET analogue memory...................................61
www.hiquel.com 6
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
Text memory ...............................................................................61
IF rising edge SET text memory..................................................62
IF falling edge SET text memory.................................................62
IF both edges SET text memory..................................................63
IF permanent high SET text memory ..........................................63
IF permanent low SET text memory............................................63
BINARY OPERATORS ............................................................................65
Binary operator: Binary AND.......................................................65
Binary operator: Binary OR..........................................................66
Binary operator: Binary EXCLUSIVE OR ....................................67
Binary operator: Binary NEGATION............................................68
Binary operator: Rising edge.......................................................68
Binary operator: falling edge........................................................69
Binary operator: Both edges........................................................69
Binary operator: Split...................................................................70
ANALOGUE OPERATORS......................................................................71
Analogue operator: Addition........................................................71
Analogue operator: Subtraction...................................................72
Analogue operator: Multiplication ................................................73
Analogue operator: Division ........................................................73
Analogue operator: Modulo (read part of a value)................74
Analogue operator: Shift left........................................................75
Analogue operator: Shift right......................................................75
Analogue operator: Greater than.................................................76
Analogue operator: Greater or equal...........................................77
Analogue operator: Equal............................................................77
Analogue operator: Not equal......................................................78
Analogue operator: Less or equal ...............................................79
Analogue operator: Less .............................................................79
www.hiquel.com 7
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
Analogue operator: Logical AND.................................................80
Analogue operator: Logical OR...................................................81
Analogue operator: Logical NOT.................................................81
Analogue operator: Split..............................................................82
TEXT OPERATORS ................................................................................83
Text operator: Combine text........................................................83
Text operator: Greater.................................................................84
Text operator: Greater or equal...................................................84
Text operator: Equal....................................................................85
Text operator: Not equal..............................................................85
Text operator: Less or equal .......................................................86
Text operator: Less .....................................................................87
Text operator: Split......................................................................87
Text operator: Sub String ............................................................88
Text operator: Left String.............................................................89
Text operator: Right String ..........................................................90
Text operator: String Length........................................................91
COUNTER................................................................................................92
Counter: Count Up.......................................................................92
Counter: Count Down..................................................................93
Counter: Count Set......................................................................94
Counter: Count up with limit ........................................................95
Counter: Count down with limit....................................................96
CONVERSION.........................................................................................98
Conversion: Binary->Analogue....................................................98
Conversion: Analogue->Binary....................................................99
Conversion: Analogue Scale.....................................................101
Conversion: Text->Analogue.....................................................102
Conversion: Analogue->Text.....................................................104
Format characters .....................................................................105
www.hiquel.com 8
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
STATES .................................................................................................106
State: Select alternative function state......................................106
Analogue state frame ................................................................107
Binary state................................................................................108
Example: STATE - Select alternative function ..........................109
COMMENTS ..........................................................................................110
Insert comment..........................................................................110
SYMBOLIC GROUPS............................................................................111
Create symbolic groups.............................................................111
SYSTEM MEMORY ...............................................................................112
System: Binary memory ............................................................113
System: IF input is One SET binary memory ............................113
System: IF input is One DELETE binary memory .....................113
System: IF input is One INVERT binary memory......................114
System: Analog memory ...........................................................115
System: Text memory...............................................................115
System: System variable table..................................................116
INCREMENTAL ENCODER...................................................................117
The Incremental Encoder..........................................................117
Programming an incremental encoder......................................118
I/O...........................................................................................................120
I/O: Digital Inputs.......................................................................120
I/O: Digital Outputs....................................................................121
I/O: Analogue Inputs..................................................................123
I/O: Analogue Outputs...............................................................124
I/O: Potentiometer .....................................................................126
GROUPS................................................................................................128
Export groups............................................................................128
Import groups ............................................................................129
Delete groups............................................................................129
www.hiquel.com 9
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
Adjust controller.........................................................................130
The PID – Controller..................................................................131
Transmission-function of a PID – controller ..............................131
OBJECTS...............................................................................................133
Objects: Timer...........................................................................133
Objects: Timer: ON delay..........................................................135
Objects: Timer: OFF delay ........................................................135
Objects: Timer: ON OFF delay..................................................135
Objects: Timer: ON pulse..........................................................136
Objects: Timer: OFF pulse........................................................136
Objects: Timer: ON OFF pulse..................................................136
Objects: Timer: Recycler high first ............................................137
Objects: Timer: Recycler low first..............................................137
Objects: Timer: Delay................................................................137
REAL TIME CLOCK...............................................................................138
Objects: clock: Exact time.........................................................138
Objects: clock: Time period.......................................................139
Objects: clock: Exact date.........................................................139
Objects: clock: Date period .......................................................139
Objects: clock: Exact date&time................................................140
Objects: clock: Date&time period..............................................140
Objects: clock: Exact Weekday.................................................141
Objects: clock: Weekday period................................................141
Objects: clock: Exact Week ......................................................141
Objects: clock: Week Period .....................................................142
Objects: clock: Analogue: Time.................................................142
Objects: clock: Analogue: Date .................................................143
Objects: clock: Analogue: Day of Week....................................143
Objects: clock: Analogue: Week of year...................................143
Objects: clock: Text: Time.........................................................144
www.hiquel.com 10
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
Objects: clock: Text: Date .........................................................144
Objects: clock: Text: Date&Time...............................................144
Objects: clock: Text: Day of Week ............................................145
Objects: clock: Text: Week of year ...........................................145
CAN OBJECTS (CANBUS)....................................................................146
Objects: CAN Message In.........................................................146
Objects: CAN Value In...............................................................147
Objects: CAN Text In.................................................................147
Objects: Receive FULL CAN Message .....................................148
Objects: CAN Message Out ......................................................148
Objects: CAN Value Out............................................................149
Objects: CAN Text Out..............................................................149
Objects: Send FULL CAN message..........................................150
SIO FUNCTIONS (SERIAL INPUT/OUTPUT).......................................151
Objects: SIO: Send Text............................................................151
Objects: SIO: Send Byte............................................................152
Objects: SIO: Send Word..........................................................152
Objects: SIO: Send DWord .......................................................152
Objects: SIO: Receive Byte.......................................................153
Objects: SIO: Receive Text.......................................................153
TERMINAL FUNCTIONS (MMI).............................................................154
Objects: Terminal: Show Message............................................154
Objects: Terminal: Show Value.................................................156
Objects: Terminal: Show Text...................................................157
Objects: Terminal: Edit Text......................................................158
Objects: Terminal: Edit Value....................................................160
Objects: Terminal: Menu ...........................................................162
Objects: Terminal: Select item ..................................................164
Objects: Terminal: Update Value ..............................................166
Objects: Terminal: Update Text ................................................167
www.hiquel.com 11
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
Objects: Terminal: Key pressed ................................................167
MEMORY CARD....................................................................................169
Objects: MemoryCard: Read Value into SLS500 memory........169
Objects: MemoryCard: Read Text into SLS500 memory..........170
Objects: MemoryCard: Write Value to card...............................170
Objects: MemoryCard: Write Text to card.................................171
Objects: MemoryCard: Read Value from card ..........................171
Objects: MemoryCard: Read Text from card ............................172
Objects: MemoryCard: Write Analogue Value...........................172
Objects: MemoryCard: Write Text Value...................................173
SMS........................................................................................................174
Objekte: SMS: Start new short message ..................................174
Objects: SMS: Add Text to short message ...............................175
Objects: SMS: Send short message via GSM...........................175
Objects: SMS: Call Phone.........................................................176
Objects: SMS: Short message received....................................176
Objects: SMS: Check short message Text ...............................177
Objects: SMS: Skip short message blanks ...............................177
Objects: SMS: Get short message Analogue Value..................178
Objekte: SMS: Get short message Text....................................179
DEBUG...................................................................................................180
Debug: Add Symbols.................................................................180
Debug: Add Monitor...................................................................181
Debug: Monitor Binary Memory.................................................181
Debug: Monitor Analogue Memory............................................182
Debug: Monitor Text Memory....................................................182
Debug: Set Breakpoint ..............................................................182
Debug: Delete Breakpoint .........................................................183
Debug: Display System Information..........................................183
RUN........................................................................................................184
www.hiquel.com 12
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
Run: Compile.............................................................................184
Error during compilation ............................................................184
Compilation successful..............................................................185
Run: Simulate............................................................................185
Run: Download & Run...............................................................186
Run: Start ..................................................................................186
Run: Stop...................................................................................186
Run: Erase.................................................................................186
Run: Show.................................................................................186
Read/write binary memory.........................................................190
Read/write analogue memory....................................................190
Read/write text memory.............................................................190
SPS not found ...........................................................................191
Choose serial port .....................................................................191
Online Data exchange...............................................................194
Memory read/write.....................................................................194
SIMULATOR ..........................................................................................195
Start simulation..........................................................................195
Simulation: Binary Memory........................................................196
Simulation: Analogue Memory...................................................197
Simulation: Text Memory...........................................................198
Simulation: Logging...................................................................199
Close Simulator.........................................................................200
Continue Simulator....................................................................200
Exit Simulator ............................................................................200
CONTACT..............................................................................................201
www.hiquel.com 13
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
SLS-500 Master Controller
Safety precautions
Danger to life through electrical c urrent!
Only skilled personal trained in electro-engineering should perform the des cribed steps in the following chapters. Please observe the country specific rules and standards. Do not perform any electrical work while the device is connected to power.
Pay attention to following rules
Switch off the automated installation. Disable any automatic restart system Electrically isolate the installation Cover any non-isolated areas
www.hiquel.com 14
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

Preface

„Der Grund, warum die Menschen ihre Dienste zum Geschenk m achen, ist der Wunsch, etwas zu tun, was – vielleicht im Gegensatz zu ihrer täglichen Arbeit - wirklich zählt!“
Charles Trueheart
www.hiquel.com 15
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

System Requirements

System specification for SLS-500-Configurator: Your system must meet the following requirements to run SLS-
500-Configurator:
A free serial RS232 port (COM1 - COM8) A previously installed version of Microsoft PowerPoint
in version Office 2000 or Office XP
Processor: 90 - 166 Pentium  RAM: min. 16 MB (32 MB for Win NT)
opt. 64 MB (128 MB for Win NT)
Free memory: min. 20 MB
opt. 40 MB
®
www.hiquel.com 16
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

Create new project

SLS-500-Configurator requires Microsoft PowerPoint.

Start PowerPoint

To work with SLS-500-Configurator you have to start PowerPoint first. Then open the file SLS-500-
Configurator.ppt.

Open SLS-500-Configurator sample

Proceed as follows: After starting PowerPoint choose File/Open from the menu. Then choose the folder SLS-500­Configurator from the file dialogue. You will find the file SLS­500-Configurator.ppt.
Open the file. The following screen will be displayed.
www.hiquel.com 17
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

Save new project

Save the presentation under the project nam e of your choice in a file of your choice. To do these choose from the menu the entry file/save. The window shown below appears. Enter „My first project“ f or example and confirm the input by click ing the save command button.
www.hiquel.com 18
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

Start presentation (press F5)

In order to install the components necessary for SLS-500­Configurator you must start the presentation. Choose ‘Slide Show’/’View show’ from the menu options. Now the start page opens. Click in the black-bordered frame:
SLS-500-Configurator now installs all necessary components and confirms it has started with the following message:
www.hiquel.com 19
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

SLS-500-Configurator does not respond

If you have no response from SLS-500-Configurator after a half-minute, it is probably that your PowerPoint settings do not allow macros to run.
You can change this setting in the menu option ‘Tools’/’Macro’/’Security’. If you chose the security level high, no macros are car ried out. To activate the m acros you have to choose a security level of medium or low. If you choose medium PowerPoint will question while loading whether macros may become carried out or not.

SLS-500-Configurator responds successfully

Now you can see an additional menu bar on your PowerPoint screen, which includes all com ponents necessary to work with SLS-500-Configurator:
Now you can start with the program creation!
www.hiquel.com 20
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

IMP ORTANT ADVICE

Do not delete any objects of this PowerPoint presentation except those you have created yourself. If you do you will endanger the function of the SLS-500-Configurator program!!!
www.hiquel.com 21
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

Configuration

Before you can draw a program plan with SLS-500­Configurator you must define a current configuration of your SPS System. Choose menu option CONFIGURATION. The following configuration page appears:

Configuration page

Newer software may show additional modules Only the modules selected for your system m ust be physically
connected in order to guarantee the correct function of the program.
www.hiquel.com 22
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

Add objects

In order to add a new expansion module to the current configuration select the des ired module from the configuration page and click OK:
The following display shows a system with 1 x SLS-500 base m odule, 1 x Analogue I/O module and 1 x Term 4 MMI.
Every newly selected module will appear on the upper left of the page on top of the SLS500 base module graphic. You must drag and drop the module into the pos ition you require in order of priority within the program.
ADVICE: You can also adjust the communication speed of SLS-500
Master Control Modules. Choose Fast, Norm al and Slow in the Priority drop-down menu.
Fast: The module scans the system every 10ms. Normal: The module scans the system every 100ms. Slow: The module scans the system every second.
www.hiquel.com 23
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
When new module added:
after new position selected!

Delete objects

Select the desired module and delete it by pressing Del.
ADVICE: The module will only be deleted in the configuration page. Any
programmed object of the deleted module will not be deleted from your program! This will be detected when you attempt to compile your program. These objects must be deleted manually
www.hiquel.com 24
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

Program object priority

SLS-500-Configurator interprets the priority of the program objects from lef t to right and f rom top to bottom of the program page. The remote numbers are allocated exactly the same way. The base module has the definition L1. All expansion modules have the definition Remote. Beginning with a continuous number from 1. R1 is the fir st expansion; R2 is the second and so on.

Define in/outputs

If you add a module to the configuration, you can define a name for every digital or analogue input and output. When you use the input or output, the spec ified name will be displayed. This causes better understanding while programming.
www.hiquel.com 25
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

Project

SLS-500-Configurator makes creating information’s and copies of projects easy. You have it all clearly on your start up page. Choose Project from the menu to get to all relevant program functions:

Project: Info

Choose Project-Info to get to the following dialog:
Use this function to edit the customer name and the project name on the starting page. To set the adjustments click the OK button.
www.hiquel.com 26
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

Project: Import

Choose this function to impor t a page from another projec t into your current project.
The following dialog will appear:
Click the x button to abort the process, otherwise click on Open Project.
www.hiquel.com 27
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
The page number and the page name will be displayed.
Now choose the desired page of the project from the list. After clicking the OK button the s elected page will be put into
your current project!

Project: Update I/Os

You can edit the already set descriptions of the inputs and outputs with one entry. The change of the descriptions has to be accomplished on the configuration page.
After updating the I/O names the description of the in- and outputs from the configuration page will correspond with the whole project again.
Choose Update I/Os from the menu to start the update.
www.hiquel.com 28
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL

Pages

SLS-500-Configurator enables you to draw as many complex graphs as desired over as many pages as you want. Choose the menu option Page to get to the following options:

Page: Zoom all

The active page will be displayed completely screen filling.

Page: Zoom 100%

The page will be displayed with a zoom factor of 100%

Page: Zoom 75%

The page will be displayed with a zoom factor of 75%.

Page: Zoom 60%

The page will be displayed with a zoom factor of 60%.

Page: New

SLS-500-Configurator places a new program ming page before the active page. Therefore if you want to insert a new page after the active page you must advance one page before inserting the new page
www.hiquel.com 29
HIQUEL
HIQUEL SLS-500-Configurator
HIQUELHIQUEL
Now define the title of the new programming page:
For this you have to click into the text field and type in the text:
INFO: You can spread your program over as many SLS-500-
Configurator pages as desired!
IMPORTANT: SLS-500-Configurator programs can only be drawn on
programming pages . All other PowerPoint pages will be left out during compilation.

Page: Del

With this command you can delete the active SLS-500­Configurator programming page. After choosing this menu option the following message occurs:
www.hiquel.com 30
Loading...
+ 171 hidden pages