Add to questions related to the Apache PLC4x projects. (See https://plc4x.apache.org)
Questions tagged [plc4x]
24 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
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 does plc4j Modbus switch to big endian
My device only supports big-endian mode, plc4j uses little-endian by default, how does plc4j use big-endian mode
I can't find a solution now

zq liu
- 11
- 1
1
vote
0 answers
how to read field with Chinese
I'm trying to read some node data from keyserverex using
HelloPlc4xRead
then I got this
here's my cmds :
the first cmd failed , it contains Chinese words
connection-string=opcua:tcp://192.168.239.128:49320…

zeng qian
- 11
- 1
1
vote
0 answers
memory leakage ,when write point to influxdb 2.2 invoked in a CompletionStage
I'm trying to write PLC data into influxDB; and PLC4X EIP driver used
when I use sync solution ,everything is OK;
but When I try the Async solution the heap leakage will always happen
my code as below:
CompletionStage> cf =…

xi cao
- 11
- 1
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
1 answer
How to read the bit of switch of PLC in C# application
i am working on read and write the Mitsubishi PLC via C# application i need to read the date and time of plc and display in the datagridview in application. If i store a date example Year,Month and Day in D111,D112,D113 then i read the date…

deny
- 13
- 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
2 answers
How to read Modubus TCP/IP data with Apache NiFi?
I am having the data in Modbus TCP/IP. I have to read the available data with Apache NiFi. I don't know, which processor have to use exactly (Ex. GetTCP, ListenTCP, Plc4xSourceProcessor). Can you help me on this? Is there any feasibility with Apache…

Sathishkumar C
- 91
- 1
- 11
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
Ways to configure a Netty EmbeddedChannel via Bootstrap?
In the Apache PLC4X project I am currently setting up a framework for integration tests. PLC4X
's Java drivers are heavily using Netty. Also have we built a large set of so-called "transports" which provide the Channels Netty uses for communication.…

Christofer Dutz
- 2,305
- 1
- 23
- 34