Exemplo n.º 1
0
 public ProgrammableLogicController(SimulationPage simulationPage, SfcEntity sfcEntity)
 {
     _simulationPage  = simulationPage;
     _inputRegisters  = new ResettingStateTable(_simulationPage.SimulationOutput);
     _outputRegisters = new ResettingStateTable(_simulationPage.SimulationInput);
     SfcProgramData   = new SfcProgramData(sfcEntity);
     SfcProgram       = new SfcProgram(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Called to initialize the PLC
 /// </summary>
 public void Startup()
 {
     SfcProgramData.InitializeSfcSteps(this);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets the value of the internal variable
 /// </summary>
 public bool LookupBoolVariable(string key)
 {
     return(SfcProgramData.IsStepActive(SfcProgramData.StepMaster.GetStepStateKey(key)));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets the value of the internal variable
 /// </summary>
 public int LookupIntVariable(string key)
 {
     return(SfcProgramData.GetStepFromMapKey(SfcProgramData.StepMaster.GetStepTimeKey(key)).StepCounter);
 }