cancel
Showing results for 
Search instead for 
Did you mean: 

Module Logic

Experimenter
Experimenter

Hello,

 

We are setting up a simulation with Siemens S7 - PLCSim - NettoOPCSim and an OPC server. This all works fine and we can send and receive signals between Process Simulate and the PLC.

 

We are trying to add some logic now to simulate safety, press buttons etc.

 

We want to set a robot output automatically (input on plc) if an expression is fulfilled.

We tried to do this in a module like shown attached but when we run the program in line simulation mode the output does not set when the expression is fulfilled.

 

Any thoughts what the problem could be?

4 REPLIES

Re: Module Logic

Pioneer
Pioneer

Hello,

 

Try to use Logic Blocks.

There will be much more about on this forum.

 

Regards

Re: Module Logic

Siemens Phenom Siemens Phenom
Siemens Phenom

[edit]: oops, double post, while I was writing

Hi,

this is normal behavior, as modules are used to mimic parts of the not existing PLC, while simulating in CEE-mode.

They are completely ignored during any PLC-connected simulation.

 

To do what you want, you could:

a) add a robot-signal, connected directly to the PLC and use OLP-commands to set the value

b) add a Logic-Block with needed entries/exits, connect your signals and add your expression to the exit

 

 

Btw:

why are you using OPC in combination with PLCSim and don't connect to it without OPC?

Advantages are time-synchronization and probably also performance....

 

Re: Module Logic

Experimenter
Experimenter

Thanks for the answers, it is working now. We are doing some tests with 2 students. One is doing the PLC / HMI part and the other one is doing the Process Simulate part, that is why we are using OPC between both computers.

 

Have a nice weekend!

Re: Module Logic

Siemens Legend Siemens Legend
Siemens Legend

Hi R_Cloesen

 

Maybe you can share some of your results once you are finished if you are able to?

I think the forum could defintely benefit from such experience!

 

 

Kind regards,
Gal Snir