Skip to Content

Logic Port Event

Quick Facts

PropertyValue
ClassCENPyOlpLogicPortEvent
Modulecenpylib.CENPyOlpLogicPortEvent
Packagecenpylib
ReleaseR2025.2.4
Methods5
Inherits fromCENPyOlpBuiltInEvent

Inheritance

Quick Start

# Boilerplate Example # Acquire the event object from the runtime context logicPortEvent = ... # provided by the framework

Method Index

MethodReturnsSummary
AddLogicPortBoolAdds or overwrites a value for a bool port to this event.
AddLogicPortIntAdds or overwrites a value for an integer port to this event.
AddLogicPortFloatAdds or overwrites a value for a float port to this event.
AddLogicPortByteAdds or overwrites the port byte value for this event.
AddLogicPortInt16Adds 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:

NameTypeDescription
portCENPyOlpPortPort for which a value should be added.
valueboolPort 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:

NameTypeDescription
portCENPyOlpPortPort for which a value should be added.
valueintPort 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:

NameTypeDescription
portCENPyOlpPortPort for which a value should be added.
valuefloatPort 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:

NameTypeDescription
portCENPyOlpPortPort for which a value should be added.
valueintPort 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:

NameTypeDescription
portCENPyOlpPortPort for which a value should be added.
valueintPort value.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?