CALL_PROGRAM_SYNC block
Short summary
Name |
|
→POU type |
|
Category |
IEC-block, UtilEnh functions, block with internal error diagnostic |
|
|
Available since |
|
Functionality
This blocks calls a program →instance synchronously from the current →program. The details:
The block calls the instance with the specified handle.
It is not possible to forward →input variables or →output variables to a call of this block. Only the output ENO
of the called program can be used after the call of this block, in particular by using the return value CallENO
(see the following table).
Inputs, return value
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
handle of a program; returned by the block |
Return value: |
|
|
state of the output |
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
Internal error diagnostic for block
The block checks the value connected to the input before it is executed.
-
In case of an invalid handle or when the current program itself is called, the output
ENO
of the block is set to valueFALSE
(or an equivalent) and the return valueCallENO
is set toFALSE
. -
Otherwise the output
ENO
of the block is set to valueTRUE
(or an equivalent) and the return valueCallENO
is set to the state of the outputENO
for the called program.
Example for usage within ST-editor
At present, there is no example.
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.