Class S7Driver
java.lang.Object
org.apache.plc4x.java.spi.connection.GeneratedDriverBase<TPKTPacket>
org.apache.plc4x.java.s7.readwrite.S7Driver
- All Implemented Interfaces:
PlcDriver
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEstimate the Length of a Packetstatic classConsumes all Bytes till another Magic Byte is found -
Field Summary
FieldsFields inherited from class org.apache.plc4x.java.spi.connection.GeneratedDriverBase
PROPERTY_PLC4X_FORCE_AWAIT_DISCONNECT_COMPLETE, PROPERTY_PLC4X_FORCE_AWAIT_DISCOVER_COMPLETE, PROPERTY_PLC4X_FORCE_AWAIT_SETUP_COMPLETE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanThis protocol doesn't have a disconnect procedure, so there is no need to wait for a login to finish.protected booleancanRead()protected booleanprotected booleancanWrite()protected Class<? extends Configuration>protected Stringprotected S7PlcFieldHandlerprotected BaseOptimizerprotected ProtocolStackConfigurer<TPKTPacket>protected PlcValueHandlerprepareField(String query) Methods inherited from class org.apache.plc4x.java.spi.connection.GeneratedDriverBase
awaitDiscoverComplete, awaitSetupComplete, canBrowse, getConnection, getConnection, getStackConfigurer, initializePipelineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.plc4x.java.api.PlcDriver
discoveryRequestBuilder, getMetadata
-
Field Details
-
ISO_ON_TCP_PORT
public static final int ISO_ON_TCP_PORT- See Also:
-
-
Constructor Details
-
S7Driver
public S7Driver()
-
-
Method Details
-
getProtocolCode
-
getProtocolName
-
getConfigurationType
- Specified by:
getConfigurationTypein classGeneratedDriverBase<TPKTPacket>
-
getDefaultTransport
- Specified by:
getDefaultTransportin classGeneratedDriverBase<TPKTPacket>
-
canRead
protected boolean canRead()- Overrides:
canReadin classGeneratedDriverBase<TPKTPacket>
-
canWrite
protected boolean canWrite()- Overrides:
canWritein classGeneratedDriverBase<TPKTPacket>
-
canSubscribe
protected boolean canSubscribe()- Overrides:
canSubscribein classGeneratedDriverBase<TPKTPacket>
-
getOptimizer
- Overrides:
getOptimizerin classGeneratedDriverBase<TPKTPacket>
-
getFieldHandler
- Specified by:
getFieldHandlerin classGeneratedDriverBase<TPKTPacket>
-
getValueHandler
- Specified by:
getValueHandlerin classGeneratedDriverBase<TPKTPacket>
-
awaitDisconnectComplete
protected boolean awaitDisconnectComplete()This protocol doesn't have a disconnect procedure, so there is no need to wait for a login to finish.- Overrides:
awaitDisconnectCompletein classGeneratedDriverBase<TPKTPacket>- Returns:
- false
-
getStackConfigurer
- Specified by:
getStackConfigurerin classGeneratedDriverBase<TPKTPacket>
-
prepareField
-