Skip to content

Simulation library

Access

WinRelais exposes the library of simulatable components (folder D4) using three methods:

The explorer provides easy access to the blocks_simulables folder, which can be used to retrieve complete simulation subsets:

Method 1: place a symbol

Method 2: search and place a symbol

Method 3: explore and place a symbol using drag & drop

Create a symbol from an existing symbol

You can create a new symbol from an existing one, adapting its design and terminal layout as required. The new symbol inherits all the simulation logic of the parent symbol. The visual of the symbol can be defined with WinSymbol or with an image (also called texture) in png format.

Constraints :

  • Pin names must not be modified.
  • The number of pins may not be changed.

Example 1: We want to create a square-shaped ammeter symbol.

  1. Place the 'amperemeter' symbol on the folio.
  2. Go to Modify a Symbol and select Run WinSymbol.
  3. Modify the symbol as required in WinSymbol. Save modification (Ctrl-S).
  4. Accept the modifications.
  5. Save the symbol in the '_MeasuringInstruments' library, naming it 'amperemeter#carre'. (Do not use accented characters to name symbols).

It's very important to keep the same starting name, 'amperemeter' in the example, then add the '#' character followed by the name of your choice. The '#' symbol tells the simulator that the new 'carre' symbol is a variation of the 'amperemeter' symbol.

Example 2: We'd like to add a solenoid valve symbol to the family, which we'll call 'Solenoid_Valve#1'.

The operation takes longer than in the previous example, as the symbol's drawing must be created when it is active. Active symbol drawings are stored in the file : C:\Users\Public\Documents\Elec-CAO\wrs-data\wrs-on-symbols.xrs

  1. Place the 'Solenoid_Valve' symbol from the '_Coils' family on the folio.
  2. Modify the symbol as described in points 2.3 and 4 of example 1.
  3. Save the symbol in the ''_Coils'' library, naming it 'Solenoid_Valve#1'.
  4. Open the schematic 'wrs-on-symbols.xrs' in WinRelais. Preferably select the '_Coils' folio.
  5. Place the newly saved symbol 'Solenoid_Valve#1' on the folio.
  6. Go to Modify Symbol.
  7. Modify the symbol as required in WinSymbol. Save modification (Ctrl-S).
  8. Accept the modifications.
  9. Save schematic as 'wrs-on-symbols.xrs'.

Example 3: Using a png image to create the visual for a solenoid valve, which will be named 'Solenoid_Valve#2'.

We may find that WinSymbol's drawing capabilities are not sufficient to create the visuals for the symbols. In this case, it's possible to use a texture that will be edited in a separate program. The visual of the initial 'electrovalve' object manipulated earlier is constructed with this texture:

The texture must have the same name as the object.

  1. Place the 'Solenoid_Valve' symbol of the '_Coils' family on the folio.
  2. Save the symbol in the ''_Coils' library, naming it 'Solenoid_Valve#2'.
  3. Access the 'Solenoid_Valve.png' texture in the folder: C:\Us\Public\Documents\Elec-CAO\wrs-data\sym_textures\_Coils\Solenoid_Valve.png
  4. Copy the texture renamed to 'Solenoid_Valve#2.png' into the same folder.
  5. Edit the 'Solenoid_Valve#2.png' texture in a suitable program (e.g. GIMP) as required, then save (command 'Overwrite Solenoid_Valve#2.png' with GIMP).

Drawing mode(s) by symbol family

Drawing mode(s) by symbol family
_Terminals Texture or WinSymbol
_Buildings WinSymbol only
_Buttons Texture or WinSymbol
_Capacitors WinSymbol only
_Circuit_breakers WinSymbol only
_Coils Texture or WinSymbol
_Contactors WinSymbol only
_Control_Contacts Texture or WinSymbol
_Cylinders WinSymbol only
_DC_Motors WinSymbol only
_Detectors Texture or WinSymbol
_Diodes WinSymbol only
_Disconnect_Switches WinSymbol only
_Fuse_Switches WinSymbol only
_Ground+Earth WinSymbol only
_Hmi Texture or WinSymbol
_Indicators Texture or WinSymbol
_Limit_Switches Texture or WinSymbol
_Logic WinSymbol only
_Machine_Safety WinSymbol only
_Magnetic_Relays WinSymbol only
_Measurement_Instruments WinSymbol only
_PLC WinSymbol only
_Pneumatic_Components WinSymbol only
_Resistors WinSymbol only
_Sensors WinSymbol only
_Sfc WinSymbol only
_Speed_Drives WinSymbol only
_Supplies WinSymbol only
_Synoptic Texture or WinSymbol
_Terminals Texture or WinSymbol
_Thermal_Relays WinSymbol only
_Transformers WinSymbol only
_Valves WinSymbol only
  • A symbol with the default design mode 'WinSymbol' can be transformed into another symbol using WinSymbol only.
  • A symbol with the default drawing mode 'Texture' can be transformed into another symbol with a modified texture, or with a WinSymbol description.

Electrical component settings

(available in 'Modify an object' in WinRelais)

Relay, Timer, Timer library _Coils
vn = coil voltage [12 to 230 V]
pn = rated power [12 to 230 V]
toff = deactivation delay [0 to 30 s]
ton = activation delay [0 to 30 s]
timed contacts library _control_contacts
toff = deactivation delay [0 to 30 s]
ton = activation delay [0 to 30 s]
bulb library _building
vn = bulb voltage [12 to 230 V]
pn = bulb power [0.5 to 2000 W]
color = bulb color [red, green, blue, orange, white]
display here position of measured value on folio
* ditto that display here
indicator library _indicators
v = coil voltage [12 to 230 V]
color = light color [red, green, blue, orange, white]
circuit breaker + DDR library _circuit breakers
In = calibre [0.5 to 100 A]
delay = intentional delay [0 to 10000 ms]
courbe = courbe de déclenchement [B, C, D]
idn = sensitivity of differential [10 to 10000 mA]
diff_delay = intentional delay of the DDR [0 to 10000 ms]
fuse_switche library _fuse_switches
In = fuse rating [0.5 to 100 A]
delay = intentional delay [0 to 10000 ms]
type = type of cartridge [aM, gG]
thermal_relay library _thermal_relays
ith = thermal threshold [0.1 to 100 A]
magnetic_relay library _magnetic_relays
imag = magnetic threshold [0.1 to 100 A]
AC_motor library _ac_motors
Pu = motor output power [90 W to 22 kW]
nm = nominal motor speed [740 to 3000 rpm]
cos = cos(phi) motor [0.5 to 1]
efficiency = motor efficiency [0.5 to 1]
winding = rated voltage at winding terminals [127 to 400 V]
coupling = winding coupling [star, triangle]
DC_motor library _dc_motors
pu = motor output power [90 W to 22 kW]
nm = motor rated speed [740 to 3000 rpm]
armature = armature voltage [12 to 320 V]
efficiency = motor efficiency [0.5 to 1]
electrical source library _supplies
vin = input voltage [12 to 400 V]
vout = output voltage [12 to 400 V]
vout1 = output voltage [12 to 400 V]
vout2 = output voltage [12 to 400 V]
power resistor library _resistors
pn = rated power [10 W to 22 kW]
winding = nominal voltage at the terminals of a winding [230 or 400 V]
potentiometer library _resistors
value = potentiometer resistance [1m to 10M ohms], examples : (10m, 10, 10k, 2.2 M)
alpha = position of slider [0 to 100 %]
simple resistance library _resistors
value = resistance [1m to 10M ohms], examples : (10m, 10, 10k, 2.2 M)
measurement_instrument library _measurement_instruments
type = measurement type [avg, rms]
display here position of measured value on folio
* ditto that display here

Pneumatic component settings

(available in 'Modify an object' in WinRelais)

air pressure source library _supplies
pressure = compressed air pressure [0 to 145 psi] [0 to 10 bar]

Electrical component labels:

Symbols used in the simulation to indicate the status of electrical components:

Armed electrical protection (circuit breaker and fuse)

Electrical protection opening on overload or short-circuit (circuit breaker and fuse)

Opening leakage current protection (DDR)

Individual fuse cartridge status indicator.

Example of a three-pole fuse holder with two fused cartridges.

Receiver underpowered

Receiver overpowered