Schneider Electric 372 SPU 780 01EMAN Welding System User Manual


 
Working with Projects
48
372 SPU 780 01EMAN May 2002
Emulation Solve
File API Calls
API Call Description
Power Flow Calls
GetPowerFlow(Network, Row, Col, PowerState)
SetPowerFlow(Network, Row, Col, 1)
Power flow calls are used to:
Determine whether an instruction
should be solved (using
GetPowerFlow)
To pass along powerflow to the next
cell (using SetPowerFlow)
To activate an error condition (using
SetPowerFlow)
Power flow calls can be used to either
get or set a particular cell in logic.
Depending on the instruction being
solved, the row and col variables are
used to access a particular cell within
the 7 row x 11 column matrix.
Single Discrete State Calls
GetSingleDiscreteState(RefTyp, RefVal, State)
SetSingleDiscreteState(RefTyp, RefVal, 1)
Single discrete state calls are used to
get or set the state of a 0xxxx or 1xxxx
address. The State will return with 0 for
Off or 1 for On. When calling the Set,
use either 0 for Off or 1 for On.
Single Discrete History Calls
GetSingleDiscreteHistory(RefTyp, RefVal, History)
SetSingleDiscreteHistory(RefTyp, RefVal, State)
Single discrete history calls are used to
get or set the history of a 0xxxx or 1xxxx
address. The history will return with 0 for
Off or 1 for On. When calling the Set,
use either 0 for Off or 1 for On.
Single Discrete Disabled Calls
GetSingleDiscreteDisabled(RefTyp, RefVal, Disabled)
SetSingleDisabledState(RefTyp, RefVal, Disabled)
Single discrete disabled calls are used
to get or set the disabled status of a
0xxxx or 1xxxx address. The disabled
status will return with 0 for Enabled or 1
for Disabled. When calling the Set, use
either 0 for Enabled or 1 for Disabled.
Single Register Data Calls
GetSingleRegisterData(RefTyp, RefVal, Data)
SetSingleRegisterData(RefTyp, RefVal, Data)
Single register data calls are used to get
or set the data value of a 3xxxx or 4xxxx
address. Valid range for data is 0 to
65535.
Group Discrete Calls
GetGroupDiscreteState(RefTyp, RefVal, NumGroups, State(), Disabled())
SetGroupDiscreteState(RefTyp, RefVal, NumGroups, State())
SetGroupDisabledState(RefTyp, RefVal, NumGroups, Disabled())
Group discrete calls are similar to the
single calls except 16 discretes per
group are received or set at one time.
The arrays must contain data for as
many groups as are specified.