This is the most important interface of the PLC domain. It is used to load and unload the PLC project of any component implementing this interface. Furthermore it provides the operations to start and stop any component, if it is required, otherwise the operations are left empty.
More...
#include <IPlcComponent.hpp>
This is the most important interface of the PLC domain. It is used to load and unload the PLC project of any component implementing this interface. Furthermore it provides the operations to start and stop any component, if it is required, otherwise the operations are left empty.
The normal sequence of the PLC operations e.g. during startup and shutdown of a conroller is LoadPlc() -> SetupPlc() -> StartPlc() -> StopPlc() -> ResetPlc() -> UnloadPLc()
.
If the PLC was stopped and is in state Stop|Hot
or Stop|Warm
a PLC cold start would cause the following sequence: ResetPlc() -> SetupPlc() -> StartPlc()
.
◆ LoadPlc()
virtual DcgResultInfo Arp::Plc::Domain::Commons::IPlcComponent::LoadPlc |
( |
bool |
isChanging | ) |
|
|
pure virtual |
Loads the PLC project configuration of this component.
- Parameters
-
isChanging | true if this operation is called during download-changes, otherwise false . |
- Returns
-
Implemented in Arp::Io::Commons::IoComponentBase.
◆ ResetPlc()
virtual void Arp::Plc::Domain::Commons::IPlcComponent::ResetPlc |
( |
bool |
isChanging, |
|
|
bool |
onError |
|
) |
| |
|
pure virtual |
Resets the PLC project configuration of this component.
- Parameters
-
isChanging | true if this operation is called during download-changes, otherwise false . |
onError | true if this operation is called after an error occurs, otherwise false . |
Implemented in Arp::Io::Commons::IoComponentBase.
◆ SetupPlc()
Sets up the PLC project configuration of this component.
- Parameters
-
isChanging | true if this operation is called during download-changes, otherwise false . |
startKind | The start kind to process (cold, warm, hot). |
- Returns
-
◆ StartPlc()
virtual void Arp::Plc::Domain::Commons::IPlcComponent::StartPlc |
( |
PlcStartKind |
startKind | ) |
|
|
pure virtual |
Starts this PLC component using the specified start kind.
- Parameters
-
startKind | The PLC start kind to process: Cold , Warm , Hot hot, RestoreWarm . <see cref"PlcStartKind" /> for more infos. |
◆ StopPlc()
virtual void Arp::Plc::Domain::Commons::IPlcComponent::StopPlc |
( |
void |
| ) |
|
|
pure virtual |
◆ UnloadPlc()
virtual void Arp::Plc::Domain::Commons::IPlcComponent::UnloadPlc |
( |
bool |
isChanging, |
|
|
bool |
onError |
|
) |
| |
|
pure virtual |
Unloads the PLC project configuration of this component.
- Parameters
-
isChanging | true if this operation is called during download-changes, otherwise false . |
onError | true if this operation is called after an error occurs, otherwise false . |
Implemented in Arp::Io::Commons::IoComponentBase.
The documentation for this class was generated from the following file: