Unity Pro Simulator Memory Mapping

ljackson-haub

Member
Join Date
Jan 2012
Location
Melbourne
Posts
2
Hi All,
A problem i've run into when I work with M340 PLCs. I develop my program to a point that requires testing with SCADA or HMI interface (using Modbus TCP). I switch unity to simulation mode in order to test.

When I switch to simulation mode and rebuild the project the memory Modbus addresses change up. It looks as though the addressing changes to Quantum/Premium memory mapping principles.

The simulator says it is simulating a BMX P34. Is there are way to preserve the M340 memory mapping principles when simulating?

Thanks,
Charlie
 
I have an M340 on my desk and I just tested the simulator Vs. a real device and I get consistent results. This is with the same exact program.

I set the first 10 registers %MW0:10 in both and then request them with the same tool - I use RMC's Ethernet Demo tool for quick things like this and the results are identical, and match what I set in the PLCs. See screenshot:

UnitySimulator.jpg
 
I suppose i misnamed my thread, it should have been "Unity Simulation Mode Memory Mapping". You are correct in that the simulator does work correctly in presenting data. My problem was with the way unity structures data inside DDTs.

It has something to do with one mode allowing REALS and INTS on odd and even addresses and one only allowing them on even addresses. (Don't quote me, remembering from the manual but it was something along these lines).

The example screenshots provided below may help explain a little better. Not the different memory address of "real4".

DDT instance compiled in standard mode:
View attachment StandardMode.bmp

DDT instance compiled in simulation mode:
View attachment SimulationMode.bmp
 

Similar Topics

Hello i want to implement a Read_var / Write_var functions to communicate with a modbus tcp device at the moment i use the unity simulator at the...
Replies
4
Views
1,915
So I create a virtual M580 PLC in unity pro software and I have connected the virtual PLC with OPC client which is installed on another computer...
Replies
0
Views
1,069
I'm using Unity Pro XL v13.1 Trying to connect to the PLC Simulator and getting error: "This isn't a valid PLC Address, or PLC is budy, or media...
Replies
0
Views
2,749
I am using Unity Pro 13 XL- running on windows 7 OS. The program is in Simulation mode. When I try to connect it to the Simulator , I am getting...
Replies
3
Views
5,561
I've been trying to use the PLC Simulator with Unity Pro XL and the PLC connection keeps dropping after 5-15 minutes. If I try to reconnect, it...
Replies
5
Views
4,969
Back
Top Bottom