Fault
Short-circuit (short-circuit) with time, value range or external trigger control.
Description
The Fault block simulates a short circuit (fault) as an instantaneous change in resistance. You can use it to reproduce both open circuit and short circuit behaviour. The block supports the following triggering options:
-
At a specific time. The unit can also trip a short circuit after a specified time.
-
When exceeding the specified voltage or current range.
-
When the input signal becomes greater or less than the set threshold value.
The Fault resets when fault trigger reverts parameter also allows you to reset a fault when the value of the external signal F no longer satisfies the External fault trigger condition. You can enable or disable all three triggers individually. If more than one trigger is required in your simulation, you can use them together.
When the fault is not active, the resistance between the two electrical ports is determined by the Unfaulted resistance parameter value. The By default value for this parameter is inf
, i.e. the circuit is open.
When a short circuit occurs, the unit changes the resistance between the two electrical ports to the value of the Faulted resistance parameter. The By default value for this parameter is 1e-3 ohms, i.e. the ports are shorted.
The output signal X conveys the state of the block; if the block is shorted, the output signal is 1
, otherwise 0
. The input signal on the F port is an external fault trigger signal and is only used when the Enable external fault trigger parameter is set to Yes
.
Ports
Input
F - external short-circuit call
scalar
External signal for triggering the short circuit.
Dependencies
To use this port, set Enable external fault trigger to Yes
.
Parameters
Unfaulted resistance - short-circuit free resistance
`inf (by default)
Resistance between ports + and - with no short circuit, ohms.
Faulted resistance - short-circuit resistance
1e-3 ohms (by default)
.
Resistance between ports + and - on active short-circuit.
Enable temporal fault trigger - timed fault trigger
No (By default)
| Yes
Select Yes
to enable time fault trigger.
Fault start time - fault start time
`1 s (By default)
The simulation time at which the unit enters the fault state.
Dependencies
To use this parameter, set Enable temporal fault trigger to Yes
.
Fault duration - fault duration
inf (By default)
.
The time duration of the fault simulation. The unit exits the short-circuit condition after the specified time has elapsed.
Dependencies
To use this parameter, set Enable temporal fault trigger to Yes
.
Enable behavioural fault trigger - short-circuit triggering by event
No (By default)
| Yes
.
Select Yes
to enable behavioural fault trigger.
Permissible voltage range - permissible voltage range
[-100, 100] V (by default)
.
Specify a vector of length 2 that defines the permissible voltage range. If the voltage is outside this range for longer than Time to fail when exceeding voltage range, the unit enters the short-circuit condition.
Dependencies
To use this parameter, set Enable behavioural fault trigger to Yes
.
Time to fail when exceeding voltage range - short circuit duration
`1 s (By default).
Set the maximum time interval during which the voltage can exceed the voltage range without causing a short circuit.
Dependencies
To use this parameter, set Enable behavioural fault trigger to Yes
.
Permissible current range - time of short-circuit initiation
[-1, 1] A (By default)
.
Specify a vector of length 2 that defines the permissible current range. If the current is outside this range for longer than Time to fail when exceeding current range, the unit enters the short-circuit condition.
Dependencies
To use this parameter, set Enable behavioural fault trigger to Yes
.
Time to fail when exceeding current range - short circuit duration
`1 s (By default)'.
Set the maximum time interval during which the current can exceed the current range without causing a short circuit.
Dependencies
To use this parameter, set Enable behavioural fault trigger to Yes
.
Enable external fault trigger - external fault trigger
No (By default)
| Yes
.
Select Yes
to enable external fault trigger.
External fault trigger - fault condition
Faulted if F ≥ Fault threshold (by default)
| Faulted if F ≤ Fault threshold
.
Select the fault condition:
-
Faulted if F ≥ Fault threshold
- A fault occurs when the value of the external signal F becomes greater than or equal to the value of the Fault threshold parameter. -
Faulted if F ≤ Fault threshold
- A fault occurs when the value of the external signal F becomes less than or equal to the value of the parameter Fault threshold.
Dependencies
To use this parameter, set the Enable external fault trigger parameter to Yes
.
Fault threshold is the fault trigger threshold value
0.5 (By default)
.
Threshold value that triggers a fault when an external signal crosses it in the direction specified by the fault condition.
Dependencies
To use this parameter, set Enable external fault trigger to Yes
.
Fault resets when fault trigger reverts - fault resets when fault trigger reverts
No (By default)
| `Yes `
Select Yes
to reset the fault when the F external signal value no longer fulfils the External fault trigger condition.
Dependencies
To use this parameter, set Enable external fault trigger to Yes
.