| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class | Code  ClassTree | INDEX NO INDEX |
Class Speed
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 08-MAR-2026 11:05:32.00 | |
| Code | rt_plc_arithm.c | |
Derivative unit.

Differentiation of the input signal. The output is proportional to the rate of change (derivative) of the input.
| RtBody attributes pwr_sClass_speed | |||
|---|---|---|---|
| Float32 | In | IN | Value of the input signal. |
| Float32 | ActVal | VAL | Rate of change. ( Change per unit of time). ActVal(t) = TimFact * (In(t) - In(t-1))/ ScanTime , where TimFact is the derivative time. |
| Float32 | TimFact | TimFact | Derivative time in seconds. Scale factor in seconds / unit. |
| Pointer to Float32 | ScanTime | ScanTime | The program cycle period (= sampling interval) in seconds is stored automatically at the compilation. |
| DevBody attributes | |||
|---|---|---|---|
| PlcNode | PlcNode | ||
| GraphPlcNode | |
|---|---|
| object_type | 128 |
| parameters[0] | 1 |
| parameters[1] | 0 |
| parameters[2] | 1 |
| parameters[3] | 0 |
| subwindows | 0 |
| graphmethod | 0 (standard, individual attributes) |
| graphindex | 0 |
| default_mask[0] | 1 |
| default_mask[1] | 1 |
| segname_annotation | 1 |
| compmethod | 4 |
| compindex | 0 |
| tracemethod | 0 |
| traceindex | 0 |
| executeordermethod | 2 |
| objname | Speed |
| graphname | Speed |
| debugpar | |
| Template Object | |
|---|---|
| TimFact | 1.0 |
| In Input | ||
|---|---|---|
| Class | Input | |
| Type | Float32 | |
| Flags | STATE | NOEDIT | |
| GraphName | IN | |
| Body | RtBody | |
Value of the input signal.
| ActVal Output | ||
|---|---|---|
| Class | Output | |
| Type | Float32 | |
| Flags | STATE | NOEDIT | |
| GraphName | VAL | |
| Body | RtBody | |
Rate of change. ( Change per unit of time). ActVal(t) = TimFact * (In(t) - In(t-1))/ ScanTime , where TimFact is the derivative time.
| TimFact Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | TimFact | |
| Body | RtBody | |
Derivative time in seconds. Scale factor in seconds / unit.
| ScanTime Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Pointer to Float32 | |
| Flags | INVISIBLE | POINTER | PRIVATE | |
| GraphName | ScanTime | |
| Body | RtBody | |
The program cycle period (= sampling interval) in seconds is stored automatically at the compilation.
| PlcNode Buffer | ||
|---|---|---|
| Class | Buffer | |
| Type | PlcNode | |
| Flags | INVISIBLE | |
| Body | DevBody | |