Dear Community User! We will start the migration process in one hour.
The community will be then in READ ONLY mode.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

How to use ctrlX CORE to communicate to 3rd party HMI via Codesys V3 protocol?

How to use ctrlX CORE to communicate to 3rd party HMI via Codesys V3 protocol?

CodeShepherd
Community Moderator
Community Moderator

We would like to use ctrlX CORE to communicate to a 3rd party HMI via Codesys V3 protocol.

I followed this instruction:
https://forum.codesys.com/download/file.php?id=3720

I exported the XML file out of the symbol configurator and the then used the software of 3rd party HMI to import the XML file successfully.
Then I tried to change the variables in the ctrlX CORE PLC but I can not see any changes on the display of the HMI.

Is there a standard driver included that does the communication or do I have to set it up on my own with a library like this:
https://de.codesys.com/produkte/codesys-communication/standard-ethernet.html

14 REPLIES 14

Chris-SAE
New Poster


Dear colleagues,

We did some testing in the office and we also visited the customer and together did some testing on field.
We updated the CtrlX Works version to 1.10.

Test01: Use XM21 controller do communication with 3rd party HMI via Codesys V3 protocol
The firmware version of XM21 is 14V22 P7.
The customer has one XM21 controller on their machine and already had the programing on it.
We use the HMI software select to use Codesys V3 protocol and setup the XM21 controller IP address.
And then we push the “Get Tag information” button.
The HMI software display get tag information successfully.
The HMI software can directly get the variable tag, those variable are the same as our symbol configuration.
The communication working correctly between XM21 controller and HMI simulation.
I use the CML65 controller did the same testing also got the same result in my office.
The Indraworks version is 14V18 when I use the CML65 controller.
The reason is the CML65 always got crash after we upgraded the CML65 firmware to 14V22.
The library we used on the CML65 as below picture.

ChrisSAE_0-1635408129228.png

 

Test02: Use CtrlX Core do communication with 3rd party HMI via Codesys V3 protocol
We add the Network library and all other library we used on the CtrlX Core as below picture.

ChrisSAE_1-1635408142154.png

We use the HMI software select to use Codesys V3 protocol and setup the CtrlX core IP address.
And then we push the “Get Tag information” button but HMI software display failed to get tags.
We also try to use the document descript to import tags.
The HMI software display imported tag information successfully.
But the communication not working correctly between CtrlX Core and HMI simulation.

Could you help us check which Codesys library are missing in the library manager?

ctrlX CORE should behave the same way as XM21. But there is a difference between IndraWorks an ctrlX CORE/ctrlX WORKS.

Due to the rising importance of security the PLC on ctrlX CORE communicates with the communication clients only via encrypted communication. That means that the clients must support this feature. As a consequence the HMI communication driver must support this feature. This feature was provided by CoDeSys with a new version of PLC Handler. So you will not be able to get the communication running. The HMI must be updated to the newest PLC Handler. If you are in contact with the HMI provider let him know that he should contact CoDeSys to identify the corresponding To Dos.

Some update news about this topic:

We got in contact with the HMI provider and it looks like others persons also got the same issue and also send the request to them.

We check the HMI newest release note EBProV60602_ReleaseNotes_en.pdf.

We found the HMI add an option for login to device using username and password for Codesys V3 communication.

SoMachineM series release notesSoMachineM series release notes

We downloaded the new version HMI software EBproV60602339 and we found the added option function as below picture.

login settings of HMIlogin settings of HMI

We use the new version HMI software EBproV60602339 and did a test with our ctrlX CORE.

The Codesys V3 communication between ctrlX CORE and HMI simulation are working well.

working communication via CodeSys V3working communication via CodeSys V3

 

Hello,

May I know which version of ctrlX core that you're using?

As I did the testing the same like you. However, It just shows me up "Device no response"

Hulk_0-1662827938014.png

My software ver. is  as below and it definatly supports "User management".

Hulk_1-1662828034007.png

Hulk_2-1662828311047.png

Thank you.

CodeShepherd
Community Moderator
Community Moderator

@Hulk As you can see on picture "working communication via CodeSys V3" It is done with the release RM21.11 that means version 1.12.

Any special configuration in PLC app? I'm also using V1.12.

Is the port setting No. = "11740"? Because I did test with Weintek and Pro-face HMI as well. Of course, it both supports CodeSys V3 and "user management". However, it generated "Port number is not recognized". Hmm...

 

Sorry   @CodeShepherd,

May I know any spectial setting for PLC app when doing CoDeSys V3 communication with HMI?

 Thanks

We try to rebuild the situation we got successful connection between the CtrlX core and HMI.
But we don't have the CtrlX core on hand.

We remember we deactivate the Encrypted communication and then we got the successful connection between the CtrlX core and HMI.
Hope this information is useful for you.

ChrisSAE_0-1664516505470.png

 

Hi Chris-SAE

Nice! I did it.

Thank you!

TN_X
Long-established Member

An update for clear setting on this case.

1./ Change commnuication policy to "No encryption"

Tuan_0-1664768574287.png

 

2./ Uncheck "Encrypted communication"

Tuan_1-1664768608179.png

 

Hi @CodeShepherd. I am trying to connect CtrlX Core X3 with HMI Weintek via code sys V3 Protol but it not working. I used CtrlX core version 2.6.20 and EasyBuilderPro V6.09.02. I can't find where deactivated the 'Encrypted communication' in my ctrlX PLC Eng. 

phunggiathanh_0-1726892287120.png

Setting in my HMI software

phunggiathanh_1-1726892527143.png

 

 

 

Hello @phunggiathanh ,

The feature of de-activating the encrypted communication is not available in the ctrlX version mentioned by you. it was there long back with version 1.12 not thereafter.

It should be latest handler from the HMI manufacturer to work with encrypted communication, which is yet not avaialble with many HMI provider as of now. but they are already working in it due to the changes in the codesys driver itself.

I am not sure about the weintek, which you're trying it. But i have the feedback from Pro-face, which is coming up with newer version of software, which will support the encrypted communication by next year.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist