Musicman44

Capture snapshot of I/O data for simulation

10 posts in this topic

Is there a way to capture a snapshot of ALL inputs in cx-programmer to then be saved and used on a simulation to recreate a real life scenario?

Share this post


Link to post
Share on other sites

Double click on 'memory' -> double click 'cio' -> Click on Binary and then monitor

This way you can see all your physical inputs and outputs

Annotation 2020-05-06 150752.png

Annotation 2020-05-19 100159.png

Annotation binary and monitor.png

Annotation memory.png

Share this post


Link to post
Share on other sites

Ok thanks for that. That answers a part of my question but still doesn’t answer how to save this information and then simulate this using cx- simulator.

Share this post


Link to post
Share on other sites

You can also save the information. In memory tab, Go to File----> select save to file--> click OK---> select the location to save--> click save. The file will be automatically saved as (.mem) file. To open the same file Go to Memory---> File--->select Open File in drop down menu, select the saved file & click Open

1 person likes this

Share this post


Link to post
Share on other sites

This is not what he is asking for.  He is asking if there is a way to save I/O patterns so that his program can be tested in simulation mode with somewhat realistic interaction with the I/O.  

I think what you are looking for is I/O Conditions (and the replay menu).  You may have to manually create a file, but it looks like it does what you want.  Look in the CX-Simulator manual that is installed with CX-Simulator in the start menu.  Check out section 3-9-5.  

Share this post


Link to post
Share on other sites

Yeah I’ve been trying to figure that out but I’m just not getting it yet. I wish there was a video walkthrough about it showing the file used for the replay.

Share this post


Link to post
Share on other sites

I am able to save the memory file like you said but when I try to click transfer to PLC, it is grayed out.

Share this post


Link to post
Share on other sites
16 hours ago, Musicman44 said:

I am able to save the memory file like you said but when I try to click transfer to PLC, it is grayed out.

Of course you need to be online with the controller and depending upon the memory area, you may need to be in program mode. 

Share this post


Link to post
Share on other sites

Okay the problem was that I was in monitor mode. I changed to program mode and am able to transfer the memory. Everything looks great!... until I go back to monitor mode. Then all of the inputs go back to the way they were. Why is this happening?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now