Загрузил Тимофей Августинович

DiT pr C074-IVT-Interval-Timer SI

Реклама
Configuration | Class C74 IVT, Interval Generator
Version V8.20
ProLeiT AG
Einsteinstrasse 8, D-91074 Herzogenaurach, Germany
Phone:
+49 (0) 9132 777-0
Fax:
+49 (0) 9132 777-150
E-Mail:
info@proleit.com
Internet: http://www.proleit.com
Hotline
E-mail:
hotline@proleit.com
Plant Direct iT, V8.20
Configuration | Class C74 IVT, Interval Generator
R16, Edition: 14. July 2011
DiT_pr_C074-IVT-Interval-Timer_SI.doc
No responsibility can be assumed for the details contained in this manual;
changes can be made at any time. The software described in this document is
subject to the license conditions.
Designations for hardware and software mentioned in this manual are
registered trademarks of hardware and software products.
Plant Direct iT
V8.20, R16
Configuration | Class C74 IVT, Interval Generator
2
Table of contents
Table of contents
1
Introduction..............................................................................................................4
2
2.1
2.2
2.3
Fundamentals ..........................................................................................................6
Basic concept ............................................................................................................6
System response .......................................................................................................6
2.2.1 Operating modes ..........................................................................................6
2.2.2 System messages ........................................................................................7
Application example...................................................................................................7
3
3.1
3.2
3.3
Object parameterization..........................................................................................8
Parameters C74 IVT ..................................................................................................8
StatusRecord C74 IVT...............................................................................................9
Interconnectable attributes C74 IVT ........................................................................10
4
4.1
Visualization...........................................................................................................11
Overview..................................................................................................................11
4.1.1 Project and control ......................................................................................11
4.1.2 Visualization possibilities ............................................................................11
Background..............................................................................................................12
4.2.1 Explanation of VB properties ......................................................................12
4.2.2 Setting values using the Property pages dialog....................................13
4.2
4.2.3
5
5.1
5.2
5.3
5.4
5.5
Supported visualization status ....................................................................13
PLC user interface .................................................................................................14
Interface signals.......................................................................................................14
5.1.1 Control/status signals .................................................................................14
Cycle register (interval register)...............................................................................15
External setpoints ....................................................................................................16
Data record ..............................................................................................................17
5.4.1 DB_DiT_C74_Record .................................................................................17
Programming examples...........................................................................................17
Configuration | Class C74 IVT, Interval Generator
Plant Direct iT
V8.20, R16
Configuration | Class C74 IVT, Interval Generator
3
Introduction
Basic concept
1
Introduction
An object of the C74 IVT forms up to 32 pulse signals, where the time for each
individual pulse can be parameterized.
This manual contains information for the configuring work that you must perform
when you want to work with a Siemens PLC (SIMATIC).
Target groups
Configuring engineers
The audience of this manual are configuring engineers. The manual leads you
systematically through all configuration steps that you must perform when you
use objects of this class in your project.
Operators
The manual is useful for plant operators when they require more information
about the method of operation for the automation class described in this
manual.
In particular, we recommend chapter 2.1, "Basic concept".
Content
The content of this manual as an overview:
Chapter
Description
2
Fundamentals
Explains the method of operation of the C74 IVT class.
3
Object parameterization
Provides the most important notes for the parameterization of a C74 IVT
object in the Configuration Client.
4
Visualization
Shows how you can configure in Visual Basic the representation for the
process picture.
5
PLC user interface
Principles for the programming: Documents the interface signals of the
C74 IVT class.
More advanced manuals
Further information for Plant iT and the Siemens PLC is contained in the
following manuals:
•
Principles for installing and customizing the PLC:
Plant iT ║ Installation ║ PLC – Installation and Programming
•
Plant Direct iT
V8.20, R16
Configuration in the Configuration Client:
Configuration | Class C74 IVT, Interval Generator
4
Introduction
Basic concept
Plant Direct iT ║ Configuration ║ Automation Classes
•
Operation of the C74 IVT class:
Plant Direct iT ║ Operation ║ Automation Classes
Plant Direct iT
V8.20, R16
Configuration | Class C74 IVT, Interval Generator
5
Fundamentals
Basic concept
2
Fundamentals
This chapter provides an overview for the method of operation of the C74 IVT
class.
2.1
Basic concept
The C74 IVT forms up to 32 pulse signals, where the time for each individual
pulse can be parameterized.
Depending on the settings, the interval sequence is performed once or n-times.
The interval sequence can be controlled by a control signal from the user
program to also run continuously.
A parameterized overlapping time can be used to set overlapping pulse signals
(overlapping time > 0). A negative overlapping time produces a pause between
the pulse signals.
The configuring of an external address (DB/DW) for the setpoints / actual
values allows the pulse times, for example, to be specified recipe dependent.
Objects of the C74 IVT class can be used, for example, to form clock cycles for
valve seat rinsing for cleaning programs, container spraying or similar.
2.2
System response
2.2.1
Operating modes
You can control C74 IVT objects in the automatic and manual operating
modes.
Automatic
In the Automatic operating mode, objects are controlled by PLC control
signals.
Manual
In the manual operating mode, the operator can control the objects using
process picture operation.
Switch from Automatic to Manual
During the switch from Automatic to Manual, all states last present in the
Automatic operating mode are initially retained.
Plant Direct iT
V8.20, R16
Configuration | Class C74 IVT, Interval Generator
6
Fundamentals
Application example
Switch from Manual to Automatic
When an operator switches the operating mode back to Automatic, the values
set in Manual are not transferred. The output signal accepts the status of the
automatic.
2.2.2
System messages
No system messages are parameterized for class C74 IVT objects.
2.3
Application example
Task
The cleaning of valves in the pipe requires that these are opened for several
seconds.
Diagram
Figure 1
To prevent pressure loss in the pipe during the cleaning, the valves must be
opened alternately.
Implementation
The implementation requires the following objects:
•
•
C74 IVT class:
C25 DCM class:
one object
three objects
Three intervals each of three seconds must be parameterized for the interval
generator. The interval generator is released with the flag interface in the user
program.
The flags of the interval register can now implement the activations for the three
actuators.
Plant Direct iT
V8.20, R16
Configuration | Class C74 IVT, Interval Generator
7
Object parameterization
Parameters C74 IVT
3
Object parameterization
This chapter contains all important information for the parameterization of a
C74 IVT object.
Identification
3.1
Class group
Direct iT CM-SI
Class designation
C74 IVT
Parameters C74 IVT
You can use the following parameters to specify the properties of an object of
this class:
Reference
Designation
System name
Format
Description
Designation
interval 1 - 32
pStr_IVT01 pStr_IVT32
String
Alternative designation for interval 01 to interval 32
Object record valid
pDatasetValid
BOOL
Indicates whether the parameterization in the database
and in the PLC is valid.
Assigned automatically by the system.
Simulation via screen
pSimulation
BOOL
Specifies whether the simulation mode may be
activated via the screen.
Object locked
pObjectLock
BOOL
Specifies whether the object is locked for the
processing logic in the PLC.
Release messages
pMsg_en
BOOL
Specifies whether the object issues messages.
Swap interval register
pSwapIVTReg
BOOL
Specifies the order of the bytes for the interval register
and skip register.
FALSE = The bytes have the order 3,2,1,0.
TRUE = The bytes have the order 0,1,2,3.
Evaluate skip register
in user interface
pUseSkipRegister
BOOL
TRUE = Use the Skip-Register/User-Interface
(C74_IVT_UserIF).
Example:
If SkipIvt[3] bit = True, this interval will be skipped.
For example, five parameterized intervals then produce
this interval order: 1-2-4-5 rather than 1-2-3-4-5.
User interface address pSrc_IF
ITP
pointer
Specifies the start address of the user interface.
Interval register
address
pSrc_IVT
ITP
pointer
Specifies the start address of the interval register.
Overlapping time
pOverlappingTime
UINT
t = 0: The transition between two intervals is made
without overlapping or pause.
t > 0: This causes an overlapping time interval of length
t between the intervals.
t < 0: This causes a pause of length t between the
intervals.
Count of intervals
pIntervalNo
UINT
Specifies the number of intervals.
Plant Direct iT
V8.20, R16
Configuration | Class C74 IVT, Interval Generator
8
Object parameterization
StatusRecord C74 IVT
Designation
System name
Format
Description
Count of cycles
pCycleNo
UINT
Specifies how often the interval sequence is performed.
Interval 01 - 32
pIVT01 - pIVT32
UINT
Specifies a setpoint for the switch-on delay (in
seconds) of step 01 - 32.
External setpoints /
actual values address
pSrc_ExtIVTReg
ITP
pointer
Specifies an external address for the setpoints / actual
values of the interval sequence.
Only data blocks may be used as source.
3.2
StatusRecord C74 IVT
You can use the following status to determine the status of an object of this
class:
Reference
Designation
System name
Format
Description
Simulation by automatic
sAutoSimu
BOOL
The object has been switched to simulation.
Object is locked
sObjectLocked
BOOL
Object processing in the PLC is locked.
Display symbol Failure
sError
BOOL
Display Failure symbol in the dialog
Display symbol Info
sInfo
BOOL
Display Info symbol in the dialog
Additional status 0 (manual)
sExtState0
BOOL
Display Manual symbol in the dialog
Additional status 1 (lock)
sExtState1
BOOL
Display Lock symbol in the dialog
Additional status 2
(simulation)
SExtState2
BOOL
Display Simulation symbol in the dialog
Visualization status
sVisuState
ENUM
Operating status of the object
0 = Inactive
1 = Active
2 = Completed
Release interval sequence
sEnable
BOOL
Image of the release interval sequence or
release from operator dialog control signal in
manual mode
Release time
sRelease
BOOL
Image of the release time control signal
Interval sequence endless
sEndless
BOOL
Image of the interval sequence endless
control signal
Interval running
sRun
BOOL
Specifies that the interval sequence is running.
Interval sequence complete
sComplete
BOOL
Specifies that the number of cycles has been
reached.
Current intervals
sIntervalRegister
DINT
Bit-coded repetition of the active interval
Current interval time
sActIntervalTime
DINT
Shows the time (in seconds) that the current
interval is already active.
Current interval number
sActIntervalNo
DINT
Shows the number of the currently active
interval.
Current interval number
sActCycleNo
DINT
Shows how often the interval sequence was
performed.
Plant Direct iT
Configuration | Class C74 IVT, Interval Generator
V8.20, R16
9
Object parameterization
Interconnectable attributes C74 IVT
3.3
Interconnectable attributes C74 IVT
The following interconnectable attributes are available for an object of this
class:
Reference
Designation
System name
(Default attribute)
Format
Description
INT
sVisuState
You use this attribute as Source VB property
when you use a bitmap for the visualization of
the object in the process picture.
Further information: Chapter 4, "Visualization"
Visualization status
sVisuState
ENUM
Current visualization status for the ProClass
visualization control
Current interval time
sActIntervalTime
UINT
Shows the time [s] that the current interval is
already active.
Current interval number
sActIntervalNo
UINT
Shows the number of the currently active
interval.
Current interval number
sActCycleNo
UINT
Shows how often the interval sequence was
performed.
If sEndles = 1: The value counts until 255 and
then starts again at 0.
Plant Direct iT
V8.20, R16
Configuration | Class C74 IVT, Interval Generator
10
Visualization
Overview
4
Visualization
This chapter provides the most important information for the visualization of the
C74 IVT class.
4.1
Overview
The visualization is configured in Visual Basic. In order to be able to visualize
the C74 IVT class, you need therefore a prepared Visual Basic project with the
Plant iT specific controls.
Further information
Further information about setting up the environment for configuring the
visualization is contained in the following manuals:
Plant Direct iT ║ Configuration ║ Process Pictures
Plant Direct iT ║ Configuration ║ Visualization Controls
4.1.1
4.1.2
Project and control
Required
Description
Tool
Visual Basic
Project
PBServer
Control
ProClass
Visualization possibilities
The following visualizations are appropriate for the C74 IVT class:
Standard parameterization
DisplayStyle
Source
Optional source
Pool
Status text
Default attribute Not required
Direct iT | RunningState Direct iT Sys | IVT Display
Value (numeric)
sActIntervalNo sVisuState
Direct iT | RunningState Direct iT Sys | IVT Display
Extended settings
You can also set the ExtdStatusMask and ErrorStatusMask VB properties.
Plant Direct iT
V8.20, R16
Configuration | Class C74 IVT, Interval Generator
11
Visualization
Background
4.2
Background
This chapter contains introductory information for the parameterization of the
VB controls.
4.2.1
Explanation of VB properties
For the parameterization of a ProClass control, you normally require the
following VB properties:
Property
Description
DisplayStyle
Specifies the type of the representation in the process picture.
You can set the following values for the VB property:
0 Status picture
Visualizes in the Source VB property the
selected status in bitmap form.
1 Status text
Visualizes in the Source VB property the
selected status as text line.
2 Value (numeric) Visualizes in the Source VB property the
selected status as numeric value
3 Status picture & Visualizes in the Source VB property the
flood level
selected status as bitmap with level
display.
4 Level
Visualizes in the Source VB property the
selected status as level display.
Source
Specifies on which attribute of an automation object you
interconnect the control.
Recommendation:
- Selection using the Property pages dialog
Further information: Chapter 4.2.2, "Setting values using the
Property pages dialog"
- Interconnectable attributes for the C74 IVT class:
Further information: Chapter 3.3, "Interconnectable attributes
C74 IVT"
Optional source
Only for the value (numeric) DisplayStyle: Specifies the
representation for extended display properties (Extended Status).
Recommendation:
Selection using the Property pages dialog
Pool
Specifies which bitmap stream or which set of background colors
are used for the visualization.
Recommendation:
Selection using the Property pages dialog
ExtdStatusMask
Recommendation:
Displays additional status-dependent icons in the control, for
example, for the following states: Simulation, Interlock,
Maintenance.
Value: &H003F0000 (normal case)
Representation:
ErrorStatusMask
Plant Direct iT
V8.20, R16
Recommendation:
Displays the control flashing depending on the visualization status.
Value: &H00400000 (normal case)
Configuration | Class C74 IVT, Interval Generator
12
Visualization
Background
4.2.2
Setting values using the Property pages dialog
We recommend that you set the values for the Source, Optional source and
Pool VB properties using the Property pages dialog.
Condition for that is a form opened in the VB project with inserted ProClass
control.
How to proceed
)
)
)
Select the added ProClass control with the mouse.
Click in the VB Property window in the right-hand column of the Userdefined property (first property).
Click the
button.
The Property pages dialog opens.
Note
When you choose the object in the Source tab page directly, you select the default
attribute automatically in this way.
If the structure view of the Property pages dialog shows the required object as ???,
click the Reconfigure object cache button.
4.2.3
Supported visualization status
Plant iT outputs the following visualization status for the C74 IVT class:
Reference
Value
Status (not flashing)
0
Inactive
1
Activated
3
Completed
Status (flashing)
Note
Status (flashing) is supplied by the system (Class Handler).
Plant Direct iT
V8.20, R16
Configuration | Class C74 IVT, Interval Generator
13
PLC user interface
Interface signals
5
PLC user interface
This chapter provides an overview of all control and status signals for the
C74 IVT class.
5.1
Interface signals
A symbol table implements the interface between user programs and Plant iT.
This symbol table contains all variables required to access Plant iT objects from
your programs.
You create and manage the symbols in the Configuration Client.
The following signal tables show the control and status signals for one object
(one record).
Further information
Detailed information for creating the symbols is contained in the following
manuals:
Plant iT ║ Installation ║ PLC – Installation and Programming
Plant Direct iT ║ Configuration ║ Stations
5.1.1
Control/status signals
The status and control interface is addressed by the pSrc_IF ITP-Pointer.
The C74_IVT_UserIF structure describes, for example, how the user interface
must be constructed for objects of the C74 IVT class.
Addr
Name
.
Data type
R/W
Presetting
Comment
0.0
sEnable
BOOL
W
FALSE
Activate interval generator
0.1
sRelease
BOOL
W
FALSE
Release interval time
0.2
sEndles
BOOL
W
FALSE
Endless cycling
0.3
sPause
BOOL
W
FALSE
Stop interval time
0.4
sRun
BOOL
R
FALSE
Interval sequence running.
0.5
sComplete
BOOL
R
FALSE
Interval sequence complete
1.0
sActIntervalNo
BYTE
R
B#16#0
Current interval number
If sEndles = 1: The value counts until 255 and
then starts again at 0.
2.0
SkipIvt[1] SkipIvt[32]
ARRAY[1..32]
of BOOL
W
Plant Direct iT
V8.20, R16
Skip register
TRUE: Skip the associated interval.
Further information: Chapter , ""
- Further information: Chapter 3.1, "Parameters
C74 IVT"
- Note concerning the skip register
Configuration | Class C74 IVT, Interval Generator
14
PLC user interface
Cycle register (interval register)
Note concerning the skip register: Byte order
The order of the bytes is determined by the pSwapIVTReg parameter.
If no skip register is used (pUseSkipRegister = false), a simplified interface
can be used.
Example MB 100
Bit
5.2
Symbol
R/W
Comment
M 100.0
sEnable
W
Activate interval generator
M 100.1
sRelease
W
Release interval time
M 100.2
sEndles
W
Endless cycling
M 100.3
sPause
W
Stop interval time
M 100.4
sRun
R
Interval sequence running.
M 100.5
sComplete
R
Interval sequence complete
MB 101
sActIntervalNo
R
Current interval number
Cycle register (interval register)
The cycle register is addressed with the pSrc_IVT parameter and made
available for the user there.
The pSwapIVTReg parameter can be used to specify whether the assignment
of the flags is started with interval 01 or with interval 32.
Example MD 102 (pSwapIVTReg = false)
Plant Direct iT
V8.20, R16
Bit
Symbol
Bit
Symbol
M105.0
Interval 01
M103.0
Interval 17
M105.1
Interval 02
M103.1
Interval 18
M105.2
Interval 03
M103.2
Interval 19
M105.3
Interval 04
M103.3
Interval 20
M105.4
Interval 05
M103.4
Interval 21
M105.5
Interval 06
M103.5
Interval 22
M105.6
Interval 07
M103.6
Interval 23
M105.7
Interval 08
M103.7
Interval 24
M104.0
Interval 09
M102.0
Interval 25
M104.1
Interval 10
M102.1
Interval 26
M104.2
Interval 11
M102.2
Interval 27
M104.3
Interval 12
M102.3
Interval 28
M104.4
Interval 13
M102.4
Interval 29
M104.5
Interval 14
M102.5
Interval 30
M104.6
Interval 15
M102.6
Interval 31
M104.7
Interval 16
M102.7
Interval 32
Configuration | Class C74 IVT, Interval Generator
15
PLC user interface
External setpoints
Example MD 102 (pSwapIVTReg = true)
5.3
Bit
Symbol
Bit
Symbol
M102.0
Interval 01
M104.0
Interval 17
M102.1
Interval 02
M104.1
Interval 18
M102.2
Interval 03
M104.2
Interval 19
M102.3
Interval 04
M104.3
Interval 20
M102.4
Interval 05
M104.4
Interval 21
M102.5
Interval 06
M104.5
Interval 22
M102.6
Interval 07
M104.6
Interval 23
M102.7
Interval 08
M104.7
Interval 24
M103.0
Interval 09
M105.0
Interval 25
M103.1
Interval 10
M105.1
Interval 26
M103.2
Interval 11
M105.2
Interval 27
M103.3
Interval 12
M105.3
Interval 28
M103.4
Interval 13
M105.4
Interval 29
M103.5
Interval 14
M105.5
Interval 30
M103.6
Interval 15
M105.6
Interval 31
M103.7
Interval 16
M105.7
Interval 32
External setpoints
The setpoints and actual values of the 32 pulse signals of a C74 IVT object are
made available as follows:
Plant Direct iT
V8.20, R16
Addr.
Name
Data type
Comment
0.0
Setpoint_IVT1
DINT
Setpoint for pulse signal
4.0
Actual_IVT1
DINT
Actual value for pulse signal
8.0
Setpoint_IVT2
DINT
Setpoint for pulse signal
12.0
Actual_IVT2
DINT
Actual value for pulse signal
248.0
Setpoint_IVT32
DINT
Setpoint for pulse signal
252.0
Actual_IVT32
DINT
Actual value for pulse signal
Configuration | Class C74 IVT, Interval Generator
16
PLC user interface
Data record
5.4
Data record
5.4.1
DB_DiT_C74_Record
The DB_DiT_C74_Record data block contains all object data records. The
record count is specified in the header. If the record count is changed, ensure
that the size of the structure array corresponds at least to the record count.
Addr.
Name
Data type
Presetting
Comment
0.0
Header_StructType
INT
7
Specifies the block structure type.
System setting that must remain unchanged.
2.0
Header_RecLength
INT
56
Specifies the length (in words) of the data
record.
System setting that must remain unchanged.
4.0
Header_RecNumber
INT
32
Specifies the number of data records.
6.0
Header_RecBegin
INT
7
Specifies the record start (byte-address/2; fixed
value).
8.0
MinCycle
INT
0
Shows the minimum time requirement (ms) of
the cyclical processing of this class.
10.0
MaxCycle
INT
0
Shows the maximum time requirement (ms) of
the cyclical processing of this class.
12.0
LastCycle
INT
0
Shows the time requirement (ms) of the last
cyclical processing of this class.
14.0
IVT[1]
UDT
Data record for the object with the number 1
126.0
IVT[2]
UDT
Data record for the object with the number 2
5.5
Programming examples
The following examples show how you code user programs for the C74 IVT
class.
Programming language: STL
Statements
Plant Direct iT
V8.20, R16
Statement no.
Description
1
Activate interval generator
2
Start interval sequence
3
Endless cycling
4
Monitor whether interval sequence is running.
5
Monitor whether interval sequence is complete.
6
Query whether a specific interval is currently active.
Configuration | Class C74 IVT, Interval Generator
17
PLC user interface
Programming examples
Implementation
Statement 1:
U
=
M 10.0
"IVT 001-sEnable"
// Interval sequence is released
Statement 2:
U
=
M 10.1
"IVT 001-sRelease"
// Interval sequence is started
Statement 3:
U
=
M 11.0
"IVT 001-sEndles"
// Clock interval sequence endless
Statement 4:
U
=
"IVT 001-sRun"
M 12.0
// Interval sequence is running
Statement 5:
U
=
"IVT 001-sComplete"
M 13.0
// Interval sequence is complete
Statement 6:
U
=
Plant Direct iT
V8.20, R16
"IVT 001-Intervall 01"
M 14.0
// Interval 01 currently active
Configuration | Class C74 IVT, Interval Generator
18
PLC user interface
Programming examples
Plant Direct iT
V8.20, R16
Configuration | Class C74 IVT, Interval Generator
19
Скачать