Calling Function Blocks - Siemens ET 200S 1SI Function Manual

Table of Contents

Advertisement

Function blocks of the ET 200S 1SI serial interface module

3.9 Calling function blocks

Name
P type
1)
error
OUT
errorID
OUT
Parameter types: IN = input parameter, OUT = output parameter, IN/OUT = in/out parameter
1)
Note: The periOut parameter must be provided with an array of type ARRAY [0..3] of BYTE or ARRAY [0..7] of BYTE.
2)
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"!
For error information, refer to SIMATIC manuals
3)
ET 200S 1SI Serial Interface Modules .
Diagnostics", and
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.
36
Data type
BOOL
WORD
ET 200S Distributed I/O System, chapter "Commissioning and
Meaning
Request completed with errors
Error specification
For error = TRUE, the error infor‐
mation (event class and number)
is displayed in the errorID param‐
eter.
3)
Supplement to the ET 200S 1SI serial interface module
Actions performed by
Actions per‐
user
formed by
Checked
Entered
Checked
Entered
Function Manual, 01/2015, xxx
block

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simotion et 200s

Table of Contents