Name
P type
1)
Data type
Meaning
Actions performed by
user
Actions per‐
formed by
block
error
OUT
BOOL
Request completed with errors
Checked
Entered
errorID
OUT
WORD
Error specification
For error = TRUE, the error infor‐
mation (event class and number)
is displayed in the errorID param‐
eter.
3)
Checked
Entered
1)
Parameter types: IN = input parameter, OUT = output parameter, IN/OUT = in/out parameter
2)
Note: The periOut parameter must be provided with an array of type ARRAY [0..3] of BYTE or ARRAY [0..7] of BYTE.
Create a local or global array in your program under VAR (do not create a temporary array under VAR_TEMP). After the
FB has been called, this array must be assigned to the I/O variable for the I/O outputs of the module. See call example in
chapter "Calling the function blocks"!
3)
For error information, refer to SIMATIC manuals
ET 200S Distributed I/O System,
chapter "Commissioning and
Diagnostics", and
ET 200S 1SI Serial Interface Modules
.
Task integration (call)
The _ET200S_SIxx_flowV24 FB must be called cyclically in the BackgroundTask or the
TimerInterruptTask. Calling in the SystemInterruptTask is not permitted. Calling the function
block in the IPOSynchronousTask is not recommended for runtime reasons.
3.9
Calling function blocks
In order to be able to work with the function blocks in your user program, proceed as follows
(the numbers shown in the following program segment correspond to the steps below):
1. Create the function block instance (see the following program segment, e.g. create instance
for the _ET200S_SI08_send function block).
2. Create an array for the in/out parameters of the FB.
3. Call instance of the function block.
4. Transfer input parameters.
5. The output parameters of the FB are accessed with <instance name of FB>. <name of
output parameter>.
6. Data prepared by the FB for the I/O outputs are assigned to the array of the I/O variables
created in step 2.
Note
The call example is an extract from the supplied E_SI_8By application example, which is
contained on the "SIMOTION Utilities & Applications" CD-ROM.
If you want to control more than one serial interface module, you must create a new variable
for the FB instances with a new name for each additional module used.
Function blocks of the ET 200S 1SI serial interface module
3.9 Calling function blocks
Supplement to the ET 200S 1SI serial interface module
36
Function Manual, 01/2015, xxx