Cel.WriteCelStringEx



WriteCelStringEx(Status As Long,iClass As Long,strCelString As String,iGroup As Long,szPvName As String,Value As Variant)

Parameters

Status As Long
StatusValue contains all actual status information as single bits...

Status Bits:
Status
Bit
Value (DEC)
Value (HEX)
ST_M1 / Status1
0
1
1
ST_M2 / Status2
1
2
2
ST_M3 / Status3
2
4
4
ST_M4 / Status4
3
8
8
ST_M5 / Status5
4
16
10
ST_M6 / Status6
5
32
20
ST_M7 / Status7
6
64
40
ST_M8 / Status8
7
128
80
SELEC / Select
8
256
100
REV / Revision
9
512
200
DIREC / Desired direction
10
1.024
400
RTE / Runtime exceeded
11
2.048
800
MVALUE / Manual value
12
4.096
1000
ST_M14 / Status14
13
8.192
2000
ST_M15 / Status15
14
16.384
4000
ST_M16 / Status16
15
32.768
8000
GR / General request
16
65.536
10000
SPONT / Spontaneous
17
131.072
20000
I-BIT / Invalid
18
262.144
40000
SU/WI / Summer/winter time announcement
19
524.288
80000
N_UPD / switched off
20
1.048.576
100000
RT_E / Realtime external
21
2.097.152
200000
RT_I / Realtime internal
22
4.194.304
400000
NSORT / Not sortable
23
8.388.608
800000
DM_TR / Default message trafo value
24
16.777.216
1000000
RM_TR / Running message trafo value
25
33.554.432
2000000
INFO / Info for variable
26
67.108.864
4000000
AVALUE / Alternative value
27
134.217.728
8000000
ACTUAL / Not updated
29
536.870.912
20000000
WINTER / Winter time
30
1.073.741.824
40000000
BLINK / Blink
31
2.147.483.648
80000000
TCBx / Transmission cause bit x
32
4.294.967.296
100000000
TCBx / Transmission cause bit x
33
8.589.934.592
200000000
TCBx / Transmission cause bit x
34
17.179.869.184
400000000
TCBx / Transmission cause bit x
35
34.359.738.368
800000000
TCBx / Transmission cause bit x
36
68.719.476.736
1000000000
TCBx / Transmission cause bit x
37
137.438.953.472
2000000000
PN_BIT / P/N bit
38
274.877.906.944
4000000000
iClass As Long
ID of AlarmClass for filtering within the chronological event list...
strCelString As String
The given String will be written into the chronological event list (actual Timestamp)

Example: "VBA Error " & Err.Number & " in procedure DoSome!"
iGroup As Long
ID of AlarmGroup for filtering within the chronological event list...
szPvName As String
Name of a variable, the variable will be listed in the chronological event list...
Value As Variant
Value as Variant, means the value entry within the chronological event list...
ED
not used
RT
avaliable

Remarks

Creates a new extended cel-item (only runtime)

Sample:


Public Sub WriteExString2CEL(YourText As String, VarName As String, _
							 GroupNr As Long, ClassNr As Long, _
							 vValue As Variant, lStatus As Long)
	'a new entry will be generated in the CEL with the actual timestamp...
	Call thisProject.Cel.WriteCelStringEx(YourText, VarName, GroupNr, _
										ClassNr, vValue, lStatus)
End Sub


See Also

Cel