| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class | Code  ClassTree | INDEX NO INDEX |
Class CSub
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 08-MAR-2026 11:05:32.00 | |
| Code | rt_plc_macro_grafcet.h | |
Conditional execution of objects located in a Sub-window.

The code in the sub-window is, executed if, and only if, the logical input signal is TRUE; compare with an ordinary Order object where execution is done as long as the input is TRUE and after that further once, i.e. an Order object is always executed at least twice. put below a WindowPlc object (see p. 3-396) below the CSub-object. The input is connected to any logical signal; an Order object is only connected to Grafcet-steps. By means of the Attribute Editor the value of the input signal can be inverted. The sub-window may contain PLC objects without any known restrictions.
| RtBody attributes pwr_sClass_csub | |||
|---|---|---|---|
| Boolean | in | in | Specifies whether the sub-window will be executed or not. FALSE means no execution and TRUE means execution of the objects in the sub-window. |
| DevBody attributes | |||
|---|---|---|---|
| PlcNode | PlcNode | ||
| GraphPlcNode | |
|---|---|
| object_type | 104 |
| parameters[0] | 1 |
| parameters[1] | 0 |
| parameters[2] | 0 |
| parameters[3] | 0 |
| subwindows | 1 |
| subwindow_class[0] | pwrb:Class-WindowPlc |
| graphmethod | 7 (Get,Set) |
| graphindex | 0 |
| default_mask[0] | 1 |
| default_mask[1] | 0 |
| segname_annotation | 1 |
| compmethod | 17 |
| compindex | 0 |
| tracemethod | 2 |
| traceindex | 1 |
| executeordermethod | 2 |
| objname | CSub |
| graphname | CSub |
| debugpar | in |
| Template Object | |
|---|---|
| in | 1 |
| in Input | ||
|---|---|---|
| Class | Input | |
| Type | Boolean | |
| Flags | STATE | RTVIRTUAL | NOEDIT | |
| GraphName | in | |
| Body | RtBody | |
Specifies whether the sub-window will be executed or not. FALSE means no execution and TRUE means execution of the objects in the sub-window.
| PlcNode Buffer | ||
|---|---|---|
| Class | Buffer | |
| Type | PlcNode | |
| Flags | INVISIBLE | |
| Body | DevBody | |