Applies To:
  • CitectSCADA 2.10 3.00

Summary:
Question: How do I configure Citect using the TINEC driver to communicate to Simatic TI PLCs? 

Solution:
The TINEC driver is shipped with Citect for Windows Versions 2.10 and 3.00, however there is no documentation on how to configure this driver shipped with these versions. This documentation will be shipped in a later version. This article contains the required information to setup the TINEC driver.

Configuring the TINEC driver requires you to:

  1. Setup your Citect Project
  2. Configure the CP1413 Card (in the Citect computer)
  3. Configure the 505-CP1434TF Card in the PLC

Required Hardware
The SINEC H1 protocol uses Siemens Sinec H1 Nim (505-CP1434TF) in the PLC and a Siemens CP1413 in the PC.

Citect Communications Forms
The Citect configuration of the TINEC driver is very simple. The following example illustrates how to fill out the Boards, Ports and IO Devices Forms.

Boards form
Board name: Board1
Board type: TINEC
Address: 0
Ports form
Port name: Port1
Board name: Board1
I/O Devices form
Name: IODev1
Number: 1
Address: UNIT1

Citect Variable Tags
The TINEC Driver supports the same Simatic TI types as the TIWAY protocol.

Data Types Address Format Citect Data Type

DIGITAL

   
Discrete Input (read only) Xn DIGITAL
Discrete Output (write only) Yn DIGITAL
Control Cn DIGITAL

INTEGER

   
Variable Vn INT / LONG / STRING
Packed Discrete Input (read only) WXn INT / LONG / STRING
Packed Discrete Output (write only) WYn INT / LONG / STRING
Timer Counter Preset TCPn INT / LONG / STRING
Timer Counter Current TCCn INT / LONG / STRING

REAL

   
Loop Gain LKCn REAL
Loop Reset Time (minutes) LTIn REAL
Loop Rate Time (minutes) LTDn REAL
Loop High Alarm Limit LHAn REAL
Loop Low Alarm Limit LLAn REAL
Loop Process Variable LPVn REAL
Loop PV High Limit LPVHn REAL
Loop PV Low Limit LPVLn REAL
Loop Orange Dev. Alarm Limit LODAn REAL
Loop Yellow Dev. Alarm Limit LYDAn REAL
Loop Sample rate (seconds) LTSn REAL
Loop Setpoint LSPn REAL
Loop Output (percent) LMNn REAL
Loop Error LERRn REAL
Loop Bias LMXn REAL
Loop High-High Alarm Limit LHHAn REAL
Loop Low-Low Alarm Limit LLLAn REAL
Loop Rate-of-change Alarm Limit /Minute LRCAn REAL
Loop Derivative Gain Limiting Coefficient LKDn REAL
Alarm High Alarm Limit AHAn REAL
Alarm Low Alarm Limit ALAn REAL
Alarm Process Variable APVn REAL
Alarm PV High Limit APVHn REAL
Alarm PV Low Limit APVLn REAL
Alarm Orange Dev. Alarm Limit AODAn REAL
Alarm Yellow Dev. Alarm Limit AYDAn REAL
Alarm Sample rate (seconds) ATSn REAL
Alarm Setpoint ASPn REAL
Alarm Error AERRn REAL
Alarm High-High Alarm Limit AHHAn REAL
Alarm Low-Low Alarm Limit ALLAn REAL
Alarm Rate-of-change Alarm Limit / Minute ARCAn REAL

Where

n must be greater than 0
x must be 1 to 64
y must be 1 to 128

Configure the CP1413 Card for Citect Computer
Install the CP1413 in the PC and run the Siemens install program (provided with the card) to set up the card parameters. Use the Siemens COM1413tf program to generate a StartUp.LDB for the CP1413 to load. The Address in the Units form contains a name which is the link to the Application Association Name in your Startup.LDB. This links to the definition of a communication connection with a remote Node address ie the PLCs Node. For example;

The Citect Node:

Node Name: CITECT1
Station Address: 08.00.06.01.00.10
CP_Type: CP1413TF

Application Association for UNIT1:

Name: UNIT1
Remote Address: 08.00.06.01.00.01
Local TSAP: CT_UNIT1
43.54.5f.55.4e.49.54.31
Remote TSAP: UNIT1_CT
55.4e.49.54.31.5f.43.54
Server ID: CP1413
Connection: Active, Static
PDU Size: 1000
TPDU Size: 1024

Configure CP1413 card for PLC
Use the Siemens 505-CP1434TF H1 Configurator program to configure the Sinec H1 Nim for the PLC. The configuration is the Nim must match the settings in the Startup.LDB file. For Example;

The PLC Node:

Local Ethernet Address: 080006010001
TF Services: UNIT1

TF Service for UNIT1:

Association Name: UNIT1
Association Profile: APROF_1010_SPS
Local Connection Information:
TSAP Length: 8
TSAP HEX: 55 4e 49 54 31 5f 43 54
TSAP ASCII: UNIT1_CT
Multiplexing Address: 00
Remote Connection Information:
TSAP Length: 8
TSAP HEX: 43 54 5f 55 4e 49 54 31
TSAP ASCII: CT_UNIT1
Multiplexing Address: 00

The TINEC driver uses the predefined variable names which are supported by the Sinec H1 Nim. You do not need to add any TF Variables or Peer Services for the connection.

Starting TINEC & CITECT
Before starting Windows you must load the Siemens low level driver, load the firmware and load the communication database. Run the following programs.

tfnetdrv
scp_mon -c
scp_mon -l

It is easiest to put these commands in the AUTOEXEC.BAT file. Once in windows before starting Citect run the SIN_SERV.EXE program. This can be made automatic if a new icon is made in the StartUp group for the SIN_SERV.EXE program. Note that SIN_SERV does not show it's self when running. Now Citect can be started.

Debugging TINEC
Test the CP1413 card address and IO Port from DOS using the Siemens program DPRAMTES.EXE. For example dpramtes 3e0 d0000 tests memory starting at 0xD000 and IO Port 3e0. The program should return OK for all its tests otherwise a clash with other hardware/software is indicated.

In the CITECT.INI file under the [TINEC] section put the setting window=1. This will bring up a some debug information when the Tinec driver is running. The information in this window will include Sinec H1 errors returned to the driver as well as a trace of requests and the corresponding responses.

NOTE: The SINEC and TINEC drivers can not coexist on the same Citect IO Server. If you need to communicate to both S5 and TI PLCs then you must use separate IO Server's.

 

Keywords:
 

Attachments