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

ParameterUnitDescription
INIT·Initial Statethe state at the start of the run
NUMS·Number of Breaker Operationsone or two operations
TO1sTime of First Breaker Operationthe first operation
TO2sTime 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 without master: comes back empty; the Builder's px_find walks 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

ParameterUnitDefaultDescription
INITChoice·CLOSEInitial StateWritten as CLOSE (Close), OPEN (Open)
NUMSChoice·2Number of Breaker OperationsWritten as 1 = 1, 2 = 2
NameText··Name for IdentificationEnter a name for identification
TO1Reals1.0Time of First Breaker OperationAt least 0
TO2Reals1.05Time of Second Breaker OperationAt least 0Used when NUMS==2

Related

← master:tpflt Three Phase Fault · master:tfaultn Timed Fault Logic →