Configuration
5.4 Configuring the telecontrol instructions
CP 1242-7
66
Operating Instructions, 09/2011, C79000-G8976-C247-02
5.4.8
IF_CONF: SDT for telecontrol configuration data
Parameter assignment of the system data type IF_CONF for the TC_CONFIG instruction
The CONFIG parameter of the TC_CONFIG instruction references the memory area with the
configuration data of the CP 1242-7 to be modified. The configuration data stored in a data
block is described as a structure of the system data type (SDT) IF_CONF.
IF_CONF is made up of a header followed by fields that correspond to the parameters or
parameter areas of the CP in the device properties of the STEP 7 project.
The CP configuration data to be modified is collected together in IF_CONF as fields.
Parameters that will not be modified are ignored in IF_CONF and remain as they were
configured in the STEP 7 project.
Follow the steps below to create the IF_CONF:
1.
Create a data block of the type "IF_CONF".
2.
Insert the header with the three general parameters (see below).
3.
Add the required fields for the parameters to be changed (see below).
4.
Check the length of the variable fields and, if necessary, correct the "Length" parameter.
Fields with strings and / or arrays have a variable length.
5.
Finally, update the number of fields in the header in the "subfieldCnt" parameter.
Header of IF_CONF
Table 5- 5
IF_CONF_Header
Byte
Parameter
Data type
Initial value
Description
0 ... 1 fieldType
UINT
Field type: Must always be 0.
2 ... 3 fieldId
UINT
Field ID: Must always be 0.
4 ... 5 subfieldCnt
UINT
Total number of fields contained in the structure
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 field length is specified.
●
Mode
The following values are permitted to these parameters: