Hello How could I obtain data using the Emulation module with Modbus tcp / ipv4 either in JAVA or in c ++? If possible with an example to understand its operation.
Hello How could I obtain data using the Emulation module with Modbus tcp / ipv4 either in JAVA or in c ++? If possible with an example to understand its operation.
What data are you trying to obtain? Most of the data would would want is found in the "Variables" Tab of the Emulation properties window where you can read and write to the PLCs, Servers,or Client.
Maybe, the time it takes to assemble a product.
But what I need is a way to get some kind of data in a program in JAVA or c ++, I was trying to connect JAVA with FlexSim using sockets, but I have not obtained results.
A basic script to communicate with a C++ or Java server using FlexSim as the client is as such
socketinit(); int client=0; client = clientcreate(); string hostname="127.0.0.1"; int port=502; clientconnect(client,hostname,port); print(client); clientsend (client, "TestConnection"); print(clientreceive(client, NULL, 1024, 0)); clientclose(client);
The Emulation module in FlexSim is very specific to Modbus and OPC connections
I could re-publish the answer, apparently it is no longer available.
thanks, this script, in what part of the program do I place it?
9 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved