Type: |
Program |
Available as of: |
V1.0.0.0 |
Inherits from: |
- |
Implements: |
- |
This chapter provides information on:
The Smart Template Sensor Module program is generated as an IEC code. It is using the SERT.FB_RandomTargetsGenerator to generate targets.
Input |
Data type |
Description |
---|---|---|
i_xEnable |
BOOL |
A rising edge FALSE -> TRUE activates the POU. A falling edge TRUE -> FALSE deactivates the POU. A deactivated POU does not execute any actions. |
i_xDiagQuit |
BOOL |
A rising edge FALSE -> TRUE acknowledges pending diagnostic messages. |
Output |
Data type |
Description |
---|---|---|
q_xActive |
BOOL |
TRUE: The POU is active. FALSE: The POU is inactive. |
q_xReady |
BOOL |
TRUE: The POU is ready to operate and can accept user commands. FALSE: The function block is not ready to accept user commands. |
q_etDiag |
GD.ET_Diag |
General library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
q_etDiagExt |
SERT.ET_DiagExt |
POU-specific output on the diagnostic. q_etDiag = GD.ET_Diag.Ok -> Status message q_etDiag <> GD.ET_Diag.Ok -> Diagnostic message |
q_sMsg |
STRING[80] |
Event-triggered message that gives more detailed information on the diagnostic state. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Plain text |
---|---|---|---|
OK |
OK |
0 |
OK |
OK |
Disabled |
11 |
Disabled |
Name |
Description |
---|---|
The method Configuration is called only once before the initial step of the module is executed. |
|
Registers the program to the . |
|
The method is called when xNewTargetsAvailable is TRUE. |
|
The method is used to program a sensor logic. |
|
The method is called, when xTrigger is TRUE. |
|
Reads out the parameter for matrix targets without rotation. |
|
Reads out the parameter for matrix targets between minimum and maximum rotation values. |
|
Reads out the parameter for matrix targets with fixed rotation values. |
|
Reads out the parameter for random targets without rotation. |
|
Reads out the parameter for random targets between minimum and maximum rotation values. |
|
Sets the parameter for random targets with fixed rotation values. |
|
Sets the parameter for matrix targets without rotation. |
|
Sets the parameter for matrix targets between minimum and maximum rotation values. |
|
Sets the parameter for matrix targets with fixed rotation values. |
|
Sets the parameter for random targets without rotation. |
|
Sets the parameter for random targets with minimum and maximum rotation values. |
|
Sets the parameter for random targets with fixed rotation values |