question

liu Y2 avatar image
0 Likes"
liu Y2 Suspended asked Joshua S commented

Can you provide a case of using OPC DA?

I am using MatrikonOPC connect to flexsim, the connection is successful,but I can't receive any data.

flexsim2019.0.0_64bit

plc connection problem
5 |100000

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

1 Answer

Joshua S avatar image
1 Like"
Joshua S answered Joshua S commented

Here is an extremely simple example to test your connection, it gets the sin tag value from the server and prints it out in the console. I'm using a different server, but you should be able to point to the right tag on your server. This should be a baseline test to see if you can read tags in general.

opc-test.fsm


opc-test.fsm (99.8 KiB)
· 3
5 |100000

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

liu Y2 avatar image liu Y2 commented ·

I use other OPC simulator can receive data,thank you!

0 Likes 0 ·
Cass Z avatar image Cass Z commented ·
Hi, @Joshua S I am currently trying to get the Allen Bradley connect to FlexSim, it seems like there are some bugs for the AB protocol, so I am trying to use OPC DA, my question is how do you identity the server name of the OPC DA? I have my RSLinx locally running.

Thank you

0 Likes 0 ·
Joshua S avatar image Joshua S Cass Z commented ·

You will need to have an OPC DA server running, and then the browser button next to the Server edit field will display the server you are running. I have noticed that sometimes there are multiple data accesses and each one of those can be expanded to select your server. You might need to try a couple of the data accesses to connect to your server, I've had to do that in the past.

0 Likes 0 ·