question

Anutt K avatar image
0 Likes"
Anutt K asked Luciano Cavallero commented

How to use Emulation with PLC by modbus RTU connect.

I try to connect Mitsubishi FX3S by use Modbus RTU.

1664781673048.png

1664781709858.png

First I will get value fo sensor and control to Global Table.

1664781911390.png

1664781942695.png

1664781964943.png

But the value is not write to Global Table when model running and PLC is working.

I don't understand How is FlexSim can know coil or variable of sensor and control in PLC program.

1664782315422.png

X0 : Air Tube

X2 : Sensor

Y0 : Motor

Y1 : Air Tube

In the model I will use Motor and Sensor only. Thank You so much.

convyortest.fsm


FlexSim 21.1.5
emulationplc emulationmodbusmodbus communicationmodbus rtu
1664781673048.png (36.4 KiB)
1664781709858.png (29.9 KiB)
1664781911390.png (31.3 KiB)
1664781942695.png (30.1 KiB)
1664781964943.png (4.3 KiB)
1664782315422.png (19.1 KiB)
convyortest.fsm (167.9 KiB)
· 6
5 |100000

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

Arun Kr avatar image Arun Kr commented ·
What type of value you are trying to write to the global table?
0 Likes 0 ·
Anutt K avatar image Anutt K Arun Kr commented ·
I want to write I/O logic (high/Low) to global table.
0 Likes 0 ·
Anutt K avatar image Anutt K commented ·
I want to use the value for control conveyor and create object in Model.

But first. I want to give the value to global table for ensure PLC has connecting with FlexSim.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Anutt K commented ·
0 Likes 0 ·
Luciano Cavallero avatar image Luciano Cavallero Anutt K commented ·
Could you try with Flexsim 2023?
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Anutt K,

Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

0 Answers