| Volume NMps | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class | Code  ClassTree | INDEX NO INDEX |
Class NMpsTrp
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 07-JUL-2017 13:58:14.00 | |
| Code | nmps_plc.c | |
Transport of dataobject between NMpsCell objects.

The NMpsTrp object is connected to two cell objects, of type NMpsCell, NMpsStoreCell or NMpsOutCell. The upper connection pin is connected to the rear end of one cell, and the lower connection pin is connected to the front end of the other cell. When the transport is triggered, an object (or part of an object) is transported from one cell to the other. There are a number of different types of transportations - The whole object is transported. - First the front end is transported, and later the rear end (or vice versa). - All the data objects in the source cell are transported to the target cell. - All the data objects are transported, but only if the target cell is empty. A transport can be forward or reverse, e.i. from the upper cell to the lower, or from the lower cell to the upper. The dataobject can be divided in front and back, where in the case of a forward transportation, the front is moved first, and the back later. In a reverse transport, the back is moved first, and the front later. The transportation of front and back is controlled by different trigg inputs.See also
| RtBody attributes pwr_sClass_NMpsTrp | |||
|---|---|---|---|
| Int32 | In | In | Connection to the rear end of a cell object. |
| Int32 | Out | Out | Connection to the front end of a cell object. |
| Boolean | TriggForwFront | f | Transport a dataobject in forward direction. If Function is 0 only front is transported. |
| Boolean | TriggForwBack | fb | Transport the back of a data object in forward direction. Valid if Function is 0. |
| Boolean | TriggReverseFront | r | Transport a dataobject in reverse direction. If Function is 0 only front is transported. |
| Boolean | TriggReverseBack | rb | Transport the back of a data object in reverse direction. Valid if Function is 0. |
| Boolean | Status | sts | True if a transportation failed. |
| TrpFunctionMask | Function | Transport function. | |
| Boolean | OldTriggForwFront | ||
| Boolean | OldTriggForwBack | ||
| Boolean | OldTriggReverseFront | ||
| Boolean | OldTriggReverseBack | ||
| Boolean | FuncAllForward | ||
| Boolean | FuncAllReverse | ||
| DevBody attributes | |||
|---|---|---|---|
| pwrs:Class-$PlcNode | PlcNode | ||
| GraphPlcNode | |
|---|---|
| object_type | 223 |
| parameters[0] | 6 |
| parameters[1] | 0 |
| parameters[2] | 1 |
| parameters[3] | 0 |
| graphmethod | 16 |
| graphindex | 1 |
| default_mask[0] | 7 |
| default_mask[1] | 0 |
| segname_annotation | 1 |
| compmethod | 41 |
| compindex | 1 |
| tracemethod | 0 |
| traceindex | 1 |
| connectmethod | 0 |
| executeordermethod | 9 |
| objname | Trp |
| graphname | Trp |
| Template Object | |
|---|---|
| Function | 1 |
| In Input | ||
|---|---|---|
| Class | Input | |
| Type | Int32 | |
| Flags | State|Invisible | |
| GraphName | In | |
| Body | RtBody | |
Connection to the rear end of a cell object.
| Out Input | ||
|---|---|---|
| Class | Input | |
| Type | Int32 | |
| Flags | State|Invisible | |
| GraphName | Out | |
| Body | RtBody | |
Connection to the front end of a cell object.
| TriggForwFront Input | ||
|---|---|---|
| Class | Input | |
| Type | Boolean | |
| Flags | Noedit|Noinvert | |
| GraphName | f | |
| Body | RtBody | |
Transport a dataobject in forward direction. If Function is 0 only front is transported.
| TriggForwBack Input | ||
|---|---|---|
| Class | Input | |
| Type | Boolean | |
| Flags | Noedit|Noinvert | |
| GraphName | fb | |
| Body | RtBody | |
Transport the back of a data object in forward direction. Valid if Function is 0.
| TriggReverseFront Input | ||
|---|---|---|
| Class | Input | |
| Type | Boolean | |
| Flags | Noedit|Noinvert | |
| GraphName | r | |
| Body | RtBody | |
Transport a dataobject in reverse direction. If Function is 0 only front is transported.
| TriggReverseBack Input | ||
|---|---|---|
| Class | Input | |
| Type | Boolean | |
| Flags | Noedit|Noinvert | |
| GraphName | rb | |
| Body | RtBody | |
Transport the back of a data object in reverse direction. Valid if Function is 0.
| Status Output | ||
|---|---|---|
| Class | Output | |
| Type | Boolean | |
| Flags | Noedit | |
| GraphName | sts | |
| Body | RtBody | |
True if a transportation failed. A transport will fail if - the source cell is empty. - the target cell is full. - a front trigg is detected when a back trigg is expected. - a back trigg is detected when a front trigg is expected.
| Function Intern | ||
|---|---|---|
| Class | Intern | |
| Type | TrpFunctionMask | |
| Flags | ||
| Body | RtBody | |
Transport function.
0 An object is transported in two part, front and back.
- When a trigg on TriggForwFront is detected, the front of an object is
moved from the cell connected to In, to the cell connected to Out.
- When a trigg on TriggForwBack is detected, the back of an object is moved
from the In cell to the Out cell.
- When a trigg on TriggReverseFront is detected, the front of an object is moved
from the Out cell to the In cell.
- When a trigg on TriggReverseBack is detected, the back of an object is moved
from the Out cell to the In cell.
1 An object is transported between the cells.
Only the TriggForwFront and TriggReverseFront inputs should be used to move an object.
- When a trigg on TriggForwFront is detected, the object is moved from the In
cell to the Out cell.
- When a trigg on TriggReverseFront is detected, the object is moved from the
Out cell to the In cell.
2 All the objects in the source cell are transported.
- When a trigg on TriggForwFront is detected, all the objects in the In cell are moved
to the Out cell.
- When a trigg on TriggReverseFront is detected, all the objects in the Out cell are
moved to the In cell.
4 The same function as 2, with the differece that the transport is executed only
if the target cell is empty.
8 The trigg inputs are reseted, if they are not connected.
16 Trigg is detected on level instead of edge.
| OldTriggForwFront Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | Invisible | |
| Body | RtBody | |
| OldTriggForwBack Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | Invisible | |
| Body | RtBody | |
| OldTriggReverseFront Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | Invisible | |
| Body | RtBody | |
| OldTriggReverseBack Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | Invisible | |
| Body | RtBody | |
| FuncAllForward Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | Invisible | |
| Body | RtBody | |
| FuncAllReverse Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | Invisible | |
| Body | RtBody | |
| PlcNode Buffer | ||
|---|---|---|
| Class | Buffer | |
| Type | pwrs:Class-$PlcNode | |
| Flags | Invisible | |
| Body | DevBody | |