In this topic:
Sxxxx nout1 nout2 vc+ vc- modelname IC=ic
nout1 | Switch node 1 |
nout2 | Switch node 2 |
vc+ | Positive control node |
vc- | Negative control node |
modelname | Name of model. Must begin with a letter but can contain any character except whitespace and period '.'. |
ic | Initial condition. Hysteresis mode only. Defines initial state of switch if control voltage is between upper and lower thresholds. 0 for 'OFF' 1 for 'ON' |
.model modelname VSWITCH ( parameters )OR
.model modelname SW ( parameters )
Name | Description | Units | Default |
RON | On resistance | ???MATH???\Omega???MATH??? | 1 |
ROFF | Off resistance | ???MATH???\Omega???MATH??? | Hysteresis mode: 1.0E12. Continuous mode: 1.0E6 |
VON | Voltage at which switch begins to turn on. (continuous mode) | V | 1 |
VOFF | Voltage at which switch begins to turn off. (continuous mode) | V | 0 |
VT | If present enables hysteresis mode. Sets threshold voltage | V | 0.5 |
VH | Hysteresis voltage. (hysteresis mode) | V | 1.0 |
TON | On time. (hysteresis mode) | s | 1ns |
TOFF | Off time. (hysteresis mode) | s | 1n |
TD | Delay time. (hysteresis mode) | s | 0 |
TD_ON | On delay. (hysteresis mode) | s | TD |
TD_OFF | Off delay. (hysteresis mode) | s | TD |
TIMETOL | Time tolerance. (hysteresis mode) | s | 10p |
GIN | Conductance at control terminals | Siemens | 0 |
GIN has a default value of zero unless the PSPICEGMIN option is set in which case it has a default value of GMIN. GMIN is set using ".OPTIONS GMIN=value" and has a default value of 1e-12.
The voltage controlled switch has two modes of operation:
GMIN is a simulation parameter which defaults to 10E-12 but which can changed using the .OPTIONS statement.
The SIMetrix voltage controlled switch is compatible with PSpice® but note that in hysteresis mode, the SIMetrix switches in a controlled time whereas the PSpice version switches abruptly.
◄ Voltage Controlled Current Source | Voltage Controlled Voltage Source ▶ |