Logic Port Event
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpLogicPortEvent |
| Module | cenpylib.CENPyOlpLogicPortEvent |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 5 |
| Inherits from | CENPyOlpBuiltInEvent |
Inheritance
Quick Start
# Boilerplate Example
# Acquire the event object from the runtime context
logicPortEvent = ... # provided by the frameworkMethod Index
| Method | Returns | Summary |
|---|---|---|
AddLogicPortBool | — | Adds or overwrites a value for a bool port to this event. |
AddLogicPortInt | — | Adds or overwrites a value for an integer port to this event. |
AddLogicPortFloat | — | Adds or overwrites a value for a float port to this event. |
AddLogicPortByte | — | Adds or overwrites the port byte value for this event. |
AddLogicPortInt16 | — | Adds or overwrites the port Int16 value for this event. |
Mutation Methods
AddLogicPortBool
def AddLogicPortBool(port: CENPyOlpPort, value: bool)Adds or overwrites a value for a bool port to this event. If the port is not of type bool, do nothing
Parameters:
| Name | Type | Description |
|---|---|---|
port | CENPyOlpPort | Port for which a value should be added. |
value | bool | Port value. |
AddLogicPortInt
def AddLogicPortInt(port: CENPyOlpPort, value: int)Adds or overwrites a value for an integer port to this event. If the port is not of type integer, do nothing
Parameters:
| Name | Type | Description |
|---|---|---|
port | CENPyOlpPort | Port for which a value should be added. |
value | int | Port value. |
AddLogicPortFloat
def AddLogicPortFloat(port: CENPyOlpPort, value: float)Adds or overwrites a value for a float port to this event. If the port is not of type float, do nothing
Parameters:
| Name | Type | Description |
|---|---|---|
port | CENPyOlpPort | Port for which a value should be added. |
value | float | Port value. |
AddLogicPortByte
def AddLogicPortByte(port: CENPyOlpPort, value: int)Adds or overwrites the port byte value for this event. If the port is not of type byte, do nothing
Parameters:
| Name | Type | Description |
|---|---|---|
port | CENPyOlpPort | Port for which a value should be added. |
value | int | Port value. |
AddLogicPortInt16
def AddLogicPortInt16(port: CENPyOlpPort, value: int)Adds or overwrites the port Int16 value for this event. If the port is not of type Int16, do nothing
Parameters:
| Name | Type | Description |
|---|---|---|
port | CENPyOlpPort | Port for which a value should be added. |
value | int | Port value. |
Related Types
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?