Type
Logix
Connection String Options
Name |
Default Value |
Required |
Description |
|
Name |
Logix CIP |
|||
Code |
|
|||
Maven Dependency |
<dependency> <groupId>org.apache.plc4x</groupId> <artifactId>plc4j-driver-eip</artifactId> <version>0.12.0</version> </dependency> |
|||
Default Transport |
|
|||
Supported Transports |
|
|||
Config options: |
||||
|
STRING |
The communication path allows for connection routing across multiple backplanes. It uses a common format found in Logix controllers. |
||
|
INT |
1 |
Without using routing information the backplane defaults to 1. This is overridden if communicationPath is provided. |
|
|
INT |
0 |
The slot within the backplane the CPU is located. |
|
|
BOOLEAN |
true |
Configure if the connection should be set to transport data in Big-Endian format, or not. |
|
|
BOOLEAN |
false |
Forces the driver to use unconnected requests. |
|
Transport config options: |
||||
tcp |
||||
|
BOOLEAN |
false |
Should keep-alive packets be sent? |
|
|
BOOLEAN |
true |
Should packets be sent instantly or should we give the OS some time to aggregate data. |
|
|
INT |
1000 |
Timeout after which a connection will be treated as disconnected. |
Individual Resource Address Format
Connection String
Logix has the following connection string format:-
logix:tcp://{ip-address}:{port}?{options}
An example connection string would look like:-
logix:tcp://127.0.0.1:502?communicationPath=[1,1]
Note the port and option fields are optional.
General Format
In general all Logix addresses have this format:
{address}:{data-type}[{array-size}]
If the array-size part is omitted, the size-default of 1
is assumed.
If the data-type part is omitted, the data type from the controller is used
The address format matches that found in the controller.
Data Types
The following data types are supported
-
BOOL (boolean)
-
SINT (int 8)
-
USINT (uint 8)
-
BYTE (uint 8)
-
INT (int 16)
-
UINT (uint 16)
-
WORD (uint 16)
-
DINT (int 32)
-
UDINT (uint 32)
-
DWORD (uint 32)
-
LINT (int 64)
-
REAL (float)