@@ -29,6 +29,7 @@ public enum BlockType
29
29
FB ,
30
30
FC ,
31
31
OB ,
32
+ UDT ,
32
33
}
33
34
34
35
public enum ProgrammingLanguage : int
@@ -312,7 +313,30 @@ public int GetBlockXml(uint relid, out string blockName, out ProgrammingLanguage
312
313
Ids . DB_Class_Rid => BlockType . DB ,
313
314
Ids . FB_Class_Rid => BlockType . FB ,
314
315
Ids . FC_Class_Rid => BlockType . FC ,
315
- Ids . OB_Class_Rid => BlockType . OB ,
316
+ Ids . UDT_Class_Rid => BlockType . UDT ,
317
+ Ids . OB_Class_Rid => BlockType . OB , // OB
318
+ 2637 => BlockType . OB , // ACCcommunicationOB
319
+ 2639 => BlockType . OB , // CPUredundancyErrorOB
320
+ 2640 => BlockType . OB , // CyclicOB
321
+ 2641 => BlockType . OB , // DiagnosticErrorOB
322
+ 2642 => BlockType . OB , // IOaccessErrorOB
323
+ 2643 => BlockType . OB , // IOredundancyErrorOB
324
+ 2644 => BlockType . OB , // PeripheralAccessErrorOB
325
+ 2645 => BlockType . OB , // ProcessEventOB
326
+ 2646 => BlockType . OB , // ProfileEventOB
327
+ 2647 => BlockType . OB , // ProgramCycleOB (OB1)
328
+ 2648 => BlockType . OB , // ProgrammingErrorOB
329
+ 2649 => BlockType . OB , // PullPlugEventOB
330
+ 2650 => BlockType . OB , // RackStationFailureOB
331
+ 2651 => BlockType . OB , // StartupOB
332
+ 2652 => BlockType . OB , // StatusEventOB
333
+ 2653 => BlockType . OB , // SynchronousCycleOB
334
+ 2654 => BlockType . OB , // TechnologyEventOB
335
+ 2655 => BlockType . OB , // TimeDelayOB
336
+ 2656 => BlockType . OB , // TimeErrorOB
337
+ 2657 => BlockType . OB , // TimeOfDayOB
338
+ 2658 => BlockType . OB , // UpdateEventOB
339
+ 8440 => BlockType . OB , // LookAheadOB
316
340
} ;
317
341
318
342
0 commit comments