Siemens 6GK7242-7KX30-0XE0 Manual Do Utilizador
![Siemens](https://files.manualsbrain.com/attachments/fea10bc852adcb1f4f76708d5daebca542e532b9/common/fit/150/50/c53f5738b57089fc3d6c279e23db7450685a19c9616727fc1f659077967b/brand_logo.png)
Configuration and programming
5.4 Programming the telecontrol instructions
CP 1242-7
64
Operating Instructions, 03/2012, C79000-G8976-C247-03
The codes DONE, ERROR and STATUS
The following table shows the condition codes formed based on DONE, ERROR and
STATUS that must be evaluated by the user program.
DONE ERROR STATUS
Meaning
1
0
0000
H
Job executed without errors
0
0
7000
H
No job processing active (first instruction call)
0
0
7001
H
Job processing started (first instruction call)
0
0
7002
H
Job processing already active (renewed instruction call when BUSY = 1)
0
1
80E0
H
The size of the data received for the range specified by DATA is greater than the
length information in LEN.
or
Internal error
0
1
8086
H
Illegal value for ID
0
1
80E4
H
Unknown ID:
First call TC_CON.
First call TC_CON.
0
1
80E6
H
No query in progress (instruction call not started)
0
1
80F5
H
Invalid connection endpoint:
Connection establishment by TC_CON failed.
Connection establishment by TC_CON failed.
or
Connection terminated by remote partner: First call TC_DISCON.
0
1
80F6
H
Format error of a parameter in the called data block (wrong length, wrong format or
invalid value)
Check the configuration of the "TC_CON..." SDT.
Check the configuration of the "TC_CON..." SDT.
5.4.5
TC_CONFIG: Transferring configuration data to a GPRS communications
module
Meaning
With the TC_CONFIG instruction, parameters of a the CP 1242-7 configured in STEP 7 can
be modified. The configured values are not overwritten retentively. The overwritten values
remain valid until TC_CONFIG is called again or until the station starts up again (cold restart
after cycling power).
If the STEP 7 configuration data of the CP needs to be changed permanently, the instruction
If the STEP 7 configuration data of the CP needs to be changed permanently, the instruction
needs to be called again each time the station restarts (cold restart) or a modified project
must be downloaded to the station.
The CONFIG parameter points to the memory area with the configuration data. The
The CONFIG parameter points to the memory area with the configuration data. The
configuration data is stored in a data block (DB). The structure of the DB is specified by the
system data type (SDT) IF_CONF.
The configuration data to be modified on the CP is put together as necessary in blocks in
The configuration data to be modified on the CP is put together as necessary in blocks in
IF_CONF "IF_CONF_..." for the individual parameters.