Siemens 6GK7242-7KX30-0XE0 Manual Do Utilizador

Página de 108
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 
0000
H
 
Job executed without errors 
7000
H
 
No job processing active (first instruction call) 
7001
H
 
Job processing started (first instruction call) 
7002
H
 
Job processing already active (renewed instruction call when BUSY = 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 
8086
H
 
Illegal value for ID 
80E4
H
 
Unknown ID: 
First call TC_CON. 
80E6
H
 
No query in progress (instruction call not started) 
80F5
H
 
Invalid connection endpoint: 
  Connection establishment by TC_CON failed. 
or 
  Connection terminated by remote partner: First call TC_DISCON. 
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. 
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 
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 
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 
IF_CONF "IF_CONF_..." for the individual parameters.