-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathioc.template
397 lines (344 loc) · 9.65 KB
/
ioc.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
# Used by Channel Access Security to determine access to this IOC.
record(mbbo, "$(IOCNAME):ACCESS") {
field(DESC, "$(IOCNAME) Acc Mode")
field(PINI, "YES")
field(ZRST, "Running")
field(ZRSV, "NO_ALARM")
field(ONST, "Maintenance")
field(ONSV, "MINOR")
field(TWST, "Test")
field(TWSV, "MINOR")
field(THST, "OFFLINE")
field(THSV, "MAJOR")
info(autosaveFields, "VAL")
}
record(stringin, "$(IOCNAME):STARTTOD") {
field(DESC, "Time and date of startup")
field(DTYP, "Soft Timestamp")
field(PINI, "YES")
field(INP, "@$(TODFORMAT)")
}
record(stringin, "$(IOCNAME):TOD") {
field(DESC, "Current time and date")
field(DTYP, "Soft Timestamp")
field(SCAN, "1 second")
field(INP, "@$(TODFORMAT)")
}
record(calcout, "$(IOCNAME):HEARTBEAT") {
field(DESC, "1 Hz counter since startup")
field(CALC, "(A<2147483647)?A+1:1")
field(SCAN, "1 second")
field(INPA, "$(IOCNAME):HEARTBEAT")
}
# if autosave is working, START_CNT creates a running count of
# number of times the IOC was started.
record(calcout, "$(IOCNAME):START_CNT") {
field(DESC, "Increments at startup")
field(CALC, "A+1")
field(PINI, "YES")
field(INPA, "$(IOCNAME):START_CNT")
info(autosaveFields_pass0, "VAL")
}
#
# Using an existing internal set of subroutines, this
# PV updates the Access Security mechanism dynamically.
# The .acf file is re-read.
#
record( sub, "$(IOCNAME):READACF") {
field(DESC, "$(IOCNAME) ACF Update")
field(INAM, "asSubInit")
field(SNAM, "asSubProcess")
field(BRSV, "INVALID")
}
record(sub, "$(IOCNAME):SYSRESET") {
alias("$(IOCNAME):SysReset")
field(DESC, "IOC Restart" )
field(SNAM, "rebootProc")
field(BRSV, "INVALID")
field(L, "1")
}
record(ai, "$(IOCNAME):CA_CLNT_CNT") {
field(DESC, "Number of CA Clients")
field(SCAN, "I/O Intr")
field(DTYP, "IOC stats")
field(INP, "@ca_clients")
field(HOPR, "200")
field(HIHI, "175")
field(HIGH, "100")
field(HHSV, "MAJOR")
field(HSV, "MINOR")
info(autosaveFields_pass0, "HOPR LOPR HIHI HIGH LOW LOLO HHSV HSV LSV LLSV")
}
record(ai, "$(IOCNAME):CA_CONN_CNT") {
field(DESC, "Number of CA Connections")
field(SCAN, "I/O Intr")
field(DTYP, "IOC stats")
field(INP, "@ca_connections")
field(HOPR, "5000")
field(HIHI, "4500")
field(HIGH, "4000")
field(HHSV, "MAJOR")
field(HSV, "MINOR")
info(autosaveFields_pass0, "HOPR LOPR HIHI HIGH LOW LOLO HHSV HSV LSV LLSV")
}
record(ai, "$(IOCNAME):RECORD_CNT") {
field(DESC, "Number of Records")
field(PINI, "YES")
field(DTYP, "IOC stats")
field(INP, "@records")
}
record(ai, "$(IOCNAME):FD_MAX") {
field(DESC, "Max File Descriptors")
field(PINI, "YES")
field(DTYP, "IOC stats")
field(INP, "@maxfd")
}
record(ai, "$(IOCNAME):FD_CNT") {
field(DESC, "Allocated File Descriptors")
field(SCAN, "I/O Intr")
field(DTYP, "IOC stats")
field(FLNK, "$(IOCNAME):FD_FREE PP MS")
field(INP, "@fd")
}
record(calc, "$(IOCNAME):FD_FREE") {
field(DESC, "Available FDs")
field(CALC, "B>0?B-A:C")
field(INPA, "$(IOCNAME):FD_CNT NPP MS")
field(INPB, "$(IOCNAME):FD_MAX NPP MS")
field(INPC, "1000")
field(HOPR, "150")
field(LOLO, "5")
field(LOW, "20")
field(LLSV, "MAJOR")
field(LSV, "MINOR")
info(autosaveFields_pass0, "HOPR LOPR LOW LOLO LSV LLSV")
}
record(ai, "$(IOCNAME):SYS_CPU_LOAD") {
field(DESC, "System CPU Load")
field(SCAN, "I/O Intr")
field(DTYP, "IOC stats")
field(INP, "@sys_cpuload")
field(EGU, "%")
field(PREC, "1")
field(HOPR, "100")
field(HIHI, "80")
field(HIGH, "70")
field(HHSV, "MAJOR")
field(HSV, "MINOR")
info(autosaveFields_pass0, "HOPR LOPR HIHI HIGH LOW LOLO HHSV HSV LSV LLSV")
}
record(ai, "$(IOCNAME):IOC_CPU_LOAD") {
alias("$(IOCNAME):LOAD")
field(DESC, "IOC CPU Load")
field(SCAN, "I/O Intr")
field(DTYP, "IOC stats")
field(INP, "@ioc_cpuload")
field(EGU, "%")
field(PREC, "1")
field(HOPR, "100")
field(HIHI, "80")
field(HIGH, "70")
field(HHSV, "MAJOR")
field(HSV, "MINOR")
info(autosaveFields_pass0, "HOPR LOPR HIHI HIGH LOW LOLO HHSV HSV LSV LLSV")
}
record(ai, "$(IOCNAME):CPU_CNT") {
field(DESC, "Number of CPUs")
field(DTYP, "IOC stats")
field(INP, "@no_of_cpus")
field(PINI, "YES")
}
record(ai, "$(IOCNAME):SUSP_TASK_CNT") {
field(DESC, "Number Suspended Tasks")
field(SCAN, "I/O Intr")
field(DTYP, "IOC stats")
field(INP, "@suspended_tasks")
field(HIHI, "1")
field(HHSV, "MAJOR")
info(autosaveFields_pass0, "HOPR LOPR HIHI HIGH LOW LOLO HHSV HSV LSV LLSV")
}
record(ai, "$(IOCNAME):MEM_USED") {
field(DESC, "Allocated Memory")
field(SCAN, "I/O Intr")
field(DTYP, "IOC stats")
field(INP, "@allocated_bytes")
field(EGU, "byte")
}
record(ai, "$(IOCNAME):MEM_FREE") {
field(DESC, "Free Memory")
field(SCAN, "I/O Intr")
field(DTYP, "IOC stats")
field(INP, "@free_bytes")
field(EGU, "byte")
field(LLSV, "MAJOR")
field(LSV, "MINOR")
info(autosaveFields_pass0, "HOPR LOPR LOW LOLO LSV LLSV")
}
record(ai, "$(IOCNAME):MEM_MAX") {
field(DESC, "Maximum Memory")
field(SCAN, "I/O Intr")
field(DTYP, "IOC stats")
field(INP, "@total_bytes")
field(EGU, "byte")
}
record(ao, "$(IOCNAME):CA_UPD_TIME") {
field(DESC, "CA Check Update Period")
field(DTYP, "IOC stats")
field(OUT, "@ca_scan_rate")
field(EGU, "sec")
field(DRVH, "60")
field(DRVL, "1")
field(HOPR, "60")
field(VAL, "15")
field(PINI, "YES")
}
record(ao, "$(IOCNAME):FD_UPD_TIME") {
field(DESC, "FD Check Update Period")
field(DTYP, "IOC stats")
field(OUT, "@fd_scan_rate")
field(EGU, "sec")
field(DRVH, "60")
field(DRVL, "1")
field(HOPR, "60")
field(VAL, "20")
field(PINI, "YES")
}
record(ao, "$(IOCNAME):LOAD_UPD_TIME") {
field(DESC, "CPU Check Update Period")
field(DTYP, "IOC stats")
field(OUT, "@cpu_scan_rate")
field(EGU, "sec")
field(DRVH, "60")
field(DRVL, "1")
field(HOPR, "60")
field(VAL, "10")
field(PINI, "YES")
}
record(ao, "$(IOCNAME):MEM_UPD_TIME") {
field(DESC, "Memory Check Update Period")
field(DTYP, "IOC stats")
field(OUT, "@memory_scan_rate")
field(EGU, "sec")
field(DRVH, "60")
field(DRVL, "1")
field(HOPR, "60")
field(VAL, "10")
field(PINI, "YES")
}
record(stringin, "$(IOCNAME):ST_SCRIPT1") {
field(DESC, "Startup Script Part1")
field(DTYP, "IOC stats")
field(INP, "@startup_script_1")
field(PINI, "YES")
}
record(stringin, "$(IOCNAME):ST_SCRIPT2") {
field(DESC, "Startup Script Part2")
field(DTYP, "IOC stats")
field(INP, "@startup_script_2")
field(PINI, "YES")
}
record(waveform, "$(IOCNAME):ST_SCRIPT") {
field(DESC, "Startup Script")
field(DTYP, "IOC stats")
field(INP, "@startup_script")
field(NELM, "120")
field(FTVL, "CHAR")
field(PINI, "YES")
}
record(stringin, "$(IOCNAME):KERNEL_VERS") {
field(DESC, "Kernel Version")
field(DTYP, "IOC stats")
field(INP, "@kernel_ver")
field(PINI, "YES")
}
record(stringin, "$(IOCNAME):EPICS_VERS") {
field(DESC, "EPICS Version")
field(DTYP, "IOC stats")
field(INP, "@epics_ver")
field(PINI, "YES")
}
record(waveform, "$(IOCNAME):EPICS_VERSION") {
field(DESC, "EPICS Version")
field(DTYP, "IOC stats")
field(INP, "@epics_ver")
field(NELM, "120")
field(FTVL, "CHAR")
field(PINI, "YES")
}
record(stringin, "$(IOCNAME):HOSTNAME") {
field(DESC, "Host Name")
field(DTYP, "IOC stats")
field(INP, "@hostname")
field(PINI, "YES")
}
record(stringin, "$(IOCNAME):APP_DIR1") {
field(DESC, "Application Directory Part 1")
field(DTYP, "IOC stats")
field(INP, "@pwd1")
field(PINI, "YES")
}
record(stringin, "$(IOCNAME):APP_DIR2") {
field(DESC, "Application Directory Part 2")
field(DTYP, "IOC stats")
field(INP, "@pwd2")
field(PINI, "YES")
}
record(waveform, "$(IOCNAME):APP_DIR") {
field(DESC, "Application Directory")
field(DTYP, "IOC stats")
field(INP, "@pwd")
field(NELM, "160")
field(FTVL, "CHAR")
field(PINI, "YES")
}
record(stringin, "$(IOCNAME):UPTIME") {
field(DESC, "Elapsed Time since Start")
field(SCAN, "1 second")
field(DTYP, "IOC stats")
field(INP, "@up_time")
field(PINI, "YES")
}
record(stringin, "$(IOCNAME):ENGINEER") {
field(DESC, "Engineer")
field(DTYP, "IOC stats")
field(INP, "@engineer")
field(PINI, "YES")
}
record(stringin, "$(IOCNAME):LOCATION") {
field(DESC, "Location")
field(DTYP, "IOC stats")
field(INP, "@location")
field(PINI, "YES")
}
record(ai, "$(IOCNAME):PROCESS_ID") {
field(DESC, "Process ID")
field(PINI, "YES")
field(DTYP, "IOC stats")
field(INP, "@proc_id")
}
record(ai, "$(IOCNAME):PARENT_ID") {
field(DESC, "Parent Process ID")
field(PINI, "YES")
field(DTYP, "IOC stats")
field(INP, "@parent_proc_id")
}
record(ai, "$(IOCNAME):SCANONCE_Q_SIZE") {
field(DESC, "max # entries in IOC scanOnce queue")
field(DTYP, "IOC stats")
field(INP, "@scanOnceQueueSize")
field(PINI, "YES")
}
record(ai, "$(IOCNAME):CB_Q_SIZE") {
field(DESC, "max # entries in IOC callback queues")
field(DTYP, "IOC stats")
field(INP, "@cbQueueSize")
field(PINI, "YES")
}
substitute "QUEUE=scanOnce, QUEUE_CAPS=SCANONCE, QUEUE_TYPE=SCANONCE"
include "iocQueue.db"
substitute "QUEUE=cbLow, QUEUE_CAPS=CBLOW, QUEUE_TYPE=CB"
include "iocQueue.db"
substitute "QUEUE=cbMedium, QUEUE_CAPS=CBMEDIUM, QUEUE_TYPE=CB"
include "iocQueue.db"
substitute "QUEUE=cbHigh, QUEUE_CAPS=CBHIGH, QUEUE_TYPE=CB"
include "iocQueue.db"