Siemens S7-1200 TELECONTROL Operating Instructions Manual page 101

Hide thumbs Also See for S7-1200 TELECONTROL:
Table of Contents

Advertisement

1. Create a data block of the type "global DB" with block access "Standard".
2. Create a structure (data type "Struct") in the table of the parameter configuration of the
DB.
You can specify any name.
3. Under this structure add a header by assigning the name of the header and typing it in in
the cell of the data type "IF_CONF_Header".
The header of the structure and its three parameters (see below) is created.
4. Create a field for the first parameter to be changed by typing in the required data type (for
example "IF_CONF_APN") in the cell of the data type.
5. Repeat the last step for all parameters you want to change on the CP using the
TC_CONFIG instruction.
6. Finally, update the number of fields in the header in the "subfieldCnt" parameter.
Header of IF_CONF
Table 5- 1
IF_CONF_Header
Byte
Parameter
0 ... 1
fieldType
2 ... 3
fieldId
4 ... 5
subfieldCnt
General parameters of the parameter fields
Each field has the following general parameters:
● Id
This parameter identifies the field and must not be modified.
● Length
This parameter indicates the length of the field. The value serves as information.
Fields with strings and / or arrays have a variable length. Due to hidden bytes, the actual
length of fields can be greater than the sum of the displayed parameters.
● Mode
The following values are permitted to these parameters:
Table 5- 2
Value
1
2
CP 1242-7 GPRS V2
Operating Instructions, 10/2016, C79000-G8976-C311-02
Data type
Initial value
UINT
UINT
UINT
Values of "Mode"
Meaning
Permanent validity of the configuration data
Not relevant for the CP
Temporary validity of the configuration data, including deleting of existing permanent
configuration data
The permanent configuration data is replaced by the parameter fields of IF_CONF.
Programming the program blocks
5.4 IF_CONF: SDT for the configuration data of the CP
Description
Field type: Must always be 0.
Field ID: Must always be 0.
Total number of fields contained in the structure
101

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S7-1200 - telecontrolCp 1242-7 gprs v2

Table of Contents