Siemens ET 200S 1SI Function Manual page 37

Table of Contents

Advertisement

Call example
UNIT E_SI_8BY;
INTERFACE
VAR_GLOBAL
myExecSend
myAbortSend
mySendDone
myInstET200S_SISend
mySendDataArray
END_VAR
PROGRAM ExampleET200S_SI;
END_INTERFACE
IMPLEMENTATION
PROGRAM ExampleET200S_SI
// program for backgroundTask
VAR
myOutputArrayET200S_1 : ARRAY [0..7] OF BYTE;
END_VAR
// CALL FB INSTANCE TO SEND
myInstET200S_SISend (
execute
reset
dataOffset
:= myDataOffsetSend,
dataLength
periIn
periOut
data
);
mySendDone
Supplement to the ET 200S 1SI serial interface module
Function Manual, 01/2015, xxx
: BOOL;
: BOOL;
: BOOL;
: _ET200S_SI08_send;
: ARRAY [0..1023] OF BYTE;
:= myExecSend,
:= myAbortSend,
:= myDataLengthSend,
:= myPeripheralInputET200s_1,
:= myOutputArrayET200S_1,
:= mySendDataArray
:= myInstET200S_SISend.done;
Function blocks of the ET 200S 1SI serial interface module
// trigger send task
// cancel send order
// send: completed
// create FB instance
// send data array 1024 bytes
// program for BackgroundTask
// array for ET200S output data
// trigger order
// order cancellation
// data offset
// amount of data to be sent
// I/O variable of I/O inputs
// output data array
// send data array
3.9 Calling function blocks
(1)
(2)
(3)
(4)
37

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simotion et 200s

Table of Contents