Function for setting a command within a command table that shall be processed together with the previous command.
The function helps to initialize tables easily.
The function writes the value of iq_udiStepIndex to the iq_iStepIndex variable and adds 1. The step field index of the table is assigned with this variable.
Only iq_diStep is entered again into the iq_iStep variable. With the same step within a table, the FB_ModuleController recognizes that this command should be sent to the related module(s) in the same cycle as the previous command.
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General, library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an error message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Error message |
Input/Output |
Data type |
Description |
---|---|---|
iq_udiStepIndex |
UDINT |
Input/output for the variable for managing the index within the command table. |
iq_diStep |
DINT |
Input/output for the variable for managing the step number of the command to be entered. |