| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class | Code  ClassTree | INDEX NO INDEX |
Class SetDi
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 08-MAR-2026 11:05:32.00 | |
| Code | rt_plc_macro_io.h | |
Set Digital input.

If the input signal is TRUE, the specified local Di-signal is set at the execution, otherwise there will be no effect on the Di-signal. The complete name of the Di-signal has to be supplied; its last segment is shown in the right empty part of the symbol.Note!
This object is used for simulation purposes. IOSimulFlag will be set TRUE and IOReadWriteFlag FALSE in the $Node object, i.e. any physical I/O-hardware may not be used on the node in connection to this object.
| RtBody attributes pwr_sClass_setdi | |||
|---|---|---|---|
| Boolean | In | in | The input is connected to a binary signal or left open. In the latter case In is default TRUE and the condition not adjustable in the run time system and consequently the function is unconditional. Specifies whether the Di-signal should be set or not. FALSE means that the signal is not effected, and TRUE means that a local Di-signal is set. |
| DevBody attributes | |||
|---|---|---|---|
| AttrRef | DiObject | In | Used by the PLC Editor. Specifies the complete name of the current Di object. |
| AttrRef | SigChanCon | Used by the PLC Editor. | |
| Int32 | DiObjectSegments | Specifies how many segments of the Di object name that is to be displayed in the symbol of the SetDi object. The segments are counted from behind. 0 and 1 both result in displaying the last segment of the signal object name. |
|
| Boolean | ShowSigChanCon | Specifies if the name on the channel object ( associated with the signal object) is to be displayed in the symbol of the SetDi object or not. FALSE means no displaying and TRUE displaying. See also SigChanConSegments. |
|
| Int32 | SigChanConSegments | Specifies, when ShowSigChanCon = TRUE, how many segments of the channel object name that is to be displayed in the symbol of the SetDi object. The segments are counted from behind. 0 and 1 both result in displaying the last segment of the channel object name. |
|
| PlcNode | PlcNode | ||
| GraphPlcNode | |
|---|---|
| object_type | 117 |
| parameters[0] | 1 |
| parameters[1] | 0 |
| parameters[2] | 0 |
| parameters[3] | 0 |
| subwindows | 0 |
| graphmethod | 7 (Get,Set) |
| graphindex | 1 |
| default_mask[0] | 1 |
| default_mask[1] | 0 |
| segname_annotation | 0 |
| devbody_annotation | 1 |
| compmethod | 38 |
| compindex | 0 |
| tracemethod | 1 |
| traceindex | 1 |
| connectmethod | 1 |
| executeordermethod | 6 |
| objname | SetDi |
| graphname | SetDi |
| debugpar | In |
| Template Object | |
|---|---|
| In | 1 |
| In Input | ||
|---|---|---|
| Class | Input | |
| Type | Boolean | |
| Flags | STATE | RTVIRTUAL | DEVBODYREF | NOEDIT | |
| GraphName | in | |
| Body | RtBody | |
The input is connected to a binary signal or left open. In the latter case In is default TRUE and the condition not adjustable in the run time system and consequently the function is unconditional. Specifies whether the Di-signal should be set or not. FALSE means that the signal is not effected, and TRUE means that a local Di-signal is set.
| DiObject Intern | ||
|---|---|---|
| Class | Intern | |
| Type | AttrRef | |
| Flags | ||
| GraphName | In | |
| Body | DevBody | |
Used by the PLC Editor. Specifies the complete name of the current Di object.
| SigChanCon Intern | ||
|---|---|---|
| Class | Intern | |
| Type | AttrRef | |
| Flags | INVISIBLE | |
| Body | DevBody | |
Used by the PLC Editor.
| DiObjectSegments Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| Body | DevBody | |
Specifies how many segments of the Di object name that is to be displayed in the symbol of the SetDi object. The segments are counted from behind. 0 and 1 both result in displaying the last segment of the signal object name.
| ShowSigChanCon Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | ||
| Body | DevBody | |
Specifies if the name on the channel object ( associated with the signal object) is to be displayed in the symbol of the SetDi object or not. FALSE means no displaying and TRUE displaying. See also SigChanConSegments.
| SigChanConSegments Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| Body | DevBody | |
Specifies, when ShowSigChanCon = TRUE, how many segments of the channel object name that is to be displayed in the symbol of the SetDi object. The segments are counted from behind. 0 and 1 both result in displaying the last segment of the channel object name.
| PlcNode Buffer | ||
|---|---|---|
| Class | Buffer | |
| Type | PlcNode | |
| Flags | INVISIBLE | |
| Body | DevBody | |