First check https://issues.apache.org/jira/projects/PLC4X/issues and if there is no issue regarding your issue. Then open a ticket there to additionally you can always ask questions on the public mailing list of the project dev@plc4x.apache.org. Thank you! :)
Questions tagged [apache-plc4x]
22 questions
4
votes
1 answer
Unsolvable error with multiple requested values send to the plc (apache.plc4x)
I'm new here and my first question is regarding the request of PLC values, using Apache PLC4x.
I want to loop through all the actual I, Q and DB available in the PLC. Because I want not able to accomplish this I looped through a set of DB but if the…

Titus
- 71
- 5
4
votes
1 answer
Why is the stdout empty when running "python --version" from groovy?
I am currently working on a pre-flight-check script for the Apache PLC4X project. There I check the existence of required third party tools and their versions.
If I run "python --version" on the commandline, I get a nice response.
However if I run…

Christofer Dutz
- 2,305
- 1
- 23
- 34
3
votes
1 answer
Netty MessageToMessageCodec decode method receives only 512byte chunk of large response
I'm working on the Apache PLC4X project where we implement industry PLC protocols using Netty. We are currently encountering a problem with decoding responses as soon as the size of these exceed a limit of 512 bytes.
As soon as the size of the…

Christofer Dutz
- 2,305
- 1
- 23
- 34
2
votes
0 answers
PLC4x docker container connection timeout to PLC
We've been trying to connect to a PLC but it's not working. We used the basic example "hello-world-plc4x" with JAVA from the PLC4x Github repo.
When we start the PLC4x from the console java -jar .\plc4j-datacare-plc4x-0.9.1-uber-jar.jar…

Pet
- 21
- 2
2
votes
1 answer
How to solve this error when building PLC4X with Docker
When I try to build PLC4X with Docker I obtain an error. I tried to build it from Linux system, and from Linux in Virtual Box (hosted in a Windows machine) and in both cases I obtain an error.
With the Linux machine I obtain this error:
Step 20/36 :…

David Zamora
- 383
- 1
- 4
- 15
1
vote
0 answers
How to create plc4x endpoint in camel
I am using ModbusPal to create the Virtual modbus.
I am using the endpoint URI as:
plc4x:modbus-tcp://localhost:502?unitId=1&dataType=holding-register&addresses=1
Following is the screenshot of Modbus holding registers:
But when starting camel…

mdanish98
- 65
- 8
1
vote
0 answers
PLC4X with PEAK PCAN-USB
We are using a PEAK PCAN-USB adapter to exchange data with a CANopen device and are searching for an CANopen library for Java to accomblish this.
The PLC4X API seems to be suitable for our project but we have to implement our application on a…

elbfisch
- 11
- 2
1
vote
1 answer
PLC4X OPCUA -Kafka Connnector
I want to use the PLC4X Connector (https://www.confluent.io/hub/apache/kafka-connect-plc4x-plc4j) to connect OPC UA (Prosys Simulation Server) with Kafka.
However I really do not find any website that describe the kafka connect configuration…

corsin sauber
- 41
- 3
1
vote
1 answer
"Unsupported case for discriminated type" when reading tag from Allen Bradley's Micro820 PLC, using Apache's PLC4X
I’m using Apache’s PLC4X library in order to read some tags from an Allen Bradley’s Micro820 PLC (2080-LC20-20QWB). So far, I am able to establish a connection with the device but when I try to execute a read request I’m getting the error shown in…

Guillermo Hinojosa
- 31
- 4
1
vote
0 answers
PLC4X: S7 Connection NullPointerException
I want to read out a single DB Value from a S7-300 with PLC4X in Java with this code:
import java.util.concurrent.TimeUnit;
import org.apache.plc4x.java.PlcDriverManager;
import org.apache.plc4x.java.api.PlcConnection;
import…

digga106
- 11
- 2
1
vote
0 answers
Can not write string into S7-1500 with Java
I use plc4j to read/write string from s7-1500. I can read string with statement:
builder.addItem("value-4.0", "%DB1.DB4.0:STRING");
which get string of "hello world" in it.
But I can not write string into the address with…

angelo
- 11
- 1
1
vote
0 answers
Modbus RTU over TCP
I'm trying to communicate with a Modbus slave using RTU over TCP, but it does not work. I don't get any exception. The program seems to wait for a response and no timeout exception is thrown.
When I change the Modbus slave to TCP only, it works…

rezebric
- 11
- 1
1
vote
1 answer
plc4x hangs on query
We are trying to use plc4x (plc4j-driver-s7, version 0.7.0) to query data from a Siemens S7 PLC.
Here is a very simple example. When I run this it indefinitely hangs when executing the query.
String field = "%DB500.DBX4.0:BOOL";
connection
…

Sebastian
- 16,813
- 4
- 49
- 56
1
vote
1 answer
Plc4x v. 0.8.0 Kafka connector returns 'null' when pushing a new connector
I recently updated the Plc4x Kafka Connect plugin from version 0.5.0 to 0.8.0 by cloning from source from Plc4x's Github page and built it using Maven, exactly as specified in the Readme. After building the source I received a uber JAR which…

Acolla
- 11
- 1
1
vote
1 answer
Plc4x cannot read more than 9 registers at once
I am trying to understand the address system in the plac4x java implementation. Below an example of the reading code of the plcs:
@Test
void testReadingFromPlc() {
// Establish a connection to the plc using the url provided as first…

Yvus
- 338
- 1
- 20