question

Qi W avatar image
0 Likes"
Qi W asked Cole Shirley answered

I have a question about OPC connection to PLC in emulation.

Hello,I tried to connect via OPC using flexsim's 18.2.0-32bit and 64bit emulation.But it will give you an error.

exception: getAvailableServers() error. Could not browse OPC Servers. Service may not be installed or could not connect to remote ip.

I tried that https://answers.flexsim.com/questions/51184/reasons-for-no-connection-to-the-opc-servers.html It's a failure.

  • My PLC model is Simens 1508. I use other software connection is successful.

FlexSim 18.2.0
opc
img-1757.jpg (108.2 KiB)
· 9
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Wang Yang avatar image Wang Yang commented ·

@Matt Long Can you help us solve it?

0 Likes 0 ·
Qi W avatar image Qi W commented ·

who can help me solve it?

0 Likes 0 ·
Isaac Litster avatar image Isaac Litster commented ·

Hi @Qi W

Are you using an OPC server software program to connect the PLC?

0 Likes 0 ·
Qi W avatar image Qi W Isaac Litster commented ·

Hi @Isaac Litster

I am using an OPC server software program to connect the PLC.but it is a failure.I'm looking for a solution.

0 Likes 0 ·
Matt Long avatar image Matt Long commented ·

Sorry for the delay in answering. I have a couple questions:

  • Are you able to connect to an OPC server that is running on the same computer as FlexSim?
  • You say that using other software you can connect with the server. I assume this is software that is installed on the same computer as FlexSim? Which software are you using to make this connection?
  • If you are able to connect to a local OPC server, but not to a remote one, my initial thought is that you need to adjust your firewall settings. It is possible that other software is able to connect but FlexSim is blocked. The communication protocols may be different.
0 Likes 0 ·
Qi W avatar image Qi W commented ·

Hi,@Matt Long .

  1. Yeah,OPC server is running on the same computer as Flexsim.
  2. I use Kepware and TIA portal connect to PLC is successful.
  3. I have tried connecting PLC and flexsim via Ethernet. come to nothing.
  4. I have tried to read directly from kepware and still failed.
  5. My firewall is always open.

I've tried various ways to connect.I wonder if connecting to a PLC requires a download driver or something.

0 Likes 0 ·
Matt Long avatar image Matt Long Qi W commented ·

@Qi W,

FlexSim automatically installs the OPC Redistributable, so you shouldn’t have to install anything further.

If other software is able to connect to the OPC server on the local computer, then FlexSim should also be able to. We haven’t seen these issues at all with anyone else.

What version of Windows are you running?

0 Likes 0 ·
Qi W avatar image Qi W Matt Long commented ·

Hi @Matt Long, tries to connect to the local opc server

I used flexsim yesterday and succeeded. But our company's opc server

on the remote server, I tried to connect to it but failed.

Is it the Internet?

Do I need to set up a gateway or port?

0 Likes 0 ·
Show more comments

1 Answer

Cole Shirley avatar image
0 Likes"
Cole Shirley answered

Closing Outdated Question

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.