Creating I/O Variables - Siemens ET 200S 1SI Function Manual

Table of Contents

Advertisement

Description

2.6 Creating I/O variables

Application example
The application example is contained on the "SIMOTION Utilities & Applications" CD-ROM
and is available for various SIMOTION hardware platforms.
The "SIMOTION Utilities & Applications" CD-ROM is provided free of charge and part of the
SIMOTION SCOUT scope of delivery.
2.6
Creating I/O variables
Overview
Communication between the SIMOTION hardware platform and the ET 200S 1SI serial
interface module takes place by means of direct access to the I/O. The data interface of the
serial interface module is specified in the hardware configuration at a 4-byte length, an 8-byte
length or a 32-byte length.
I/O variables are used to address the direct read/write access to the I/O. You can freely assign
the names of I/O variables in SIMOTION SCOUT. The I/O variables must be specified as type
ARRAY [0..3] of BYTE, ARRAY [0..7] of BYTE or ARRAY [0..31] of BYTE. Assign the
addresses set in the HW Config to them.
The names of the I/O inputs must be transferred to the function blocks as call parameters
(periIn). The prepared data for the I/O outputs are provided by the FB as in/out parameters
(periOut). The in/out parameter must be supplied with a variable of type ARRAY [0..3] of BYTE,
ARRAY [0..7] of BYTE or ARRAY [0..31] of BYTE. After the block is called, this variable must
be assigned to the I/O variables for the I/O outputs (see call example in chapter Calling function
blocks (Page 36).
Note
The variable for supplying the in/out parameters must not be created as a temporary variable
(VAR_TEMP or local variable of a function).
The following example shows how to assign the module addresses to the I/O variables in
SIMOTION SCOUT.
Figure 2-2
16
Address assignment in SIMOTION SCOUT for two ET 200S 1SI serial interface modules
with 32-byte data interface
Supplement to the ET 200S 1SI serial interface module
Function Manual, 01/2015, xxx

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simotion et 200s

Table of Contents