| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class | Code  ClassTree | INDEX NO INDEX |
Class InitStep
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 08-MAR-2026 11:05:32.00 | |
| Code | rt_plc_macro_grafcet.h | |
The first step in a Grafcet-chain.

At least one InitStep object has to be included in
every sequential chain.
The object is active when the PLC program that contains
the object is to start running.
The PlcPgm object has an attribute, ResetObject, where
the name of a Di , Do, or Dv object is specified. This
attribute is used as a reset signal in one or more
sequential chains in the PLC program in the following
way. When the reset signal makes the transition:
- 0 -> 1 each Step, InitStep and Order object in the
PLC program becomes inactive. Stored orders are
aborted.
- 1 -> 0 the InitStep object(s) of the PLC program
becomes active.
If individual reset signals are required for every
single sequential chain the number of sequential chains
has to be limited to one per PLC program.
The vertical connections are connected to Trans
objects.
The horizontal connection may at the same time be
connected to one or more Order objects as well as one
or more Stoxx , Setxx or Resxx objects; see figure 3-51
on page 3-328. It may also be left open or used as an
ordinary binary signal; see figure 3-22 on page 3-184.
ExamplesFigure below shows how an InitStep , ISO, may be configured in a straight sequential chain. A chain is said to be straight if it does not contain any branching.

InitStep Object in a Straight Sequential Chain The And object in figure below will be executed every time when the PLC program executes. The compilation may result in a warning 'No Grafcet standard' because of the connections between the And object and the Order respectively InitStep object, but the solution works

Example of the Use of Step- and Order Status as an Ordinary Binary Signal
| RtBody attributes pwr_sClass_initstep | |||
|---|---|---|---|
| Boolean | Status | sts1 | Used by the PLC Editor. |
| Boolean | Status2 | sts2 | Used by the PLC Editor. |
| Array of Boolean | Order | Order | Specifies the state of the step. FALSE means an inactive step and TRUE means an active step. The value may be picked up in another program by means of a GetDp object. Order[0] is an output both to Order and Trans objects. It is set by the preceding Trans object. The subsequent Trans object checks both Order[0] and Order[1]. If Order[0] = Order[1] = TRUE Order[0] is cleared by the subsequent step. In the structure of the object or referenced this attribute is named Status[0]. Order[1] is a dummy variable that follows Order[0]. In the structure of the object or referenced this attribute is named Status[1]. |
| Boolean | ResetOld | ResetOld | |
| Boolean | StatusInit | StatusInit | |
| DevBody attributes | |||
|---|---|---|---|
| PlcNode | PlcNode | ||
| GraphPlcNode | |
|---|---|
| object_type | 31 |
| parameters[0] | 0 |
| parameters[1] | 0 |
| parameters[2] | 3 |
| parameters[3] | 0 |
| subwindows | 0 |
| graphmethod | 4 (special) |
| graphindex | 3 |
| default_mask[0] | 0 |
| default_mask[1] | 7 |
| segname_annotation | 1 |
| compmethod | 13 |
| compindex | 1 |
| tracemethod | 7 |
| traceindex | 1 |
| executeordermethod | 4 |
| objname | IS |
| graphname | IS |
| debugpar | Order[0] |
| Template Object | |
|---|---|
| Status | 1 |
| Status Output | ||
|---|---|---|
| Class | Output | |
| Type | Boolean | |
| Flags | STATE | RTVIRTUAL | INVISIBLE | |
| GraphName | sts1 | |
| Body | RtBody | |
Used by the PLC Editor.
| Status2 Output | ||
|---|---|---|
| Class | Output | |
| Type | Boolean | |
| Flags | STATE | RTVIRTUAL | INVISIBLE | |
| GraphName | sts2 | |
| Body | RtBody | |
Used by the PLC Editor.
| Order Output | ||
|---|---|---|
| Class | Output | |
| Type | Array of Boolean | |
| Flags | ARRAY | STATE | NOEDIT | NOREMOVE | REDUTRANSFER | |
| Elements | 2 | |
| GraphName | Order | |
| Body | RtBody | |
Specifies the state of the step. FALSE means an inactive step and TRUE means an active step. The value may be picked up in another program by means of a GetDp object. Order[0] is an output both to Order and Trans objects. It is set by the preceding Trans object. The subsequent Trans object checks both Order[0] and Order[1]. If Order[0] = Order[1] = TRUE Order[0] is cleared by the subsequent step. In the structure of the object or referenced this attribute is named Status[0]. Order[1] is a dummy variable that follows Order[0]. In the structure of the object or referenced this attribute is named Status[1].
| ResetOld Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | STATE | NOEDIT | INVISIBLE | REDUTRANSFER | |
| GraphName | ResetOld | |
| Body | RtBody | |
| StatusInit Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | STATE | NOEDIT | INVISIBLE | |
| GraphName | StatusInit | |
| Body | RtBody | |
| PlcNode Buffer | ||
|---|---|---|
| Class | Buffer | |
| Type | PlcNode | |
| Flags | INVISIBLE | |
| Body | DevBody | |