Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » OPC Client in 4diac TERMINATED error
OPC Client in 4diac TERMINATED error [message #1763532] Wed, 17 May 2017 06:53 Go to next message
Jiahang Chen is currently offline Jiahang ChenFriend
Messages: 34
Registered: April 2017
Member
hello everyone, after adding the OPC in FORTE i wanna build the connection between the 4 diac (as client) and KEPserver (as Server)

However the FB-Client seems to indicate, that the connection totally not successfully works and the STATUS shows always TERMINATED

what does that mean?

and i tried to change the ID somehow, but it still shows the same in any case. and you can see in the pic of KEPServer at bottom right, Client is 0.

ID = opc[localhost:KEPServerEX.V6:500:0:DB1,X0.0:DB1,X0.1]


· Host = localhost

· serverName = KEPServerEX.V6

· updaterate = 500 ms

· deadBand = 0

· fbInput:

o DB1,X0.0

· fbOutput

o DB1, X0.1
Re: OPC Client in 4diac TERMINATED error [message #1763556 is a reply to message #1763532] Wed, 17 May 2017 11:53 Go to previous messageGo to next message
Kirill Dorofeev is currently offline Kirill DorofeevFriend
Messages: 26
Registered: February 2016
Junior Member
hi. I'm not able to write something into the KepWare Server (will look into this a bit later). I can connect, however. I'm not sure if "DB1, X0.0" is a right syntax to access a variable. And the default server name (at least in version, I downloaded from KepWare this morning) is Kepware.KEPServerEX.V6. So I connected successfully using the following ID: opc[localhost:Kepware.KEPServerEX.V6:1000:0.1:Channel1.Device1.myWord:]
  • Attachment: kepware.png
    (Size: 52.91KB, Downloaded 48 times)

[Updated on: Wed, 17 May 2017 12:00]

Report message to a moderator

Re: OPC Client in 4diac TERMINATED error [message #1763561 is a reply to message #1763556] Wed, 17 May 2017 12:47 Go to previous messageGo to next message
Jiahang Chen is currently offline Jiahang ChenFriend
Messages: 34
Registered: April 2017
Member
could u be so kind to post your system configuration in 4diac?

i think maybe that i have mapped the client FB to wrong device
Re: OPC Client in 4diac TERMINATED error [message #1763568 is a reply to message #1763556] Wed, 17 May 2017 13:33 Go to previous messageGo to next message
Jiahang Chen is currently offline Jiahang ChenFriend
Messages: 34
Registered: April 2017
Member
I think now the problem could be, that during building the forte project, i got so many warnings. And this warnings are all Linker warnings

but the forte.exe can run somehow and works really good.

could you be so kind again to post the picture of Kepserver Connectivity, cause i want to see which type of channel did you choose. I just want to do the same following you and in order to check, if the opc in 4diac can work or not.

Re: OPC Client in 4diac TERMINATED error [message #1763574 is a reply to message #1763568] Wed, 17 May 2017 14:29 Go to previous messageGo to next message
Kirill Dorofeev is currently offline Kirill DorofeevFriend
Messages: 26
Registered: February 2016
Junior Member
In SystemConfig in 4DIAC i've got only one FORTE_PC, on which I run my client. Should not be a problem, if you deploy your application to forte without any errors. In KepServer Connectivity I picked up an Example Simulator Channel, which was there. Just added a tag there.
Re: OPC Client in 4diac TERMINATED error [message #1763628 is a reply to message #1763574] Thu, 18 May 2017 07:24 Go to previous messageGo to next message
Jiahang Chen is currently offline Jiahang ChenFriend
Messages: 34
Registered: April 2017
Member
i have tried to do the same as you

but it still shows at STATUS "Terminated"

really can not understand it
  • Attachment: Kepware.PNG
    (Size: 92.47KB, Downloaded 47 times)
Re: OPC Client in 4diac TERMINATED error [message #1763661 is a reply to message #1763628] Thu, 18 May 2017 12:20 Go to previous messageGo to next message
Kirill Dorofeev is currently offline Kirill DorofeevFriend
Messages: 26
Registered: February 2016
Junior Member
Try to provide some data for the SD_1 input.
Re: OPC Client in 4diac TERMINATED error [message #1763666 is a reply to message #1763661] Thu, 18 May 2017 12:40 Go to previous messageGo to next message
Jiahang Chen is currently offline Jiahang ChenFriend
Messages: 34
Registered: April 2017
Member
Hi i did as what you had said

but it still does not work
  • Attachment: Kepware.PNG
    (Size: 107.07KB, Downloaded 37 times)
Re: OPC Client in 4diac TERMINATED error [message #1763684 is a reply to message #1763661] Thu, 18 May 2017 14:40 Go to previous messageGo to next message
Jiahang Chen is currently offline Jiahang ChenFriend
Messages: 34
Registered: April 2017
Member
Hi, i am so happy to tell you, that the opc connection works now.

i have just changed the runtime library in visual studio to MD instead of MT

its so strange, anyway it works thanks
  • Attachment: Kepware.PNG
    (Size: 87.35KB, Downloaded 37 times)
Re: OPC Client in 4diac TERMINATED error [message #1763689 is a reply to message #1763684] Thu, 18 May 2017 15:07 Go to previous message
Kirill Dorofeev is currently offline Kirill DorofeevFriend
Messages: 26
Registered: February 2016
Junior Member
cool, good to know. thanks for an update.
Previous Topic:using OPC to control siemens PLC
Next Topic:OPC Client only receive date
Goto Forum:
  


Current Time: Mon Feb 19 17:41:41 GMT 2018

Powered by FUDForum. Page generated in 0.02738 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software