question

mark zhen avatar image
0 Likes"
mark zhen asked mark zhen commented

PLC communicates with FlexSim

1744618307899.png

I have not done relevant modeling exercises before. What I want to know is that my current idea is that I want to use plc to control the agv in flexsim to move to a specified position. How do I need to accomplish this?

I haven't connected it yet. I want to break it down into several steps first?? But it's my first time building and I want to know what I need to know to accomplish what I want to do

FlexSim 25.0.0
emulationplc emulation
1744618307899.png (18.2 KiB)
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

Kavika F avatar image
0 Likes"
Kavika F answered mark zhen commented

Hey @mark zhen, have you looked at the Emulation Tutorial in the documentation? That is a good starting place for learning how to setup and use PLC logic.

· 2
5 |100000

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

mark zhen avatar image mark zhen commented ·

@Kavika F @Felix Möhlmann


I have tried to connect it in series, but it didn't work. My current idea is that I assign tasks based on the status of my PLC. If the read Register = 0, the destination tag will be given.

If Register = 1 he will go to another one, but overall it is very unsuccessful. How should I proceed?1744700881151.pngplc.fsm1744700896486.png

What I want to ask is that I think I have completed the communication, but I don't understand why it keeps reading the coil instead of the register! In addition, there should be no big problem with my pf setting?? Except for the big problem of reading the plc signal

0 Likes 0 ·
1744700881151.png (12.8 KiB)
1744700896486.png (64.7 KiB)
plc.fsm (95.2 KiB)
mark zhen avatar image mark zhen mark zhen commented ·

1744707030618.png

1744707235396.png

1744707074241.png

1744707416073.png

I have found a new problem. When I use the emulation tool to create variables, I can request my PLC normally. But when I use the pf tool to create variables and request, I cannot read them smoothly (it will become a coil reading). I would like to ask if there is something wrong with my creation method. plc.fsm

0 Likes 0 ·
1744707030618.png (30.7 KiB)
1744707074241.png (29.4 KiB)
1744707235396.png (161.6 KiB)
1744707416073.png (56.8 KiB)
plc.fsm (153.7 KiB)