revision: 2.40 sls500-configurator r0412 programmumgebung, programming environment hiquel gmbh...
Post on 14-Jan-2016
216 Views
Preview:
TRANSCRIPT
Revision: 2.40
SLS500-Configurator R0412 Programmumgebung, Programming Environment
HIQUEL GmbH
Bairisch Kölldorf 266, A-8344 Bad Gleichenberg, Austria
Tel: +43-3159-3001-0, Fax: +43-3159-3001-4
Email: hiquel@hiquel.com www.hiquel.com
IMPORTANT NOTE:IMPORTANT NOTE:To install the programming system start the PowerPoint presentation and click onto this field! If there is no reaction, check the security level of PowerPoint for macro execution. Please ensure that the decimal To install the programming system start the PowerPoint presentation and click onto this field! If there is no reaction, check the security level of PowerPoint for macro execution. Please ensure that the decimal symbol and digital grouping symbol in your Windows „Regional and language settings“ conform to the default. Choose the „control panel“,“regional and language options“,“customize regional options“. The correct symbol and digital grouping symbol in your Windows „Regional and language settings“ conform to the default. Choose the „control panel“,“regional and language options“,“customize regional options“. The correct decimal symbol has to be a comma and the digital grouping symbol has to be a full stop e.g. 123.456.789,00decimal symbol has to be a comma and the digital grouping symbol has to be a full stop e.g. 123.456.789,00
!!! CLICK HERE !!!!!! CLICK HERE !!!
WICHTIGER HINWEIS:WICHTIGER HINWEIS:Um das Programmiersystem zu installieren, starten Sie diese Präsentation und klicken Sie auf dieses Feld! Wenn sich nach einigen Sekunden keine Reaktion einstellt, überprüfen Sie den Sicherheitslevel von Um das Programmiersystem zu installieren, starten Sie diese Präsentation und klicken Sie auf dieses Feld! Wenn sich nach einigen Sekunden keine Reaktion einstellt, überprüfen Sie den Sicherheitslevel von PowerPoint für die Makroausführung! Bitte stellen Sie sicher, daß das Tausenderzeichen ein Punkt und als Dezimaltrennzeichen ein Komma eingestellt ist. Überprüfen Sie das unter „Systemsteuerung“ PowerPoint für die Makroausführung! Bitte stellen Sie sicher, daß das Tausenderzeichen ein Punkt und als Dezimaltrennzeichen ein Komma eingestellt ist. Überprüfen Sie das unter „Systemsteuerung“ „Ländereinstellungen“ „Zahlen“. Ein Beispiel: 123.456.789,00„Ländereinstellungen“ „Zahlen“. Ein Beispiel: 123.456.789,00
!!! HIER KLICKEN !!!!!! HIER KLICKEN !!!
IMPORTANT NOTE:IMPORTANT NOTE:To install the programming system start the PowerPoint presentation and click onto this field! If there is no reaction, check the security level of PowerPoint for macro execution. Please ensure that the decimal To install the programming system start the PowerPoint presentation and click onto this field! If there is no reaction, check the security level of PowerPoint for macro execution. Please ensure that the decimal symbol and digital grouping symbol in your Windows „Regional and language settings“ conform to the default. Choose the „control panel“,“regional and language options“,“customize regional options“. The correct symbol and digital grouping symbol in your Windows „Regional and language settings“ conform to the default. Choose the „control panel“,“regional and language options“,“customize regional options“. The correct decimal symbol has to be a comma and the digital grouping symbol has to be a full stop e.g. 123.456.789,00decimal symbol has to be a comma and the digital grouping symbol has to be a full stop e.g. 123.456.789,00
!!! CLICK HERE !!!!!! CLICK HERE !!!
WICHTIGER HINWEIS:WICHTIGER HINWEIS:Um das Programmiersystem zu installieren, starten Sie diese Präsentation und klicken Sie auf dieses Feld! Wenn sich nach einigen Sekunden keine Reaktion einstellt, überprüfen Sie den Sicherheitslevel von Um das Programmiersystem zu installieren, starten Sie diese Präsentation und klicken Sie auf dieses Feld! Wenn sich nach einigen Sekunden keine Reaktion einstellt, überprüfen Sie den Sicherheitslevel von PowerPoint für die Makroausführung! Bitte stellen Sie sicher, daß das Tausenderzeichen ein Punkt und als Dezimaltrennzeichen ein Komma eingestellt ist. Überprüfen Sie das unter „Systemsteuerung“ PowerPoint für die Makroausführung! Bitte stellen Sie sicher, daß das Tausenderzeichen ein Punkt und als Dezimaltrennzeichen ein Komma eingestellt ist. Überprüfen Sie das unter „Systemsteuerung“ „Ländereinstellungen“ „Zahlen“. Ein Beispiel: 123.456.789,00„Ländereinstellungen“ „Zahlen“. Ein Beispiel: 123.456.789,00
!!! HIER KLICKEN !!!!!! HIER KLICKEN !!!
Path for INET ExplorerPath for INET Explorer
C:\Programme\Internet Explorer\IEXPLORE.EXEC:\Programme\Internet Explorer\IEXPLORE.EXE
Page 2Revision: 2.40
Title:Configuration
Define your Configuration here
DI1:DI2:DI3:DI4:DI5:DI6:DI7:DI8:DO1:DO2:DO3:DO4:DO5:DO6:AI1:AI2:AI3:AI4:POTI1:POTI2:
SLS500-R
Page 3Revision: 2.40
Title:Programming
11
SeiteSeite
initialisation1.1.
Choose a specific programmed module to test it separately
Welcome to our collection of examples for the SLS-500 Master
ControllerEach example comprise one page.Type in the number of the page you
want to test
These examples should give you an introduction to the use of the different
features of the programGood Luck
Your HIQUEL Team Overwrite this number with the corresponding page number of the example that you want to test, then
select ‘Run > Simulate’ from the toolbar.
Page 4Revision: 2.40
Read only a part of a value
The function MODULO divides In1 by In2 and transfers only the integer without the
remainder to the memory.
Title:Programming
L1.AI1L1.AI1
++
50.050.0
MyMemory 1MyMemory 1
L1.AI2L1.AI2
L1.AI3L1.AI3
-- My Memory 2My Memory 2
L1.AI4L1.AI4
1010
%% My Memory 3My Memory 3
analog value=1
SeiteSeite
Example 1: analogue calculations
This example explains the analogue operators PLUS
and MINUS!
20202020
70707070
30303030
10101010
20202020
1234123412341234
123123123123
Page 5Revision: 2.40
Title:Programming
L1.POTI1L1.POTI1
0.10.1
** My Memory 1My Memory 1
My MemoryMy Memory
//
0.10.1
ResultResult
0,500,50
**
0,200,20
**
0,300,30
**
++
++ My Memory 2My Memory 2
L1.AI1L1.AI1
L1.AI2L1.AI2
L1.AI3L1.AI3
analog value=2
SeiteSeite
Example 2: more analogue calculations
This is an example that explains how multistage
calculations are programmed.
A new analogue value is calculated, that is the result of the sum of AI1 x 0.5 + AI2 x
0.2 + AI3 x 0.3. This new analogue value is saved in
My Memory 2.
This example demonstrates that basic mathematical calculations can be very easily carried out with
analogue values.
Configurator always performs these analogue calculations
up to 3 decimal places!
70707070
7777
7777
70707070
Page 6Revision: 2.40
Title:Programming
2.3452.345 My Memory 1My Memory 1
-10-10 My Memory 2My Memory 2
0.0010.001 My Memory 3My Memory 3
0xffff0xffff My Memory 4My Memory 4
0x123450x12345 My Memory 5My Memory 5
analog value=3
SeiteSeite
Example 3: Saving of simple analogue values
This example demonstrates that constant analogue values
can simply be saved in the analogue memory registers.
TRY THIS EXERCISE: The analogue value „180182“ should be saved in the memory register „My Memory 6“.
TRY THIS EXERCISE: The analogue value „180182“ should be saved in the memory register „My Memory 6“.
2.3452.3452.3452.345
-10-10-10-10
0.0010.0010.0010.001
65.53565.53565.53565.535
74.56574.56574.56574.565
Page 7Revision: 2.40
Title:Programming
11
<<<< My Memory 1My Memory 1
L1.AI1L1.AI1
22
<<<< My Memory 2My Memory 2
L1.AI1L1.AI1
33
<<<< My Memory 3My Memory 3
L1.AI1L1.AI1
analog value=4
SeiteSeite
Example 4: The SHIFT LEFT function
The function of the Shift-Operator is explained in
this example.A ‘Shift left’ of 1 is analogue to the
multiplication of 2!
50505050
100100100100
200200200200
400400400400
50505050
50505050
Page 8Revision: 2.40
Title:Programming
11
My Memory 1My Memory 1
L1.AI1L1.AI1
22
My Memory 2My Memory 2
L1.AI1L1.AI1
33
My Memory 3My Memory 3
L1.AI1L1.AI1
>>>>
>>>>
>>>>
analog value=5
SeiteSeite
Analogue to ‘Shift Left’ a ‘Shift Right’ operator
of 1 is equivalent to the division of 2!
TRY THIS EXERCISE:An analogue input should be shifted right by 2 and the result saved in the memory cell „My Memory 4“. For control the value in „My Memory 4“, should be shifted left by two bits and the result should be transferred to the memory cell „result“.
TRY THIS EXERCISE:An analogue input should be shifted right by 2 and the result saved in the memory cell „My Memory 4“. For control the value in „My Memory 4“, should be shifted left by two bits and the result should be transferred to the memory cell „result“.
Example 5: The SHIFT RIGHT function
50505050
50505050
50505050
25252525
12.512.512.512.5
6.256.256.256.25
Page 9Revision: 2.40
Title:Programming
L1.AI1L1.AI1
5050
L1.DO1L1.DO1
L1.AI1L1.AI1
5050
L1.DO2L1.DO2
==
!=!=
L1.AI1L1.AI1
5050
L1.DO3L1.DO3
L1.AI1L1.AI1
5050
L1.DO4L1.DO4
<=<=
<<
analog value=6
SeiteSeite
Example 6: compare an analogue value to an analogue constant
Analogue values can easily be compare to a bit value.
The ‘SLS-500 Configurator’ software interpretes all
analogue input signals, either 0..10V or 0..20mA as 0..100%
values to three decimal places!
50505050
50505050
50505050
50505050
1111
0000
1111
0000
Page 10Revision: 2.40
Title:Programming
L1.AI1L1.AI1
5050
L1.DO1L1.DO1
2525
<=<=
2525
7575
>>
<<
&&
L1.AI2L1.AI2
L1.AI3L1.AI3
L1.AI4L1.AI4
L1.DO3L1.DO3
L1.DO2L1.DO2
>=>=
analog value=7
SeiteSeite
Example 7: compare analogue inputs, to operate digital outputs
In this example the signal from analogue input Ai1 is divided into
three different ranges. Each range is presented by an digital
output.Depending on to which region the
present analogue value belongs to the corresponding output is activated.
Result values can be compared using the AND (&) command and the result
of the comparison can also be transferred to an output.
TRY THIS EXERCISE :An analogue sensor is connected to an An analogue sensor is connected to an analogue input AI2analogue input AI2: The value 0% 0% corresponds to a liquid level of 0m and the value 100% to a liquid level of 0m and the value 100% corresponds to a level of 10m. a level of 10m.Two signals should be generated: Two signals should be generated: L1.Do3 should be activated when the level is L1.Do3 should be activated when the level is below 1m. below 1m. L1.Do4 should be activated when the level is L1.Do4 should be activated when the level is above 8m.above 8m.
TRY THIS EXERCISE :An analogue sensor is connected to an An analogue sensor is connected to an analogue input AI2analogue input AI2: The value 0% 0% corresponds to a liquid level of 0m and the value 100% to a liquid level of 0m and the value 100% corresponds to a level of 10m. a level of 10m.Two signals should be generated: Two signals should be generated: L1.Do3 should be activated when the level is L1.Do3 should be activated when the level is below 1m. below 1m. L1.Do4 should be activated when the level is L1.Do4 should be activated when the level is above 8m.above 8m.
Page 11Revision: 2.40
Title:Programming
My Memory 1My Memory 1&&&&
My Memory 2My Memory 2||||
My Memory 3My Memory 3!!
L1.AI1L1.AI1
L1.AI2L1.AI2
L1.AI1L1.AI1
L1.AI2L1.AI2
L1.AI1L1.AI1
analog value=8
SeiteSeite
Example 8: Logical AND, OR and NOT with analogue values
This example demonstrates the application of the logical operators OR, AND and NOT.
Logical operators compare input signals:
Logical AND:outputs a value when both inputs are non-zero and
transfers this value to the memory. If one or both inputs are zero the output signal is zero.
Logical OR :outputs a value when one or both inputs are non-zero and
transfers this value to the memory. The output is zero if both inputs are zero.
Logical NOT: (Invert)analogue input non-zero results in transferring the value 0
to memory and vice versa.an analogue input of 0 leads to a 1 that is transferred to
memory.
34343434
44444444
0.0010.0010.0010.001
34343434
0000
0.0010.0010.0010.001
14141414
0.0000.0000.0000.000
Page 12Revision: 2.40
Title:Programming
My Memory 1My Memory 1
My Memory 2My Memory 2
My Memory 4My Memory 4
&&
||
~~
My Memory 3My Memory 3^̂
L1.AI1L1.AI1
L1.AI1L1.AI1
L1.AI1L1.AI1
L1.AI1L1.AI1
analog value=9
SeiteSeite
Example 9: bit operations with analogue values
This example demonstrates the application of the binary
operators AND, OR, EXCLUSIVE OR and NOT.
Binary operators compare every single bit of a 32-bit
analogue value and calculate 32 new results, that are
transferred to memory as an analogue value!
L1.AI2L1.AI2
L1.AI2L1.AI2
L1.AI2L1.AI2
40404040 - 40- 40- 40- 40
7777
7777
7777
7777
7777
7777
7777
7777
0000
Page 13Revision: 2.40
Title:Programming
My Memory 1My Memory 1
My Memory 2My Memory 2
analog value=10
SeiteSeite
Example 10: multiple use of an analogue input
In this example the operation sequence for the analogue input value is split in two.
This is a very useful feature in many applications
L1.AI1L1.AI1
70707070
70707070
70707070
Page 14Revision: 2.40
Title:Programming
In In ValueValue My Memory 1My Memory 1
1010
2020
In In ValueValue My Memory 1My Memory 1
In In ValueValue My Memory 1My Memory 1
3030
analog value=11
SeiteSeite
Example 11: assigning an analogue value by digital input edges
This example demonstrates how to assign a value to an analogue memory cell by using the functions of the
rising edge, falling edge or both edges of a digital input.
L1.DI1L1.DI1
L1.DI2L1.DI2
L1.DI3L1.DI3
10101010
20202020
30303030
Page 15Revision: 2.40
Title:Programming
1010
2020
In==1In==1ValueValue My Memory 1My Memory 1
In==0In==0ValueValue My Memory 1My Memory 1
analog value=12
SeiteSeite
Example 12: assigning an analogue value by permanent digital signals
This example shows that values of an analogue input
can be transferred to a register if the digital input is either permanently active or
not active.
L1.DI1L1.DI1
L1.DI1L1.DI1
10101010
20202020
Page 16Revision: 2.40
Title:Programming
My Memory 2My Memory 2
My Memory 1My Memory 1
//
1010
My Memory 2My Memory 2 My Memory 3My Memory 3 My Memory 4My Memory 4
analog value=13
SeiteSeite
Example 13: transferring one analogue value in many memories
This example explains how an analogue result is
transferred to two different memory registers. This is a very useful feature to save analogue values in different
memory locations
L1.AI1L1.AI1
60606060 60606060
6666
6666 6666 6666
Page 17Revision: 2.40
Title:Programming
MemoryMemory
MemoryMemory
MemoryMemory
MemoryMemory
MemoryMemory
MemoryMemory
>=>=
analog value=14
SeiteSeite
Example 14: comparing analogue inputs
This example demonstrates the use of analogue operators
in connection with a binary register. The status of the
binary register is transferred to a digital output.
L1.AI1L1.AI1
L1.AI2L1.AI2
L1.DO1L1.DO1
L1.DO2L1.DO2
L1.DO3L1.DO3
L1.DO4L1.DO4
L1.DO5L1.DO5
L1.DO6L1.DO6
Page 18Revision: 2.40
Title:Programming
75.075.0
>=>=
25.025.0
&&
<=<=
analog value=15
SeiteSeite
Example 15: comparing analogue inputs
This example shows the use of analogue operators in connection with binary
operators!
L1.AI1L1.AI1
L1.AI2L1.AI2 L1.DO1L1.DO1
L1.DO2L1.DO2
L1.DO3L1.DO3
L1.DO4L1.DO4
L1.DO5L1.DO5
L1.DO6L1.DO6
60606060
30303030
11
11
11
11
11
11
11
11
11
11
11
11
Page 19Revision: 2.40
Title:Programming
In In ValueValue CounterCounter
COUNT SETCOUNT SET
In In ValueValue CounterCounter
COUNT SETCOUNT SET
55
In In ValueValue CounterCounter
COUNT UPCOUNT UP
In In ValueValue CounterCounter
COUNT DOWNCOUNT DOWN
CounterCounter ==
00
CounterCounter ==
11
CounterCounter ==
22
CounterCounter ==
33
CounterCounter ==
44
CounterCounter ==
55
CounterCounter
00
<< In==1In==1ValueValue CounterCounter
CounterCounter
55
In==1In==1ValueValue CounterCounter>>
00
55
analog value=16
SeiteSeite
Example 16: counter applications part I
In this example we learn the practical applications of the counter features from SLS-
500 Configurator.
L1.DO1L1.DO1
L1.DO2L1.DO2
L1.DO3L1.DO3
L1.DO4L1.DO4
L1.DO5L1.DO5
L1.DO6L1.DO6
L1.DI1L1.DI1
L1.DI2L1.DI2
L1.DI3L1.DI3
L1.DI4L1.DI4
Page 20Revision: 2.40
Title:Programming
InIn Binary->Analog0->25.01->75.0
Binary->Analog0->25.01->75.0
OutOut
>=>=
L1.AI1L1.AI1
L1.DO1L1.DO1
L1.DI2L1.DI2
analog value=17
SeiteSeite
Example 17: conversion from binary to analogue value
In this example the digital input Di2 is converted to an
analogue value which is compared with the analogue
value from the input Ai1.The result is transferred to the
digital output Do1
111175757575
60606060
0000
Page 21Revision: 2.40
Title:Programming
analog value=18
SeiteSeite
Example 18: scaling of analogue signals
This example explains the feature of analogue scaling. The
analogue input Ai1 within the range of 0% to 100% which is adapted to a range between -
50°C and +50%
InIn Scale0.0;100.0
-50;50
Scale0.0;100.0
-50;50
OutOut My Memory 1My Memory 1L1.AI1L1.AI1
75%75%75%75% 25°C25°C25°C25°C
Voltage input „L1.AI1“: 0-10VDC 0 to 100%Temperature sensor with a measuring range: 0-10VDC -50 to +50°C
InIn Scale20.0;100.0
-50;50
Scale20.0;100.0
-50;50
OutOut My Memory 2My Memory 2L1.AI2L1.AI2
80%80%80%80% 25°C25°C25°C25°C
Current input „L1.AI2“: 0-20mA 0 to 100%Temperature sensor with a measuring range: 4-20mA -50 to +50°C
Page 22Revision: 2.40
Title:Programming
TIMERRecycler Hi
TIMERRecycler Hi
InIn OutOutResetReset
Time1Time1Time2Time2
11
InIn Scale0.0;100.0
1;5
Scale0.0;100.0
1;5
OutOut
analog value=19
SeiteSeite
Example 19: scaling of analogue signals
TRY THIS EXERCISE: AAnn analogue sensor is connected to analogue analogue sensor is connected to analogue input AI2input AI2: The value 0% 0% corresponds to a a liquid level of 0m and the value 100% liquid level of 0m and the value 100% corresponds to a level of 10m. a level of 10m.
A signal should be generated: A signal should be generated: L1.Do5 should be activated when the level is L1.Do5 should be activated when the level is below the actual setting of the potentiometer of below the actual setting of the potentiometer of the the extension module..
TRY THIS EXERCISE: AAnn analogue sensor is connected to analogue analogue sensor is connected to analogue input AI2input AI2: The value 0% 0% corresponds to a a liquid level of 0m and the value 100% liquid level of 0m and the value 100% corresponds to a level of 10m. a level of 10m.
A signal should be generated: A signal should be generated: L1.Do5 should be activated when the level is L1.Do5 should be activated when the level is below the actual setting of the potentiometer of below the actual setting of the potentiometer of the the extension module..
L1.DI1L1.DI1
L1.POTI1L1.POTI1L1.DO1L1.DO1
L1.DO2L1.DO2
L1.DO3L1.DO3
L1.DO4L1.DO4
In this example the potentiometer In this example the potentiometer value from the first extension value from the first extension module is scaled to a value module is scaled to a value between 1 and 5. This value between 1 and 5. This value
controls the speed of a flashing controls the speed of a flashing light between 1 and 5 secondslight between 1 and 5 seconds..
Page 23Revision: 2.40
<Enter group text here>
IndexIndex
MEMORY CARDMEMORY CARD
READVALUEREAD
VALUE
OutOutxyxy44!!!WARNING!!!
DON‘T CHANGE THIS PAGE
!!!WARNUNG!!!DIESE SEITE NICHT ÄNDERN
Page 24Revision: 2.40
Title:Programming
!!!WARNING!!!DON‘T CHANGE THIS PAGE
!!!WARNUNG!!!DIESE SEITE NICHT ÄNDERN
Page 25Revision: 2.40
03.05.06:Adding revision history to the powerpoint file
Revision History
03.05.06:In symbols and monitor functions, now you can use the old fashioned names like DIGITAL#L1_DI1 or the new names like L1.DI1
03.05.06: In PLCManager you can now download and use all PLCManager functions via a pure TCP RS232 converter like the MOXA DL-331 or the ADAM-4579. Use the setting TCP/IP instead of COM1 to COM32, type in a IP and socket number.
05.05.06: The Simulator now calculates 2*2 to4 instead of 3.999
05.05.06: The Powerpoint and the compiler now support states and execution conditions >=, <=, ==, !=, <, >
05.05.06: Now you can use natural input and output names like L1.AI1 or R3.DO1 in states and execution conditions
29.05.06: Adding selector dialogs for selecting a previous defined constant in the constants dialog
29.05.06: In select execution condition dialog and in select special flag dialog: Switching off all unused conditions depending on the configured hardware, also removing 1ms flag
29.05.06: In all dialogs: Extension for selecting previous define bits, analog and text variables through a listbox
29.05.06: Now you can set values direct from powerpoint memories or monitors
29.11.06: Errors with updating the IO names with RESI-8KI16LO und SLS500-T1 and RESI-FBR and SLS-500 FBR modules
09.02.07: The encoder inputs can be used on any MEDIC or SLS500 main controller
27.03.07: Error while compiling MEMORYCARD:WRITE VALUE functions
10.08.07: Adding BUS_ADDRESS feature to CAN Controller and PPoint Software
03.10.07: Adopting Microsoft Office Version 2007
14.10.07: Changing to natural Names in states and execution conditions, fixing display of SLS-T1 keymodule
15.12.07: In Debug windows of PLC manager: The PLC manager always used busaddress 0xff instead of configured busaddress
17.12.07: PLC manager: Extending timeouts for downloading via SMS modules like TC35
top related