master:tbreakn parametersPSCAD Timed Breaker Logic
Every parameter of the PSCAD Timed Breaker Logic (master:tbreakn): 5 names, with the unit, the default and the meaning PSCAD gives each one. Copy a name into parameters().
What master:tbreakn is
Timed Breaker Logic: switches a breaker at one or two set times. A script that times a switching writes these.
- Definition
master:tbreakn- PSCAD name
- Timed Breaker Logic
- Category
- Faults and switching
- Parameters
- 5, in 1 group; 2 carry a unit
- Read from
- PSCAD 5.0.0, 2026-11-07
Most used master:tbreakn parameters
| Parameter | Unit | Description |
|---|---|---|
INIT | · | Initial Statethe state at the start of the run |
NUMS | · | Number of Breaker Operationsone or two operations |
TO1 | s | Time of First Breaker Operationthe first operation |
TO2 | s | Time of Second Breaker Operationthe second |
Read and write master:tbreakn in Python
import mhi.pscad
pscad = mhi.pscad.connect() # the PSCAD that is open; launch() starts one
project = pscad.project("my_case") # a case loaded in the workspace
for comp in project.find_all("master:tbreakn"): # the exact definition, namespace first
params = comp.parameters() # every parameter, as PSCAD holds it
print(str(params["INIT"])) # Initial State
comp = project.find_all("master:tbreakn")[0]
comp.parameters(INIT="OPEN") # a Choice is written as its symbol
- A parameter is named exactly as in the table, letter case included:
parameters()gives every one of them in a dictionary, and a name the component does not have is refused. - A value that carries a unit comes back as a number whose unit is only in its text, so read it as text first (
str(...)) or the unit is lost. PSCAD keeps a written unit as it is given:"2500 [mohm]"stays in mohm. - A Choice is read and written as its symbol (the capitals in "Written as"), not as the words PSCAD shows in the dialog.
find_all()takes the exact definition only. A wildcard or a bare name withoutmaster:comes back empty; the Builder'spx_findwalks the pages for those.
The Builder's runtime does the same with the unit handled for you: px_get(comp, "INIT") and px_set(...), which also records the old value so the case is put back at the end. Getting started shows them.
Parameters
| Parameter | Unit | Default | Description |
|---|---|---|---|
INITChoice | · | CLOSE | Initial StateWritten as CLOSE (Close), OPEN (Open) |
NUMSChoice | · | 2 | Number of Breaker OperationsWritten as 1 = 1, 2 = 2 |
NameText | · | · | Name for IdentificationEnter a name for identification |
TO1Real | s | 1.0 | Time of First Breaker OperationAt least 0 |
TO2Real | s | 1.05 | Time of Second Breaker OperationAt least 0Used when NUMS==2 |
Related
- All 345 definitions in the component reference
- Fault studies in PSCAD with Python: ride through and critical clearing time
- PSCAD automation with Python: getting started
← master:tpflt Three Phase Fault · master:tfaultn Timed Fault Logic →