simple_plc_simulation
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| simple_plc_simulation [2020/07/20 01:38] – [MIStudio Example] wikiadmin | simple_plc_simulation [2023/08/06 13:56] (current) – [MIX] wikiadmin | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| **java.io.tmpdir** - this can be left at its default, which is the system' | **java.io.tmpdir** - this can be left at its default, which is the system' | ||
| + | |||
| + | Note: be sure that the directory you use for the java.io.tmpdir setting exists on your harddrive before running the configuration. | ||
| **vib.sharedplcsimulation** - this is mandatory and is set to " | **vib.sharedplcsimulation** - this is mandatory and is set to " | ||
| Line 41: | Line 43: | ||
| {{: | {{: | ||
| + | ====Using ErgoTechConfiguration.properties for Device Simulation===== | ||
| + | |||
| + | Using the parameters above, instead of editing the run script, you can add these parameters to ErgoTechConfiguration.properties. Add a section starting with a comment such as: | ||
| + | |||
| + | < | ||
| + | #for simulating devices, remove if not simulating | ||
| + | java.io.tmpdir=C:/ | ||
| + | OmronFins.simulate=true | ||
| + | vib.sharedplcsimulation=true | ||
| + | </ | ||
| + | |||
| + | if the example above, the device server OmronFins would be simulated | ||
| ====MIStudio Example==== | ====MIStudio Example==== | ||
| Line 60: | Line 74: | ||
| When you start MIStudio the simulator for a Modbus device called " | When you start MIStudio the simulator for a Modbus device called " | ||
| - | Note: You will not want to toggle MIStudio into " | + | **Note: Do not toggle MIStudio into " |
| To test the shared PLC simulation with the TransSECS Devices example above, start a new MIStudio project. In the Design Window add a SwingTextField and an Annunciator, | To test the shared PLC simulation with the TransSECS Devices example above, start a new MIStudio project. In the Design Window add a SwingTextField and an Annunciator, | ||
| Line 69: | Line 83: | ||
| ====MIX==== | ====MIX==== | ||
| - | MIX is set up in the same way as MIStudio. Edit the MIX.conf to add the three parameters as for the MIStudio example. | + | MIX is set up in the same way as MIStudio. Edit the MIX.conf to add the three parameters as for the MIStudio example |
| + | |||
| + | Alternatively, | ||
simple_plc_simulation.1595223512.txt.gz · Last modified: by wikiadmin
