Issue with client/server and vmware [message #1806203] |
Mon, 06 May 2019 08:21 |
Banane Elephant Messages: 11 Registered: April 2019 |
Junior Member |
|
|
Hi,
I'm trying to establish a connection between 4diac and a software that runs on vmware. I use my PLC has a servers, i managed to send data to wmware but with 4 bytes more (i don't know why). And for the reception of the data from vmware, I constantly get DATA_TYPE_ERROR, even if I put FB with the right data input, in my case 104 bytes or 26 DWORD, I've even checked with wireshark :^(
Hope i was clear, Thanks,
-
Attachment: App.PNG
(Size: 129.90KB, Downloaded 87 times) -
Attachment: sending.PNG
(Size: 30.40KB, Downloaded 99 times) -
Attachment: receiving.PNG
(Size: 13.56KB, Downloaded 86 times) -
Attachment: errors.PNG
(Size: 21.84KB, Downloaded 87 times) -
Attachment: run_mode.PNG
(Size: 12.86KB, Downloaded 96 times)
|
|
|
|
|
|
Re: Issue with client/server and vmware [message #1806237 is a reply to message #1806223] |
Mon, 06 May 2019 16:45 |
|
The "IEC 61499 compliance profile for feasibilty demonstrations" [1] defines that on sender and receiver side the arrays have to be of equal size. So you get the data type error as the decoding code gets over the network an array with 32 elements but only space for 26. What shoudl we do with the remaining 6? Therefore you have to connect your sever FB to a FB which has an input with an array of length 32. Maybe just expanding the receiver FB to 32 and ignore the last 6. If this is correct. This depends on your application.
|
|
|
|
Re: Issue with client/server and vmware [message #1806264 is a reply to message #1806263] |
Tue, 07 May 2019 08:18 |
|
You have not connected anything on the SD_1 input of your server FB. When this input is not connected or not given a litaral with type spec (e.g., INT#12) the FB does not know what to do with it. Therefore the the data type error now could also come from this. For quick test you could remove the event connection from your RSP input. Do you want to send data back?
|
|
|
|
Re: Issue with client/server and vmware [message #1806273 is a reply to message #1806271] |
Tue, 07 May 2019 09:48 |
|
I did a recap of your application and I noticed two things:
1. Where is your client FB? 1499 client server communication works such that you send data over a client with its request event this leads to an ind event on the corresponding server. The application can respond to the client with the RSP leading to a CNF on the CLIENT.
2. you are triggering the RSP event of the SERVER not as a result of the IND. You should not do it. The server will send you an IND event when it receives something
|
|
|
|
Re: Issue with client/server and vmware [message #1806289 is a reply to message #1806283] |
Tue, 07 May 2019 12:18 |
|
Ah ok. What kind of software is that? What messages does it send? What is the message format? They way you configured your Server FBs 4diac FORTE is assuming that the messages are coming in the Asn.1 encoding defined in the "IEC 61499 compliance profile for feasibility demonstrations" [1]. If that is not the case then you need to write you an own decoding layer that is taking the message coming from the network and translate it to IEC 61131-3 datatypes.
|
|
|
|
|
|
|
Re: Issue with client/server and vmware [message #1806764 is a reply to message #1806736] |
Tue, 14 May 2019 22:04 |
|
You will need the com FBDk layer otherwise 4diac IDE cannot connect to your 4diac FORTE.
Also you will need some layer on top of our TCP/IP layer as the TCP/IP layer is designed such that it takes the data received from the network and hands it on to some upper layer. So you need some mechanism which takes transforms the bytes received into a IEC 61131-3 data type. Otherwise you will not be able to process it with an IEC 61131⁻3 function block.
|
|
|
Powered by
FUDForum. Page generated in 0.04029 seconds