Limitations of the PLC Simulator
Original instructions
General
General limitations
PLC OS System Services
The PLC simulator supports the most PLC OS system services on a variety of platforms. These services are only implemented as dummy services.
This means that functions and function blocks can be used in the loaded project, but they do not work as expected and/or they return an error message.
This mainly affects functions and function blocks that accessed special platforms, such as I/O blocks, communication and hardware specific functions.
The following PLC OS system services are supported:
The following PLC OS system services are not supported:
Memory Structure
The different PLC families vary in memory structure.
For detailed information about memory alignment refer to chapter DDT: Mapping rules.
For detailed information about storage principles and memory structure refer to chapter Application Memory structure.
NOTE: PLC Simulator is a 16 bits application, whatever PLC in application is (Quantum, Premium, M580...). This is why you must rebuild your application when you switch from real PLC to Simulator.
WARNING
UNINTENDED EQUIPMENT OPERATION
Improper data mapping will occur where memory structures are different. When managing data exchanges between M340, M580 or Momentum projects and Premium or Quantum projects, ensure that the structure of the exchanged data has identical alignments.
Otherwise, the data will not be exchanged properly.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Communication
Communication limitations
NOTE: Communication function blocks that require PLC client and PLC server are supported with multiple instances of PLC simulator, for details, refer to IP Address and Communication Port Simulation.
The PLC simulator supports the following native Modbus commands:
Function Code (in hex)
Description
01
Read Coil Status (0x)
02
Read Input Status (1x)
03
Read Holding Registers (4x)
04
Read Input Registers (3x)
05
Force Single Coil (0x)
06
Preset Single Register (4x)
0F
Force Multiple Coils (0x)
10
Preset Multiple Registers (4x)
16
Mask Write Registers (4x)
Mapping a %MW to a Boolean Element
Regarding the use of %MW mapped on a boolean element in structured data type, the PLC simulator and a real PLC behave different.
When a %MW is mapped on a boolean element in structured data type, only the first row is animated by the PLC simulator. On a real PLC both rows (zero and one) are animated. Row one is used to get the information about the history value.
Control Expert XLS Safety Project Limitations
The following limitations apply to the PLC simulator working with safety projects built with Control Expert XLS:
Debugging Limitations
The PLC simulator could enter HALT state when executing the Step Info or Step Over debugging command in textual languages.
If the current element is a complex instruction (i.e. copying a huge array from one variable to another), the execution of this instruction takes a very long time, because it will be executed in single step mode on the PLC simulator.
Setting a breakpoint on the next instruction and executing the Go command avoids this problem.
System Word %SW125
In case of division by 0 the %SW125 is set to: