question

Tom W3 avatar image
0 Likes"
Tom W3 asked Jeanette F commented

Emulation using Modbus TCP

Hi I am connecting a flexsim model to a Mitsubishi PLC ( with GX3 programming software ). I am using Modbus TCP. The flexsim model and screenshots of my settings are attached.

While the Flexsim 3D model and Process model is running OK, I don't see the changing status of the I/O under monitor mode in my PLC software . I would appreciate any help or advice. Thanks

FlexSim 19.1.1
emulation
· 1
5 |100000

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

Joshua S avatar image Joshua S commented ·

@Tom W3

Are you still having issues connecting?

0 Likes 0 ·

1 Answer

·
Tom W3 avatar image
0 Likes"
Tom W3 answered Jeanette F commented

Hi Joshua, it ok now. Thanks. Somehow there seems to be an offset between "write to" address declaration in Flexsim and the PLC. Meaning in Flexsim, Photosensor writes to address #1 but it actually triggers X0 in the PLC. its working now . But is there really such an offset in address ?

· 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.

tannerp avatar image tannerp commented ·

Tom,

Sorry about the delayed response. I don't have an answer to your follow-up question about the address offset. This could be something FlexSim related, but we've never tested FlexSim against a Mitsubishi PLC or the GX3 programming software, so it's hard to say. I'm glad you've figured out the issue, though.

0 Likes 0 ·
Lukas Buchta avatar image Lukas Buchta commented ·

Hi @Tom W3 I react to your question related to connectivity over modbus and I hope, you might help me. I want to connect Flexsim to PLC Misthubishi melsec IQ-R.

Data PLC to computer looks correct

57289-modbus-example.png

But Flexsim read data wrong. Instead of reading 0 and 1, there are values like

57288-values-from-plc-in-flexsim.png

on other computer, I can not read nothing in Output Console.

Do you know why?

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Lukas Buchta commented ·
Please start a new post for your question. You can link this post to your new one and you can tag users in your new post who are relevant.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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