question

Glenys C avatar image
0 Likes"
Glenys C asked Ben Wilson commented

Emulation for WISE-4050 Wireless

Hello, I currently have a WISE-4050 Wireless IoT Ethernet I/O Module that receives digital input from an ultrasonic sensor.

As shown below, when there is an output from the sensor (covered) there will be a digital input into the WISE-4050 at channel 0.

I want to use this ultrasonic sensor to control the conveyor in FlexSim. For example, when the sensor is uncovered (no output) there will be no digital input into WISE-4050 and the conveyor will run as per normal carrying the flowitems on it. However, when the sensor is covered (output) and there is digital input into WISE-4050, the conveyor will stop running.

How would I go about achieving this? Thank you!


FlexSim 20.2.2
flexsim 20.2.2emulation
1611887362615.png (183.2 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·


Hi @Glenys C,

It looks like this question may be part of a homework assignment or academic project. The professors who assign simulation modeling exercises using FlexSim expect that the academic integrity of their assignments will be maintained. In addition, we are supportive of Honor Codes or Pledges that regulate the behavior surrounding academic assignments.

I recommend reading our best practices page on the subject, which includes some resources that you should find helpful as you use FlexSim for academic purposes. I also highly recommend Dr. Allen Greenwood’s FlexSim Primer, which was written specifically for students and professors.

You are more likely to get help from the forum when you provide a model and have a specific question. We enjoy helping students who show that they are putting in effort and are genuinely stuck and need some help.

0 Likes 0 ·
Glenys C avatar image Glenys C Jeanette F ♦♦ commented ·

Hi @Jeanette F,

I think there is a slight misunderstanding. This question is not part of a homework assignment or academic project. It is a step that my colleagues and I at Singapore Polytechnic Advanced Manufacturing Center are taking in order to work towards building a digital twin for our production line.

As of now we are just using this WISE-4050 wireless IOT module as a trial dummy before we move on to the PLCs that are connected to the machines in our production line.

The model created is fairly simple (source, conveyor and sink) and not our actual model for the production line hence the reason why I did not attach the model. I apologize for that and will attach the simple model that I am working on for the WISE-4050 to this reply instead.

Thank you.

WISE4050 Emulation.fsm

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Glenys C, was Parker S's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Parker S avatar image
1 Like"
Parker S answered Jason Lightfoot commented

@Glenys C

Here is the documentation on setting up an emulation connection in FlexSim:

https://docs.flexsim.com/en/21.0/ModelLogic/UsingEmulation/DesigningPLCLogic/

We also have a tutorial that contains key concepts about the FlexSim Emulation environment:

https://docs.flexsim.com/en/21.0/Tutorials/AdditionalTools/Tutorial3Emulation/Tutorial3EmulationOverview/

I also attached a model that has conveyor motor linked to an emulation variable that will stop if there is an input and run if there is no input. You will still need to connect the WISE 4050 module to FlexSim.

support_wise4050-emulation.fsm


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

Glenys C avatar image Glenys C commented ·

Hi @Parker S,

Thank you so much for your help, really appreciate it.

A question, would it be possible to carry out emulation without a process flow?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Glenys C commented ·

You can use the variables directly in the emulation component.


0 Likes 0 ·