FC_SemaphoreMeGiveForce - General Information
Type: |
Function |
Available as of: |
V1.0.7.0 |
Versions: |
Current version |
Release a semaphore regardless of its Task.
NOTE: The function only helps when debugging. It may not be used for any other purpose! Disregarding this can lead to the destruction of the content of data structures in critical areas!
For restrictions for use see Notes on Using the "SemaphoreMutualExclusion" Function.
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
Input/Output |
Data type |
Description |
---|---|---|
iq_stSemMe |
Structure of the semaphores to be released |
Data type |
Description |
---|---|
BOOL |
TRUE: the semaphore has been successfully released. FALSE: the semaphore has not been released. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
266 |
SemaphoreMe is not initializd. |
|
UnexpectedProgramBehavior |
268 |
GiveForce of the SemaphoreMe was unsuccessful. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The semaphore has been successfully released.
Enumeration name: |
SemaphoreMeGiveForceFailed |
Enumeration value: |
268 |
Description: |
GiveForce of the SemaphoreMe was unsuccessful. |
Issue |
Cause |
Solution |
---|---|---|
- |
An error occurred in the internal execution. |
Please inform the support team about this error. |
Enumeration name: |
SemaphoreMeNotInitialized |
Enumeration value: |
266 |
Description: |
SemaphoreMe is not initializd. |
Issue |
Cause |
Solution |
---|---|---|
- |
The semaphore is not initialized. |
Transfer the same semaphore which was used during call-up of FC_SemaphoreMeCreate at the iq_stSemMe input. |