Industrial Ethernet On PC2000ETH (ISO Layer 4) : Woodhead Woodhead
Industrial Ethernet On PC2000ETH (ISO Layer 4) : Woodhead Woodhead
Industrial Ethernet On PC2000ETH (ISO Layer 4) : Woodhead Woodhead
Woodhead
Protocol manual
Industrial Ethernet on
PC2000ETH (ISO Layer 4)
applicom® 3.8
H1.doc 06/05/2004
Woodhead
H1.doc 06/05/2004
® TM TM TM
Copyright © 2004 Woodhead Software & Electronics. All rights reserved. applicom , Direct-Link , RJ-Lnxx , SST are registered
trademarks of Woodhead Software & Electronics. Other product names are trademarks of their respective owners.
http://www.applicom-int.com
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
Table of contents
1. - Generalities ..................................................................................1
Woodhead
1. - Generalities
" Industrial Ethernet " is the new name of the SIEMENS communication system, in the past called
SINEC H1. This open communication system can operate in a homogeneous environment (Siemens
CP143, CP1430, CP443-1, CP343-1 et CP1434 couplers amongst others) or heterogeneous environment
(Siemens couplers with other manufacturers). It is located both at the cell supervisor level (level 3) and
inter-PLC communication network (level 2).
CUSTOMER
APPLICATION
applicom®
Layer 7 TI
Application READ/WRITE S5 mess. TF Protocol S7
Peer to Peer
Layer 6
Presentation
Layer 5
Session
Layer 4
Transport ISO 8073 CLASS 4
Layer 3 Empty
Network
Absolute NSAP
Layer 2
Link IEEE 802.2 (CSMA/CD)
Layer 1
Physical IEEE 802.3
Layers 1 and 2 (2a), the physical and datalink layers, operate according to the CSMA/CD
procedure according to IEEE 802.3. The layer 2b (LL6) corresponds to IEEE 802.2.
Layer 3 (network layer) is not implemented in the case of Industrial Ethernet. Siemens only uses
"empty protocols" here.
Layer 4 (transport layer) is implemented according to specifications:
• ISO 8073
• ISO ADDUM 8073
It includes:
• virtual connections in CLASS 4
• express data
• datagram service
Woodhead
Layers 5 and 6 are not used.
The Industrial Ethernet solution on applicom® can be used to access functions supported by this
industrial network using the READ/WRITE, TF or S7 Protocol mode. It can be used to access variables of
Step5 or Step7 (inputs, outputs, DB ....). The Industrial Ethernet solution on applicom® can be used to
manage client and server accesses with PLCs in the Siemens Simatic® S5 and Simatic® TI505 or
Simatic® S7 range, supporting the CP 143, CP1430, CP1434, CP343-1 or CP443-1 communication
couplers.
READ/WRITE or TF functionalities need no special programming in PLCs, the user handles
standards Siemens communication blocks, types SEND, RECEIVE, FETCH and RECEIVE-ALL to
activate the various contracts between the PLC CPU and the communication coupler. With S7 Protocol,
communication runs with standard CFB blocks.
Layer 7 (application layer) allows S5 contracts to be used (Simatic® S5 and Simatic® TI505 range),
via the S5 READ/WRITE(HTB) messaging or S7 Protocol (with Simatic® S7 range). The CP 143,
CP1430 or CP 1434 generates S5 specific labels for request and acknowledge telegrams and CP343-1 or
CP443-1 for S7 Protocol.
The applicom® concept version 3.0 can be used to exchange a number of data depending on the
type of interface and the type of operation.
In the case of a use of the PC2000ETH interface with an application supporting the buffer of 256
bytes, the exchanges will be of 256 bytes maximum, even less in certain cases (ex: TF messaging).
Refer to the manual of the messaging used to have the limits of exchange according to the type of
data.
Woodhead
Contents
- Functionality ..........................................................................................................4
- Industrial Ethernet client..........................................................................4
- Industrial Ethernet server ........................................................................8
- Configuration.......................................................................................................10
Server equipment configuration ............................................................................13
- Siemens equipments implementation .................................................................15
- PLC under Industrial Ethernet protocol READ/WRITE ................................. 15
- PLC under Industrial Ethernet TF............................................................. 31
- applicom® functions usable on the master channel ...........................................39
- Wait mode ........................................................................................... 39
- Deferred mode...................................................................................... 39
- Cyclic mode.......................................................................................... 40
- Item of image variables .......................................................................................41
- Presentation ......................................................................................... 41
- Standard descriptor ............................................................................... 42
- Siemens Simatic S5 PLCs descriptor - German (D) and French syntax ......... 47
- Siemens Simatic S5 PLCs descriptor - English syntax................................. 55
- Appendices .........................................................................................................63
- List of extra files for this protocol ............................................................ 63
- Evolution / compatibility ........................................................................ 63
- Return status of applicom® functions .................................................................64
- applicom® general statuses ................................................................... 64
- Statuses according to the protocol........................................................... 65
Industrial Ethernet on PC2000ETH (ISO Layer 4) •3• - Simatic® S5 (READ/WRITE S5 and TF Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Functionality
The Client Industrial Ethernet on applicom® interface can be used to poll Siemens architecture
® ® ®
network Simatic S5, Simatic S7 and Simatic TI505 PLCs using standard functions (wait, deferred,
cyclic modes) of the applicom® product. Multiflow communication is used (several transactions
simultaneously, maximum 8).
- Simatic® S5 range
Functions managed by choosing a Industrial Ethernet HTB channel (READ/WRITE) can be used to
access the variables defined in the following table.
The address of the variable accessed must be calculated in certain cases by referring to the "
applicom® addressing" column in the table.
This addressing allows to reach DB of 256, 2048 and 4096 words in a transparent way. The
addressing of the preceding versions gave access only to DB of 256 words but remains compatible with
this version.
The item descriptor usable with PCDDE associated with this addressing is " SIMATIC S5 (Industrial
Ethernet) ".
The old descriptor remains compatible but gives access only to DB of 256 words.
Industrial Ethernet on PC2000ETH (ISO Layer 4) •4• - Simatic® S5 (READ/WRITE S5 and TF Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
MD v KG v Read floating words READFWORD, READDIFFWORD
DBxDDyK x*4096+y+134217728 Write floating words WRITEFWORD, WRITEDIFFWORD
G idem + 1048576
DXxDDyKG
v : Byte N°
w : N° of bit in byte (0 to 7)
x : DB N° (1 to 255) or DX N° (0 to 255)
y : N° of word in DB or in the DX (0 to 4095)
z : N° of bit in word (0 to 15)
n : Timer or counter N° (0 to 255)
Industrial Ethernet on PC2000ETH (ISO Layer 4) •5• - Simatic® S5 (READ/WRITE S5 and TF Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Maximum number of variables per exchange with the library
The maximum number of variables depends on the type of interface and the type of buffer used.
TF messaging
*: It is imperative to write an even number of bytes, otherwise the Most Significant Byte of the last
word is corrupted.
TF messaging
The number given for read frames corresponds to the maximum number of points (as imposed by
the server and/or the protocol) which can be grouped together during dynamic optimization of the frames
carried out by the server. However, this number can be reduced to suit a specific item of equipment by
configuring the length of frames in the topic (see chapter "Implementation/Topics configuration/Advanced
options").
Where write operations are concerned, a variable automatically entails the formation of a frame.
Industrial Ethernet on PC2000ETH (ISO Layer 4) •6• - Simatic® S5 (READ/WRITE S5 and TF Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Maximum number of variables per exchange with OPC server
TF messaging
The number given for read frames corresponds to the maximum number of points (as imposed by
the server and/or the protocol) which can be grouped together during dynamic optimization of the frames
carried out by the server. However, this number can be reduced to suit a specific item of equipment by
configuring the length of frames in the topic (see chapter "Implementation/Topics configuration/Advanced
options").
For the write frames, see chapter "OPC Server/Optimization of synchronous and asynchronous
requests".
Industrial Ethernet on PC2000ETH (ISO Layer 4) •7• - Simatic® S5 (READ/WRITE S5 and TF Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Industrial Ethernet server
The Industrial Ethernet Server on applicom® interface makes available a 32 kword database to
Siemens network architecture clients Simatic S5 (READ/WRITE).
Notes:
Seen by the client PLCs, the DATA-BASE manages virtually 124 blocks of data of 256 words in its
word area. The client PLC program must generate SEND and RECEIVE type blocks with parameters
identical to those used to access the DBs in server PLCs. To find the equivalent address on the
applicom® database, use the formulae :
The Industrial Ethernet Server functionality on the applicom® database can be used to optimize
data feedback. Rather than permanently polling devices to monitor variables changing status
occasionally, the devices can put the data to feed back only on change of status (alarm feedback) in the
applicom® database. Consequently, in this operating mode:
Industrial Ethernet on PC2000ETH (ISO Layer 4) •8• - Simatic® S5 (READ/WRITE S5 and TF Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
This principle can be made reliable on the Industrial Ethernet Server on applicom® interface to
avoid « working blind ». For example, variables in the applicom® database do not move since the
transmitting equipment is disconnected. To do this:
• You can define a maximum time interval between client equipment accesses to the applicom®
Industrial Ethernet Server, in the name of the client Local TSAP. This name is defined in the
client PLC configuration. The Industrial Ethernet Server task on applicom® interface can
manage up to 60 connections with client stations. As seen by applicom®, a connection with a
client station is marked by a number from 0 to 59. For a given connection, a client station can
initialize the access time-out value. This initialization is made by the client PLC local TSAP name
during the connection sequence. The name of the local TSAP must be type: APnn-vvv where
AP is the applicom® identifier, nn represents a connection number seen by applicom® (from
00 to 59) and vvv represents the access time-out to the applicom® DATA-BASE (from 001-
999 seconds).
Example: for connection 1 with a time-out value of 10 seconds, a local TSAP = AP01-010.
After this interval, absence is signaled to the application by an « ACCESS STATUS WORD » in the
applicom® database. Define the address of this status word using the channel configuration
utility.
• The application is informed of the write access by each device to the applicom® Industrial
Ethernet Server by incrementing an « ACCESS INDICATOR WORD » in the applicom®
database. The application can query the variables of this device in the applicom® database and
reset the « ACCESS INDICATOR WORD » to zero, to be informed of the next access (or even
to inform the transmitting device of this acknowledgment).
After this period, absence is signaled to the application by an « ACCESS STATUS WORD » in the
applicom® database. Use the channel configuration utility to define the address of this status
word.
Industrial Ethernet on PC2000ETH (ISO Layer 4) •9• - Simatic® S5 (READ/WRITE S5 and TF Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Configuration
This protocol is only configurable on applicom® interfaces with an Ethernet way (PC2000ETH or
PCI2000ETH).
Woodhead
Ethernet address of the card
If you enter « ############ » as Ethernet address, the default applicom® interface Internet
address will be used.
The default Ethernet address is made up of 6 bytes including the applicom® IEEE address
followed by the applicom® interface serial number. The serial number is given on the applicom®
interface labels (on the rear plate and on the copper) or displayed when the interface is initialized (
« applicom » or « pcinit » command under MS-Windows).
applicom® Interface
IEEE serial number
Address (in Hexadecimal)
00 A0 91 xx xx xx
Example:
applicom® interface Ethernet address with serial number 20100 i.e. 4E84 Hexadecimal.
00 A0 91 00 4E 84
If you enter an address, then this address will be used. This means that an Ethernet card can be
replaced without having to reconfigure its peer's address in the client station.
Woodhead
Address « Access indicator words » in DATA-BASE
Start storage address of the 60 « Access indicator words » in DATA-BASE. If this management is
not used set value -1. Otherwise the address can range from 0 to 31 999. In this case, all write
access by client equipment to the applicom® server will be signaled by the increment of the
corresponding word at the offset defined in the client equipment local TSAP.
Resetting this word to 0 is your responsibility to be informed of the next write and/or inform the
transmitting equipment of this acknowledgment.
Woodhead
If an equipment type is selected, a virtual connection request and maintenance mechanism will be
established as soon as the applicom® channel is initialized, even if no data is taken from the
server equipment (layer 4 management).
You can select these devices in the device library among the following types:
H1 HTB (R/W)
H1 TF (Sinec AP)
H1 TF2 (CNC)
Woodhead
Equipment number
Number of the applicom device used to access the H1 client
Local TSAP
This choice is used to define the name of the local TSAP (Transport Service Access Point) for this
applicom® client connection. This name will be transmitted to the server equipment during the
connection phase: the server equipment can use this name as an identifier.
Woodhead
- Siemens equipments implementation
The PC is connected to the Industrial Ethernet network using the PC2000ETH card. A SIEMENS
PLC is connected to the Industrial Ethernet network by installing a special communication processor, the
CP143 or the CP1430, that is connected directly onto the mother board bus of SIMATIC® S5 PLCs. The
CP143 or CP1430 can be used with all S5 systems from S5 115U and greater. There are two physical
interfaces on the couplers, one to connect the Ethernet Industrial Ethernet network (AUI connector) and
the other for access to the coupler adjustment and configuration. Traffic management on the Industrial
Ethernet network is processed independently by the coupler, so releasing the CPU of the S5 PLC.
Communication between the PLC processor and the coupler is done via a double access RAM,
therefore providing very fast exchanges. This data exchange is carried out using communication blocks
which are the standard PLC subprograms supplied by Siemens with the PLCs.
SYNCHRON
Initialization and synchronization between the CPU and the CP. This block must be called on PLC
warm start or cold start sequences.
FETCH
Data fetch (when the PLC is client in read).
RECEIVE
Data reception from the network towards the PLC program via the CP143 coupler (when the PLC is
server in read).
SEND
Data transmission from the S5 PLC processor towards the CP143 coupler (when the PLC is server
or client in write).
The example below shows how the SYNCHRON function block must be called if you are using a
PLC in the 115U family. It should be noted that the function block numbers vary from one type of PLC to
another. The SYNCHRON block must be called by the PLC on each PLC warm or cold start.
Example:
Woodhead
- Example : CP143 and CP1430 configuration
Description
In this example, 4 types of exchange will be performed:
- 1 the applicom® card is client of a SIMATIC® S5 115U PLC. It must retrieve a table of 128 words
in the DB100 from word DW0 in the PLC and store the values from address 0 in the DATA-
BASE. Cyclic mode will be used to carry out this exchange.
- 3 The 115U PLC must be client of the applicom® DATA-BASE. It must transmit a table of 128
words from DB10DW0 towards the DATA-BASE at the same address on the active status of the
E13.1 input.
- 4 On the active status of the E13.0 input, the PLC must also read in the DATA-BASE 128 words
from DB20DW0. They will be stored at the same address in the PLC.
applicom® card Ethernet address : 00A091004E84 (if the card has serial number 20100)
DATA-BASE TSAP in read : READREAD (default value)
DATA-BASE TSAP in write : WRITWRIT (default value)
Enter the SSNR corresponding to your CP143 card (see « switch ») and the PLC Ethernet address.
Press F7 then F1 to confirm.
Woodhead
In second step, you must define the initialization block ( INIT menu ).
The third step allows you to define the different connections ( CONN menu).
Then SSNR must correspond with the one defined in the SYSID rubric. You must enter a contract
number and its type (here passive FETCH because server in read). Ethernet address of partner must be =
0. The SSNR and ANR « VERS API DIST » fields must be blank.
Woodhead
Press F5 to continue the connection definition
Select the READ/WRITE option in priority 2, then enter the local TSAP. This latter must be the
same that the one defined in the « Remote read TSAP » during the equipment configuration in the
applicom® configurator
Then SSNR must correspond with the one defined in the SYSID rubric. You must enter a contract
number and its type (here passive RECEIVE because server in write). Ethernet address of partner must
be = 0. The SSNR and ANR « VERS API DIST » fields must be blank.
Woodhead
Press F5 to continue the connection definition
Select the READ/WRITE option in priority 2,.then enter the local TSAP. This latter must be the
same that the one defined in the « Remote write TSAP » during the equipment configuration in the
applicom® configurator.
Woodhead
- client connexion in read
Then SSNR must correspond with the one defined in the SYSID rubric. You must enter a contract
number and its type (here active FETCH because client in read). Ethernet address of partner must be the
one of the applicom® board. The SSNR and ANR « VERS API DIST » fields must be blank.
Press F5 to continue the connection definition
Select the READ/WRITE option in priority 2, then enter the remote TSAP. This latter must be the
same that the one defined in the « local read TSAP » during the DATA-BASE configuration in the
applicom® configurator.
Woodhead
- client connexion in write
Then SSNR must correspond with the one defined in the SYSID rubric. You must enter a contract
number and its type (here passive SEND because client in write). Ethernet address of partner must be the
one of the applicom® board. The SSNR and ANR « VERS API DIST » fields must be blank.
Select the READ/WRITE option in priority 2,.then enter the remote TSAP. This latter must be the
same that the one defined in the « Local write TSAP » during the DATA-BASE configuration in the
applicom® configurator.
Woodhead
CP1430 SIEMENS configuration with SINEC NCM COMs
In this example, the configuration is carried out using the program SINEC NCM COMs supplied by
SIEMENS. This section is supplied for reference, and it is based on the program version available to date
(V5.01). If this program has changed in the meantime, adapt this example with your new tool.
Enter the PLC Mac Ethernet address and the SSNR and its shifting corresponding to your CP1430
card.
Press F7 to confirm.
Woodhead
The second step allows you to define the different connections
Always in menu « Edition », choise « Liaisons », then « Liaisons de transport »
In this example, 4 connections must be defined:
The SSNR must correspond with the one defined in the Init CP rubric. You must enter a contract
number and its type (here passive FETCH because server in read). Select the READ/WRITE option in
priority 2, then enter TSAP local. This latter must be the same that the one defined in the « Remote read
TSAP » (READREAD by default) during the equipment configuration in the applicom® configurator.
Ethernet address of partner must be = 0. The « VERS API DIST » fields must be blank.
Woodhead
- server connection in write
The SSNR must correspond with the one defined in the Init CP rubric. You must enter a contract
number and its type (here passive RECEIVE because server in write). Select the READ/WRITE option in
priority 2, then enter TSAP local. This latter must be the same that the one defined in the « Remote write
TSAP » (WRITWRIT by default) during the equipment configuration in the applicom® configurator.
Ethernet address of partner must be = 0. The « VERS API DIST » fields must be blank.
Woodhead
- client connection in read
The SSNR must correspond with the one defined in the Init CP rubric. You must enter a contract
number and its type (here active FETCH because client in read). Select the READ/WRITE option in
priority 2, then enter TSAP distant. This latter must be the same that the one defined in the « Local read
TSAP of Server» (READREAD by default) during the equipment configuration in the applicom®
configurator. You can enter a TSAP local (Ex. AP00-010) to use card access management. Ethernet
address of partner must be the one of the applicom® board.
Woodhead
- client connection in write
The SSNR must correspond with the one defined in the Init CP rubric. You must enter a contract
number and its type (here active SEND because client in write). Select the READ/WRITE option in priority
2, then enter TSAP distant. This latter must be the same that the one defined in the « Local write TSAP of
Server» (WRITWRIT by default) during the equipment configuration in the applicom® configurator. You
can enter a TSAP local (Ex. AP00-010) to use card access management. Ethernet address of partner
must be the one of the applicom® board.
Press F7 to confirm.
Woodhead
- Example : PLC program for SIMATIC S5
C:READWRIT.S5D
Segment 1 0000
Nom : Industrial Ethernet
: AWL
:A DB 3 Working DB
: SPA FB 245
Nom : RECEIVE FB receive (server functions)
SSNR : KY 0,0 SSNR of your CP143 or CP1430
A-NR : KY 0,0 receive all
ANZW : DW 12 indicator word
ZTYP : KC NN source type non defined
DBNR : KY 0,0 non significant
ZANF : KF +0 non significant
ZLAE : KF +0 non significant
PAFE : MB 242 indicator byte
:
: SPA FB 244
Nom : SEND FB send (server functions)
SSNR : KY 0,0 SSNR of your CP143 or CP1430
A-NR : KY 0,0 send all
ANZW : DW 10 indicator word
QTYP : KC NN source type non defined
DBNR : KY 0,0 non significant
ZANF : KF +0 non significant
ZLAE : KF +0 non significant
PAFE : MB 242 indicator byte
:
:U E 13.0 if input 13.0 is active
:L DW 14 and no contract in progress
:T MW 242
: UN M 243.1
: SPA FB 246
Nom : FETCH FB fetch (read client PLC)
SSNR : KY 0,0 SSNR of your CP143 or CP1430
A-NR : KY 0,30 contract 30 see config CP143 or CP1430
ANZW : DW 14 indicator word
ZTYP : KC RW indirect addressing
DBNR : KY 0,3 indirection source in DB3
ZANF : KF +20 from DW20 (see DB3)
ZLAE : KF +8 number of data in DB3W20
PAFE : MB 242 indicator byte
:
:U E 13.1 if input 13.0 is active
:L DW 16 and no contract in progress
:T MW 242
: UN M 243.1
: SPA FB 244
Nom : SEND FB send direct (write client PLC)
SSNR : KY 0,0 SSNR of your CP143 or CP1430
A-NR : KY 0,31 contract 31 see config CP143 or CP1430
ANZW : DW 16 indicator word
QTYP : KC RW indirect addressing
DBNR : KY 0,3 indirection source in DB3
ZANF : KF +30 from DW30 (see DB3)
ZLAE : KF +8 number of data in DB3W30
PAFE : MB 242 indicator byte
:
: BE
Woodhead
Description of the working DB3 :
DB3 C:READWRIT.S5D
0 : KH = 0000;
1 : KH = 0000;
2 : KH = 0000;
3 : KH = 0000;
4 : KH = 0000;
5 : KH = 0000;
6 : KH = 0000;
7 : KH = 0000;
8 : KH = 0000;
9 : KH = 0000;
10 : KH = 0000; ANZW SEND-ALL (PLC server)
11 : KH = 0000;
12 : KH = 0000; ANZW RECEIVE-ALL (PLC serveur)
13 : KH = 0000;
14 : KH = 0000; ANZW FETCH (read client)
15 : KH = 0000;
16 : KH = 0000; ANZW SEND (write client)
17 : KH = 0000;
18 : KH = 0000;
19 : KH = 0000;
20 : KC = ‘DB’; Indication source data type, here DB applicom®
21 : KY = 0,20; DB source number here DB20 in applicom® DATA-
BASE
22 : KF = +0; offset in DB applicom® DATA-BASE here 0
23 : KF = +128; number of data in the source
24 : KC = ‘DB’; destination type, here DB
25 : KY = 0,20; here DB20 in PLC
26 : KY = +0; from DW0
27 : KY = +128; number of data to copy in the PLC
28 : KH = 0000;
29 : KH = 0000;
30 : KC = ‘DB’; Indication source data type, here DB of the PLC
31 : KY = 0,100; DB number to send to applicom®, here DB100
32 : KF = +0; offset in DB, here DW0
33 : KF = 128; number of data to send to applicom®
34 : KC = ‘DB’; data type in applicom®, here DB (word area)
35 : KY = 0,100; adress of applicom® DB, here DB100
36 : KY = 0,0; offset in applicom® DB
37 : KF = +128; number of data to write in applicom®
38 : KH = 0000;
39 : KH = 0000;
40 : KH = 0000;
41 : KH = 0000;
42 : KH = 0000;
Woodhead
- applicom® server configuration
Define the general characteristics of server with applicom console software program.
Definition of the equipment number 1 with stands for the PLC seen as client by applicom®
Woodhead
Creation of the read cyclic function in the PLC with the « PCCYC » software program.
Woodhead
- PLC under Industrial Ethernet TF
The PC is connected to the Industrial Ethernet network using the PC2000ETH card. A SIEMENS
PLC is connected to the Industrial Ethernet network by installing a special communication processor, the
CP143 or the CP1430, that is connected directly onto the mother board bus of SIMATIC® S5. The CP143
or CP1430 can be used with all S5 systems from S5 115U and greater. There are two physical interfaces
on the couplers, one to connect the Ethernet Industrial Ethernet network (AUI connector) and the other for
access to the coupler adjustment and configuration. Traffic management on the Industrial Ethernet
network is processed independently by the coupler, so releasing the CPU of the S5 PLC.
Communication between the PLC processor and the coupler is done via a double access RAM,
therefore providing very fast exchanges. This data exchange is carried out using communication blocks
which are the standard PLC subprograms supplied by Siemens with the PLCs.
SYNCHRON
Initialization and synchronization between the CPU and the CP. This block must be called on PLC
warm start or cold start sequences.
The example below shows how the SYNCHRON function block must be called if you are using a
PLC in the 115U family. It should be noted that the function block numbers vary from one type of PLC to
another. The SYNCHRON block must be called by the PLC on each PLC warm or cold start.
Example:
Woodhead
- Configuration example : CP143 and CP1430 configuration
Description
- 1 the applicom® card is client of a SIMATIC® S5 PLC. It must retrieve a table of 128 words in the
DB100 from word DW0 in the PLC and store the values from address 0 in the DATA-BASE.
Cyclic mode will be used to carry out this exchange.
applicom® card Ethernet address : 00A091004E84 (if the card has serial number 20100)
In this example, the configuration is carried out using the program COM143 supplied by SIEMENS.
This section is supplied for reference, and it is based on the COM143 program version available to date
(6/6/95). If this program has changed in the meantime, adapt this example with your new tool.
Enter the SSNR corresponding to your CP143 card (see « switch ») and the PLC Ethernet address.
Woodhead
In second step, you must define the initialization block ( INIT menu ).
The third step allows you to define the TF connection. Press F5 ( STF DEF menu) then F1
(CONFIGURATION CONNEXION-STF menu).
Then SSNR must correspond with the one defined in the SYSID rubric. Enter an ANR number, an
ANZW control word with type MW x. Then enter a TSAP local according configured equipment in
applicom® configurator (READREAD by default). Select P4 in MODE ETAB option. Ethernet address of
partner must be equal to applicom® card Ethernet address.
Press F7 to confirm.
Woodhead
In this example, the configuration is carried out using the program SINEC NCM COMs supplied by
SIEMENS. This section is supplied for reference, and it is based on the program version available to date
(V5.01). If this program has changed in the meantime, adapt this example with your new tool.
Enter the PLC Mac Ethernet address and the SSNR and its shifting corresponding to your CP1430
card.
Press F7 to confirm.
Woodhead
The second step allows you to define the TF connection
Always in menu « Edition », choise « Liaisons », then « Liaisons TF »
Then SSNR must correspond with the one defined in the Init CP rubric. Enter an ANR number, an
ANZW control word with type MW x. Select P4 in MODE ETAB option. Then enter a TSAP local
according configured equipment in applicom® configurator (READREAD by default). Ethernet address of
partner must be equal to applicom® card Ethernet address.
Press F7 to confirm.
Woodhead
- PLC program for SIMATIC S5
C:READWRIT.S5D
Segment 1 0000
Nom : Industrial Ethernet
: AWL
:A DB 3 DB de travail
: SPA FB 245
Nom : RECEIVE FB receive (fonction automate serveur)
SSNR : KY 0,0 SSNR de votre CP143 ou CP1430
A-NR : KY 0,0 receive all
ANZW : DW 12 mot indicateur
ZTYP : KC NN type de la source non défini
DBNR : KY 0,0 non significatif
ZANF : KF +0 non significatif
ZLAE : KF +0 non significatif
PAFE : MB 242 octet indicateur
:
: SPA FB 244
Nom : SEND FB send (fonction automate serveur)
SSNR : KY 0,0 SSNR de votre CP143 ou CP1430
A-NR : KY 0,0 send all
ANZW : DW 10 mot indicateur
QTYP : KC NN type de la destination non défini
DBNR : KY 0,0 non significatif
ZANF : KF +0 non significatif
ZLAE : KF +0 non significatif
PAFE : MB 242 octet indicateur
:
:
: BE
DB3 C:READWRIT.S5D
0 : KH = 0000;
1 : KH = 0000;
2 : KH = 0000;
3 : KH = 0000;
4 : KH = 0000;
5 : KH = 0000;
6 : KH = 0000;
7 : KH = 0000;
8 : KH = 0000;
9 : KH = 0000;
10 : KH = 0000; ANZW SEND-ALL (automate serveur)
11 : KH = 0000;
12 : KH = 0000; ANZW RECEIVE-ALL (automate serveur)
13 : KH = 0000;
Woodhead
- applicom® server configuration example
Define the general characteristics of server with applicom console software program.
Definition of the equipment number 1 with stands for the PLC seen as client by applicom®
Woodhead
Creation of the read cyclic function in the PLC with the « PCCYC » software program.
Woodhead
- applicom® functions usable on the master channel
- Wait mode
readpackbit writepackbit
readpackibit
readpackqbit writepackqbit
readbyte writebyte
readibyte
readqbyte writeqbyte
readpackbyte writepackbyte
readpackibyte
readpackqbyte writepackqbyte
readword writeword
readiword
readqword writeqword
readwordbcd writewordbcd
readdword writedword
readfword writefword
readtimer writetimer
readcounter writecounter
- Deferred mode
readdifbit writedifpackbit
readdifibit
readdifqbit writedifpackqbit
readdifbyte writedifpackbyte
readdifibyte
readdifqbyte writedifpackqbyte
readdifword writedifword
readdifiword
readdifqword writedifqword
readdifdword writedifdword
readdiffword writediffword
Woodhead
- Cyclic mode
createcyc
startcyc stopcyc actcyc
transcyc transcycpack
Packed bytes X X
Bytes X X
Input packed bytes X
Input bytes X
Output packed bytes X X
Output bytes X X
Words X X
BCD words X X
Input words X
Output words X X
32 bit double words X X
32 bit IEEE floating words X X
Woodhead
- Item of image variables
- Presentation
The "item of image variables" are the syntaxes which allow to access to the variables through the
DDE server "PCDDE" or the OPC server.
Report you to sections "DDE server/Principles regarding access to Data" or "OPC server/Data Access
Principle".
According to the configuration of the equipment, the descriptor is determined by default by the
server. In the case of Industrial Ethernet protocol, the default descriptor is depending on the type of
equipment. For S5 equipment, the descriptor is Simatic S5 (German and French syntax and English
syntax).
Caution, if you change the default descriptor, some optimizations of access to the equipment will be
devalidated and the performances could be corrupted.
You however have the possibility of using another descriptor (in particular the applicom® standard
descriptor) by the means of the advanced options.
Woodhead
- Standard descriptor
The standard descriptor can be used for access to the equipments which have not specific
descriptors. The address field of the item name may be 10 digits long. It allows to compose a linear
address from 0 to 4 giga.
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Woodhead
- Internal bits => Bx (type: BIT)
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: B4_10, B4_10_5
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : BI4_10, BI4_10_5
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : BO4_10, BO4_10_5
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples : O4_10, O4_10_5
For this syntax, the maximum numbers of variables per frame are:
in read : 256*8
in write : 1
Woodhead
- Input bytes => OIx (type: BYTE)
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples: OI4_10, OI4_10_5
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples : OO4_10, OO4_10_5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
In the example, the byte array O100 to O129 can contain the string.
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: W4_10, W4_10_5
Woodhead
- Bits in internal words => Wx.b (type : bit)
For this syntax, the maximum numbers of variables per frame are:
in read : 128*16
in write : 1
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: WI4_10, WI4_10_5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : WO4_10, WO4_10_5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: Number of the first word containing the string
n: Number of potential words that could contain the ASCII string (1 to 65).
Example: M_W100_30
In the example, the word array W100 to W129 can contain the string.
Woodhead
- Internal double words => Dx (type: 32 bit WORD)
Woodhead
- Siemens Simatic S5 PLCs descriptor - German (D) and French syntax
This descriptor can be used only for accessing Siemens Simatic S5 PLCs via the applicom®
PC2000ETH (Ethernet channel).
For strings and matrices, the Descriptor checks for acceptable addressing limits, thus avoiding data
overlap.
Woodhead
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Caution:
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : M94.7_24 or M94:7_24, M94.7_24_8 or M94:7_24_8
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : E94.7_24 or E94:7_24, E94.7_24_8 or E94:7_24_8
Woodhead
- Output bits => Ax.y or Ax:y (type: BIT)
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: A94.7_24 or A94:7_24, A94.7_24_8 or A94:7_24_8
x: DB number (1 to 255).
y: First DB word number (0 to 255).
z: First bit range (0 to 15).
Example: DB94D10.7 or DB94D10:7
n: Number of bits.
l : Number of bits per line (Matrix mode only)
Examples : DB94D10.7_24 or DB94D10:7_24, DB2D3.7_24_8 or DB2D3:7_24_8
x: DX number (0 to 255).
y: First DX word number (0 to 255).
z: First bit range (0 to 15).
Example: DX94D10.7 or DX94D10:7
n: Number of bits.
l : Number of bits per line (Matrix mode only)
Examples : DX94D10.7_24 or DX94D10:7_24, DX2D3.7_24_8 or DX2D3:7_24_8
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples: MB4_10, MB4_10_5
Woodhead
- Input bytes => EBx_n, EBx_n_l
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples : EB4_10, EB4_10_5
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples: AB4_10, AB4_10_5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
In the example the byte array MB100 to MB109 can contain the string.
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : MW4_10, MW4_10_5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : EW4_10, EW4_10_5
Woodhead
- Output words => AWx_n, AWx_n_l
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: AW4_10, AW4_10_5
x: DB number (1 to 255).
y: Number of the first word in the DB (0 to 255).
Example: DB4DW8
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : DB4DW8_10, DB4DW8_10_5
x: DX number (0 to 255).
y: Number of the first word in the DX (0 to 255).
Example: DX4DW8
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : DX4DW8_10, DX4DW8_10_5
For this syntax, the maximum numbers of variables per frame are:
in read : 128*2
in write : 1
x: DB number (1 to 255).
y: Number of the word in the DB (0 to 255).
Example: DB4DR5
For this syntax, the maximum numbers of variables per frame are:
in read : 128*2
in write : 1
x: DB number (1 to 255).
y: Number of the word in the DB (0 to 255).
Example: DB4DL5
Woodhead
- Right byte of a word in the DX => DXxDRy (type: BIT)
For this syntax, the maximum numbers of variables per frame are:
in read : 128*2
in write : 1
x: DX number (0 to 255).
y: Number of the word in the DX (0 to 255).
Example: DX4DR5
For this syntax, the maximum numbers of variables per frame are:
in read : 128*2
in write : 1
x: DX number (0 to 255).
y: Number of the word in the DX (0 to 255).
Example: DX4DL5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: DB number (1 to 255).
y: Number of the first word in the DB containing the string (0 to 255).
n: Number of potential words that could contain the ASCII string (1 to 65).
Example: M_DB4DW0_10
In the example, the word array DB4DW0 to DB4DW9 can contain the string.
Woodhead
- ASCII string in DX words => M_DXxDWy_n (type: 16 bit WORD)
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: DX number (0 to 255).
y: Number of the first word in the DX containing the string (0 to 255).
n: Number of potential words that could contain the ASCII string (1 to 65).
Example: M_DX4DW0_10
In the example, the word array DX4DW0 to DX4DW9 can contain the string.
- Floating words in flag bytes => MDxKG (type: 32 bit IEEE REAL)
x: DB number (1 to 255).
y: First DB word number (0 to 254).
Example: DB4DD8
Woodhead
- Double words in DX => DXxDDy (type: 32 bit WORD)
x: DX number (0 to 255).
y: First DX word number (0 to 254).
Example: DX4DD8
x: DB number (1 to 255).
y: First DB word number (0 to 254).
KG: Suffix used to convert a word into KG format of Siemens PLCs to IEEE format.
Example : DB4DD8KG
x: DX number (0 to 255).
y: First DX word number (0 to 254).
KG: Suffix used to convert a word into KG format of Siemens PLCs to IEEE format.
Example : DX4DD8KG
n: Number of timers.
l: Number of timers per line (Matrix mode only).
Examples : TB4_10, TB4_10_5
n: Number of counters.
l: Number of counters per line (Matrix mode only).
Examples : ZB4_10, ZB4_10_5
Woodhead
- Siemens Simatic S5 PLCs descriptor - English syntax
This descriptor can be used only for accessing Siemens Simatic S5 PLCs via the applicom®
PC2000ETH (Ethernet channel).
For strings and matrices, the Descriptor checks for acceptable addressing limits, thus avoiding data
overlap.
Woodhead
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Caution:
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: F94.7_24 or F94:7_24, F94.7_24_8 or F94:7_24_8
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : I94.7_24 or I94:7_24, I94.7_24_8 or I94:7_24_8
Woodhead
- Output bits => Qx.y or Qx:y (type: BIT)
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : Q94.7_24 or Q94:7_24, Q94.7_24_8 or Q94:7_24_8
x: DB number (1 to 255).
y: Number of the first word in the DB (0 to 255).
z: Rank of the first bit (0 to 15).
Example: DB94D10.7 or DB94D10:7
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : DB94D10.7_24 or DB94D10:7_24, DB2D3.7_24_8 or DB2D3:7_24_8
x: DX number (0 to 255).
y: Number of the first word in the DX (0 to 255).
z: Rank of the first bit (0 to 15).
Example: DX94D10.7 or DX94D10:7
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : DX94D10.7_24 or DX94D10:7_24, DX2D3.7_24_8 or DX2D3:7_24_8
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples : FY4_10 or FY4_10_5
Woodhead
- Input bytes => IBx_n, IBx_n_l
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples : IB4_10, IB4_10_5
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples: QY4_10, QY4_10_5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: Number of first flag byte containing the string (0 to 255).
n: Number of potential flag byte that could contain the ASCII string (1 to 131).
Example: M_FY100_10
In the example the flag bytes array FY100 to FY109 can contain the string.
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : FW4_10, FW4_10_5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : IW4_10, IW4_10_5
Woodhead
- Output words => QWx_n, QWx_n_l
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: QW4_10, QW4_10_5
x: DB number (1 to 255).
y: Number of the first word in the DB (0 to 255).
Example: DB4DW8
n: Number of words.
l: Number of words per line (Matrix mode only).
Example : DB4DW8_10, DB4DW8_10_5
x: DX number (0 to 255).
y: Number of the first word in the DX (0 to 255).
Example: DX4DW8
n: Number of words.
l: Number of words per line (Matrix mode only).
Example : DX4DW8_10, DX4DW8_10_5
For this syntax, the maximum numbers of variables per frame are:
in read : 128*2
in write : 1
x: DB number (1 to 255).
y: Number of the word in the DB (0 to 255).
Example: DB4DR5
For this syntax, the maximum numbers of variables per frame are:
in read : 128*2
in write : 1
x: DB number (1 to 255).
y: Number of the word in the DB (0 to 255).
Example : DB4DL5
Woodhead
- Right byte of a word in the DX => DXxDRy (type: BIT)
For this syntax, the maximum numbers of variables per frame are:
in read : 128*2
in write : 1
x: DX number (0 to 255).
y: Number of the word in the DX (0 to 255).
Example: DX4DR5
For this syntax, the maximum numbers of variables per frame are:
in read : 128*2
in write : 1
x: DB number (0 to 255).
y: Number of the word in the DX (0 to 255).
Example : DX4DL5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: DB number (1 to 255).
y: Number of the first word in the DB containing the string (0 to 255).
n: Number of potential words that could contain the ASCII string (1 to 65).
Example: M_DB4DW0_10
In the example the word array DB4DW0 to DB4DW9 can contain the string.
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: DX number (0 to 255).
y: Number of the first word in the DX containing the string (0 to 255).
n: Number of potential words that could contain the ASCII string (1 to 65).
Example: M_DX4DW0_10
In the example the word array DX4DW0 to DX4DW9 can contain the string.
Woodhead
- Floating words in flag bytes => FDxKG (type: 32 bit IEEE REAL)
x: DB number (1 to 255).
y: First DB word number (0 to 254).
Example: DB4DD8
x: DX number (0 to 255).
y: First DX word number (0 to 254).
Example: DX4DD8
x: DB number (1 to 255).
y: First DB word number (0 to 254).
KG: Suffix used to convert a word into KG format of Siemens PLCs to IEEE format.
Example : DB4DD8KG
x: DX number (0 to 255).
y: First DX word number (0 to 254).
KG: Suffix used to convert a word into KG format of Siemens PLCs to IEEE format.
Example : DX4DD8KG
n: Number of timers.
l: Number of timers per line (Matrix mode only).
Examples : TB4_10, TB4_10_5
Woodhead
- Counters => ZBx (type: 16 bit WORD)
n: Number of counters.
l: Number of counters per line (Matrix mode only).
Examples : ZB4_10, ZB4_10_5
Woodhead
- Appendices
- List of extra files for this protocol
- Evolution / compatibility
Woodhead
- Return status of applicom® functions
The various applicom® functions return a status word that:
- Guarantees the request quality.
- Can be used to diagnose the cause of a failure.
The significance of the status word value is given in the table below. As well as the general
significance, « Further details » allow you to guide your diagnostic according to the protocol used.
-6 The TRANSCYC (or TRANSCYCPACK) function is used with a cyclic function number that is no longer
activated.
-5 The user program tries to perform a TRANSDIF (or TRANSDIFPACK) deferred transfer although the deferred
request in progress is not completed.
-1 TRANSDIF (or TRANSDIFPACK) deferred transfer request related to a write that took place correctly.
0 No anomaly detected. The function took place correctly.
1 Unknown function.
The requested function is not supported.
2 Incorrect address.
The address of the variable you are soliciting is incorrect.
3 Incorrect data.
Further details :
Function: BINBCD, BCDBIN.
- At least one of the accessed values is not in BCD format (0 ≤ value ≤ 9999).
4 Irretrievable data.
32 Bad parameter passed into the function.
Incorrect number of variables.
35 Data not available in cyclic read.
Attempt to transfer data with TRANSCYC (or TRANSCYCPACK) before it has been read in the equipment.
40 Deferred read or write attempt when the deferred request register is full.
Another task must free the resources by making an exitbus.
41 Deferred read or write attempt when the deferred request register is full
Perform deferred request transfers with TRANSDIF (or TRANSDIFPACK) in order to release the register (64
positions).
42 Deferred request transfer attempt with TRANSDIF (or TRANSDIFPACK) when the latter is empty (no deferred
requests in progress).
45 Non-resident communication software.
Initialize the applicom® interface before using it by typing command applicom (or PCINIT under Windows ).
46 Board number not configured, or Master/client applicom® function aiming at a channel configured as
slave/server, or vice versa.
47 No applicom® interface.
51 Driver system problem.
59 Protection key missing on the applicom® interface..
Using applicom® function without INITBUS function.
66 Insufficient applicom® interface memory.
255 Used by the « PCDDE » MS-Windows server. Initial value of « STATUS_READ » and « STATUS_WRITE ».
This value indicates that no transaction has been made between « PCDDE » and applicom® interface.
Comments :
Negative status codes are information codes.
Woodhead
Woodhead
Contents
- Functionality ........................................................................................................67
- Industrial Ethernet client........................................................................ 67
- Estimating the performance of an applicom® Industrial Ethernet Client. ...... 71
- Industrial Ethernet server ...................................................................... 73
- Configuration.......................................................................................................74
Server equipment configuration ............................................................................76
- Siemens equipments implementation .................................................................77
- PLC under Industrial Ethernet protocol READ/WRITE ................................. 77
- applicom® functions usable on the master channel ...........................................84
- Wait mode ........................................................................................... 84
- Deferred mode...................................................................................... 84
- Cyclic mode.......................................................................................... 85
- Item of image variables - Presentation ...............................................................86
- Item of image variables - Standard descriptor ....................................................86
- Item of image variables - Texas Instrument descriptor.......................................91
- Internal variables .................................................................................. 91
- Input and output variables ..................................................................... 93
- Timers / Counters ................................................................................. 94
- Variables DRUM .................................................................................... 95
- System status....................................................................................... 96
- Constant words..................................................................................... 96
- LOOP variables ..................................................................................... 98
- ALARM variables ................................................................................. 101
- Appendices .......................................................................................................103
- List of extra files for this protocol .......................................................... 103
- Evolution / compatibility ...................................................................... 103
- Return status of applicom® functions ...............................................................104
- applicom® general statuses ................................................................. 104
- Statuses according to the protocol......................................................... 105
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 66 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Functionality
The Client Industrial Ethernet on applicom® interface can be used to poll Siemens architecture
® ® ®
network Simatic S5, Simatic S7 and Simatic TI505 PLCs using standard functions (wait, deferred,
cyclic modes) of the applicom® product. Multiflow communication is used (several transactions
simultaneously, maximum 8).
The reachable variables are numbered from the address 1 (Ex V0001, X0001, etc.). The
applicom® addressing begins to 0. Therefore, the PLC address must be decremented of 1 (see
« applicom® address » column). This addressing is valid for the usual variables (Bits, Words, Double
words, Floating words).
For the (K, KF) constants, the applicom® address must have in the most significant byte the
representation of the corresponding Q/ZTYP column (see A-1 Table of the A-1 appendix of the « Industrial
Ethernet Communication Processor User Manuel » manual). The three following bytes represent the
address of the constant decremented of 1.
Example : K1 constant
adr = 05 00 00 00 (hexa)
KF5 constant
adr = 06 00 00 04 (hexa)
For the other variables (LOOP, ALARM, ...), the applicom® corresponding address is calculated on
32 bits with the most significant bit equals to 08, the following byte is equal to the value in the PLC TT
column up to the 73 (hexa) value (see A-1 Table of the A-1 appendix of the « Industrial Ethernet
Communication Processor User Manual ») and the two following bytes equal to the address of the
variable decremented of 1. (Run the ESSAI program with the hexa option « essai hex » in order to enter
the hexadecimal address).
The item descriptor usable with PCDDE associated with this addressing is " Texas Instrument ".
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 67 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
...
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 68 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
LKC v 08 20 (v - 1) Read floats READFWORD, READDIFFWORD
Write floats WRITEFWORD, WRITEDIFFWORD
...
...
v : Variable N°
The maximum number of variables depends on the type of interface and the type of buffer used.
The number given for read frames corresponds to the maximum number of points (as imposed by
the server and/or the protocol) which can be grouped together during dynamic optimization of the frames
carried out by the server. However, this number can be reduced to suit a specific item of equipment by
configuring the length of frames in the topic (see the chapter "Implementation/Topic Configuration/
Advanced Options / frame length”
Where write operations are concerned, a variable automatically entails the formation of a frame.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 69 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Maximum number of variables per exchange with OPC server
The number given for read frames corresponds to the maximum number of points (as imposed by
the server and/or the protocol) which can be grouped together during dynamic optimization of the frames
carried out by the server. However, this number can be reduced to suit a specific item of equipment by
configuring the length of frames in the topic (see the chapter "Implementation/Topic Configuration/
Advanced Options / frame length”)
For write frames, see chapter "OPC Server/Synchronous and Asynchronous Request
Optimization".
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 70 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Estimating the performance of an applicom® Industrial Ethernet
Client.
This estimation is made in the worst context where the applicom® Industrial Ethernet Station is
uniquely Industrial Ethernet CLIENT, all variables are refreshed by permanently active cyclic read
functions.
When the applicom® interface Industrial Ethernet SERVER is used (the PLCs place event
variables in the database) the time to feed back data into the applicom® database is approximately equal
to the Industrial Ethernet CLIENT PLC cycle time.
Reminder: the Industrial Ethernet SERVER and CLIENT functionality can be accumulated.
The applicom® interface must feed back variables coming from 20 Siemens stations type
115U with a CPU 943B and a CP 143 coupler card, with a cycle time of 25 ms.
The « SendAll » and « ReceiveAll » call is only made once per PLC cycle, which means that
the PLC access is monoflow. The PLC configuration is as described in the software
installation manual « Software installation » chapter « Configuration with Siemens
equipment » without the client PLC contracts. No inter-PLC exchange is active.
applicom
international
PC2000ETH
I. E. Network
Station 0 Station 19
20 Simatic TI stations
( 545 / CP1434 )
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 71 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
Number of variables:
Req / s
140
120
100
80
60
40
20
Nb
1 2 3 4 5 6 7 Station
20
In our example, to retrieve variables from 20 devices, 80 requests are needed, i.e.
80 (requests) / 100 (requests/s) = 0.8 second.
This calculation is only valid if the data retrieved is distributed in all devices.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 72 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Industrial Ethernet server
The Industrial Ethernet Server on applicom® interface makes available a 32 kword database to
Siemens network architecture clients TI (READ/WRITE).
The Industrial Ethernet Server functionality on the applicom® database can be used to optimize
data feedback. Rather than permanently polling devices to monitor variables changing status
occasionally, the devices can put the data to feed back only on change of status (alarm feedback) in the
applicom® database. Consequently, in this operating mode:
• The PLC processors are used less.
• The network architecture is less heavily loaded.
• Data feedback time is minimized.
This principle can be made reliable on the Industrial Ethernet Server on applicom® interface to
avoid « working blind ». For example, variables in the applicom® database do not move since the
transmitting equipment is disconnected. To do this :
• You can define a maximum time interval between client equipment accesses to the applicom®
Industrial Ethernet Server, in the name of the client Local TSAP. This name is defined in the
client PLC configuration. The Industrial Ethernet Server task on applicom® interface can
manage up to 60 connections with client stations. As seen by applicom®, a connection with a
client station is marked by a number from 0 to 59. For a given connection, a client station can
initialize the access time-out value. This initialization is made by the client PLC local TSAP name
during the connection sequence. The name of the local TSAP must be type: APnn-vvv where
AP is the applicom® identifier, nn represents a connection number seen by applicom® (from
00 to 59) and vvv represents the access time-out to the applicom® DATA-BASE (from 001-
999 seconds).
Example: for connection 1 with a time-out value of 10 seconds, a local TSAP = AP01-010.
After this interval, absence is signaled to the application by an « ACCESS STATUS WORD » in the
applicom® database. Define the address of this status word using the channel configuration
utility.
• The application is informed of the write access by each device to the applicom® Industrial
Ethernet Server by incrementing an « ACCESS INDICATOR WORD » in the applicom®
database. The application can query the variables of this device in the applicom® database and
reset the « ACCESS INDICATOR WORD » to zero, to be informed of the next access (or even
to inform the transmitting device of this acknowledgment).
After this period, absence is signaled to the application by an « ACCESS STATUS WORD » in the
applicom® database. Use the channel configuration utility to define the address of this status
word.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 73 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Configuration
This protocol is only configurable on applicom® interfaces with an Ethernet way (PC2000ETH or
PCI2000ETH).
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 74 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
applicom® Interface
IEEE serial number
Address (in Hexadecimal)
00 A0 91 xx xx xx
Example:
applicom® interface Ethernet address with serial number 20100 i.e. 4E84 Hexadecimal.
00 A0 91 00 4E 84
If you enter an address, then this address will be used. This means that an Ethernet card can be
replaced without having to reconfigure its peer's address in the client station.
Resetting this word to 0 is your responsibility to be informed of the next write and/or inform the
transmitting equipment of this acknowledgment.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 75 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
If an equipment type is selected, a virtual connection request and maintenance mechanism will be
established as soon as the applicom® channel is initialized, even if no data is taken from the
server equipment (layer 4 management).
Equipment number
Number of the applicom device used to access the H1 client.
Local TSAP
This choice is used to define the name of the local TSAP (Transport Service Access Point) for this
applicom® client connection. This name will be transmitted to the server equipment during the
connection phase: the server equipment can use this name as an identifier.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 76 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Siemens equipments implementation
The PC is connected to the Industrial Ethernet network using the PC2000ETH card. A SIEMENS
PLC is connected to the Industrial Ethernet network by installing a special communication processor, the
CP1434 for SIMATIC® TI505 PLCs. Traffic management on the Industrial Ethernet network is processed
independently by the coupler, so releasing the CPU of the TI505 PLC.
Communication between the PLC processor and the CP1434 coupler is transparent and need no
special programming in PLC. It’s only necessary to configure the coupler to make a connection between
PC and PLC
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 77 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Configuration example : CP1434 Texas Configuration
Description
In this example, the configuration is carried out using the program 505H1 supplied by SIEMENS.
This section is supplied for reference.
In the main window, select « File » then « New ». Enter « Local Ethernet Address » and declare two
« Peer Services », one for Read and one for Write by pressing « insert ».
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 78 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
Enter informations in Peer Service Read window like under
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 79 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
Enter informations in Peer Service Write window like under
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 80 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
It’s possible to controle the coupler working and the « Jobs » activity for reading and writing. Press
« Debug » in main window then « Peers Services ». Look at the select « job » like under.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 81 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- applicom® server configuration example
Define the general characteristics of server with applicom console software program.
Definition of the equipment number 1 with stands for the PLC seen as client by applicom®
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 82 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
Creation of the read cyclic function in the PLC with the « PCCYC » software program.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 83 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- applicom® functions usable on the master channel
- Wait mode
readpackbit writepackbit
readpackibit
readpackqbit writepackqbit
readbyte writebyte
readibyte
readqbyte writeqbyte
readpackbyte writepackbyte
readpackibyte
readpackqbyte writepackqbyte
readword writeword
readiword
readqword writeqword
readwordbcd writewordbcd
readdword writedword
readfword writefword
readtimer writetimer
readcounter writecounter
- Deferred mode
readdifbit writedifpackbit
readdifibit
readdifqbit writedifpackqbit
readdifbyte writedifpackbyte
readdifibyte
readdifqbyte writedifpackqbyte
readdifword writedifword
readdifiword
readdifqword writedifqword
readdifdword writedifdword
readdiffword writediffword
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 84 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Cyclic mode
createcyc
startcyc stopcyc actcyc
transcyc transcycpack
Packed bytes X X
Bytes X X
Input packed bytes X
Input bytes X
Output packed bytes X X
Output bytes X X
Words X X
BCD words X X
Input words X
Output words X X
32 bit double words X X
32 bit IEEE floating words X X
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 85 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Item of image variables - Presentation
The "item of image variables" are the syntaxes which allow to access to the variables through the
DDE server "PCDDE" or the OPC server.
For more information, please refer to the chapter "DDE Server/Data Access/Data Access
Principles" or to the chapter "OPC Server/ Data Access/Data Access Principles".
According to the configuration of the equipment, the descriptor is determined by default by the
server. In the case of Industrial Ethernet protocol, the default descriptor is depending on the type of
equipment. For Texas Instrument, Simatic TI505 is the default descriptor.
Caution, if you change the default descriptor, some optimizations of access to the equipment will be
devalidated and the performances could be corrupted.
You however have the possibility of using another descriptor (in particular the applicom® standard
descriptor) by the means of the advanced options.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 86 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : B4_10, B4_10_5
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : BI4_10, BI4_10_5
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : BO4_10, BO4_10_5
n : Number of bytes.
l : Number of bytes per line (Matrix mode only).
Examples : O4_10, O4_10_5
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 87 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Bits in internal bytes => Ox.b (type : BIT)
For this syntax, the maximum numbers of variables per frame are:
in read : 256*8
in write : 1
n : Number of bytes.
l : Number of bytes per line (Matrix mode only).
Examples : OI4_10, OI4_10_5
n : Number of bytes.
l : Number of bytes per line (Matrix mode only).
Examples : OO4_10, OO4_10_5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x : Number of first byte which contains the string.
n : Potential number of bytes which can contain the ASCII string (1 to 131).
Example : M_O100_30
In the example, the byte array from O100 to O129 can contain the string.
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : W4_10, W4_10_5
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 88 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Bits in internal words => Wx.b (type : BIT)
For this syntax, the maximum numbers of variables per frame are:
in read : 128*16
in write : 1
x: Number of the first word.
b: Rank of the bit in the word (0 to 15).
Example : W4.5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : WI4_10, WI4_10_5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : WO4_10, WO4_10_5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 89 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Internal double words => Dx (type : 32 bit WORD)
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 90 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Item of image variables - Texas Instrument descriptor
This descriptor is usable only for access to the Texas Instrument equipments with applicom®
interfaces.
- Internal variables
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Refer to chapter "- Simatic® TI505 range" on page 67 for variable addressing.
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : C4_10, C4_10_5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : V4_10, V4_10_5
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 91 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Bits in the internal words => Vx.b (type : BIT)
For this syntax, the maximum numbers of variables per frame are:
in read : 128*16
in write : 1
- ASCII string in the internal words => M_Vx_n (type : 16 bit WORD)
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 92 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Input and output variables
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Refer to chapter "- Simatic® TI505 range" on page 67 for variable addressing.
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : X4_10, X4_10_5
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : Y4_10, Y4_10_5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : WX4_10, WX4_10_5
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 93 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Output words => WYx (type : 16 bit WORD)
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : WY4_10, WY4_10_5
- Timers / Counters
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Refer to chapter "- Simatic® TI505 range" on page 67 for variable addressing.
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : TCP4_10, TCP4_10_5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : TCC4_10, TCC4_10_5
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 94 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Variables DRUM
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Refer to chapter "- Simatic® TI505 range" on page 67 for variable addressing.
- Preselection values of the "DRUM" step => DSPx (type : 16 bit WORD)
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : DSP4_10, DSP4_10_5
- Values of the current "DRUM" step => DSCx (type : 16 bit WORD)
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : DSC4_10, DSC4_10_5
- Preselection values of the "DRUM" counter => DCPx.y (type : 16 bit WORD)
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : DCP4.5_10, DCP4.5_10_5
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 95 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- System status
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Refer to chapter "- Simatic® TI505 range" on page 67 for variable addressing.
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : STW4_10, STW4_10_5
- Constant words
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Refer to chapter "- Simatic® TI505 range" on page 67 for variable addressing.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 96 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Constant words => Kx (type : 16 bit WORD)
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : K4_10, K4_10_5
For this syntax, the maximum numbers of variables per frame are:
in read : 128*16
in write : 1
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 97 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- LOOP variables
For this syntax, the maximum numbers of variables per frame are:
in read: 128*16
in write: 1
"Array" mode (String and Matrix) provides access to the same contiguos LOOP variable.
Examples :
Item representing a string of data corresponding to the LKC variables of 4 LOOP from LOOP 10.
LKC10_4
This corresponds to access to variables LKC10, LKC11, LKC12, LKC13.
Item representing a string of data corresponding to the LKC variables of 4 LOOP from LOOP 10
with 2 variables per line.
LKC10_4_2
This corresponds to access to variables LKC10, LKC11, LKC12, LKC13.
The following array representes the "LOOP" variables with their formats and their various syntaxes.
« X » in column « L » represents the possibility of read and « X » in column « E » the possibility of write.
Variable name Variable type L E Unitary mode Table Mode, Matrix Mode
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 98 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
LLAR 16 bit WORD X X LLARx LLARx_n, LLARx_n_l
Bits in the words X X LLARx.b
LPVR 16 bit WORD X X LPVRx LPVRx_n, LPVRx_n_l
Bits in the words X X LPVRx.b
LODAR 16 bit WORD X X LODARx LODARx_n, LODARx_n_l
Bits in the words X X LODARx.b
LYDAR 16 bit WORD X X LYDARx LYDARx_n, LYDARx_n_l
Bits in the words X X LYDARx.b
LMNR 16 bit WORD X X LMNRx LMNRx_n, LMNRx_n_l
Bits in the words X X LMNRx.b
LSPR 16 bit WORDX X LSPRx LSPRx_n, LSPRx_n_l
Bits in the words X X LSPRx.b
LERRR 16 bit WORD X LERRRx LERRRx_n, LERRRx_n_l
Bits in the words X LERRRx.b
LHHAR 16 bit WORD X X LHHARx LHHARx_n, LHHARx_n_l
Bits in the words X X LHHARx.b
LLLAR 16 bit WORD X X LLLAx LLLAx_n, LLLAx_n_l
Bits in the words X X LLLARx.b
LADBR 16 bit WORD X X LADBRx LADBRx_n, LADBRx_n_l
Bits in the words X X LADBRx.b
LMXR 16 bit WORD X X LMXRx LMXRx_n, LMXRx_n_l
Bits in the words X X LMXRx.b
LSPLR 16 bit WORD X X LSPLRx LSPLRx_n, LSPLRx_n_l
Bits in the words X X LSPLRx.b
LSPHR 16 bit WORD X X LSPHRx LSPHRx_n, LSPHRx_n_l
Bits in the words X X LSPHRx.b
LCFH 16 bit WORD X X LCFHx LCFHx_n, LCFHx_n_l
Bits in the words X X LCFHx.b
LCFL 16 bit WORD X X LCFLx LCFLx_n, LCFLx_n_l
Bits in the words X X LCFLx.b
LKD 32 bit IEEE REAL X X LKDx LKDx_n, LKDx_n_l
LRSN 16 bit WORD X X LRSNx LRSNx_n, LRSNx_n_l
Bits in the words X X LRSNx.b
LACK 16 bit WORD X X LACKx LACKx_n, LACKx_n_l
Bits in the words X X LACKx.b
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 99 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Refer to chapter "- Simatic® TI505 range" on page 67 for variable addressing.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 100 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- ALARM variables
For this syntax, the maximum numbers of variables per frame are:
in read: 128*16
in write: 1
"Array mode (String and Matrix) provides access to the same contiguous ALARM variable.
Examples :
Item representing a string of data corresponding to the AHA variable of 4 ALARM from ALARM
10.
AHA10_4
This corresponds to access to variables AHA10, AHA11, AHA12, AHA13.
Item representing a string of data corresponding to the variables AHA of 4 ALARM from ALARM
10 with 2 variables per line.
AHA10_4_2
This corresponds to access to variables AHA10, AHA11, AHA12, AHA13.
The following array representes the "ALARM" variables with their formats and their various
syntaxes. « X » in column « L » represents the possibility of read and « X » in column « E » the possibility
of write.
Variable name Variable type L E Unitary mode Table Mode, Matrix Mode
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 101 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
AYDAR 16 bit WORD X X AYDARx AYDARx_n, AYDARx_n_l
Bits in the words X X AYDARx.b
ASPR 16 bit WORD X X ASPRx ASPRx_n, ASPRx_n_l
Bits in the words X X ASPRx.b
AADBR 16 bit WORD X X AADBRx AADBRx_n, AADBRx_n_l
Bits in the words X X AADBRx.b
AERRR 16 bit WORD X AERRRx AERRRx_n, AERRRx_n_l
Bits in the words X AERRRx.b
AHHAR 16 bit WORD X X AHHARx AHHARx_n, AHHARx_n_l
Bits in the words X X AHHARx.b
ALLAR 16 bit WORD X X ALLAx ALLAx_n, ALLAx_n_l
Bits in the words X X ALLARx.b
ASPAR 16 bit WORD X X ASPARx ASPARx_n, ASPARx_n_l
Bits in the words X X ASPARx.b
ASPHR 16 bit WORD X X ASPHRx ASPHRx_n, ASPHRx_n_l
Bits in the words X X ASPARx.b
ACFH 16 bit WORD X X ACFHx ACFHx_n, ACFHx_n_l
Bits in the words X X ACFHx.b
ACFL 16 bit WORD X X ACFLx ACFLx_n, ACFLx_n_l
Bits in the words X X ACFLx.b
AACK 16 bit WORD X X AACKx AACKx_n, AACKx_n_l
Bits in the words X X AACKx.b
Remarks :
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Refer to chapter "- Simatic® TI505 range" on page 67 for variable addressing.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 102 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Appendices
- List of extra files for this protocol
- Evolution / compatibility
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 103 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
- Return status of applicom® functions
The various applicom® functions return a status word that:
- Guarantees the request quality.
- Can be used to diagnose the cause of a failure.
The significance of the status word value is given in the table below. As well as the general
significance, « Further details » allow you to guide your diagnostic according to the protocol used.
-6 The TRANSCYC (or TRANSCYCPACK) function is used with a cyclic function number that is no longer
activated.
-5 The user program tries to perform a TRANSDIF (or TRANSDIFPACK) deferred transfer although the deferred
request in progress is not completed.
-1 TRANSDIF (or TRANSDIFPACK) deferred transfer request related to a write that took place correctly.
0 No anomaly detected. The function took place correctly.
1 Unknown function.
The requested function is not supported.
2 Incorrect address.
The address of the variable you are soliciting is incorrect.
3 Incorrect data.
Further details :
Function: BINBCD, BCDBIN.
- At least one of the accessed values is not in BCD format (0 ≤ value ≤ 9999).
4 Irretrievable data.
32 Bad parameter passed into the function.
Incorrect number of variables.
35 Data not available in cyclic read.
Attempt to transfer data with TRANSCYC (or TRANSCYCPACK) before it has been read in the equipment.
40 Deferred read or write attempt when the deferred request register is full.
Another task must free the resources by making an exitbus.
41 Deferred read or write attempt when the deferred request register is full
Perform deferred request transfers with TRANSDIF (or TRANSDIFPACK) in order to release the register (64
positions).
42 Deferred request transfer attempt with TRANSDIF (or TRANSDIFPACK) when the latter is empty (no deferred
requests in progress).
45 Non-resident communication software.
Initialize the applicom® interface before using it by typing command applicom (or PCINIT under Windows ).
46 Board number not configured, or Master/client applicom® function aiming at a channel configured as
slave/server, or vice versa.
47 No applicom® interface.
51 Driver system problem.
59 Protection key missing on the applicom® interface..
Using applicom® function without INITBUS function.
66 Insufficient applicom® interface memory.
255 Used by the « PCDDE » MS-Windows server. Initial value of « STATUS_READ » and « STATUS_WRITE ».
This value indicates that no transaction has been made between « PCDDE » and applicom® interface.
Comments :
Negative status codes are information codes.
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 104 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
Industrial Ethernet on PC2000ETH (ISO Layer 4) • 105 • - Simatic® TI505 Texas (READ/WRITE S5 Messaging)
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
Contents
-Functionality .......................................................................................................107
- Industrial Ethernet client...................................................................... 107
- Estimating the performance of an applicom® Industrial Ethernet Client. .... 112
- Industrial Ethernet server .................................................................... 114
- Configuration.....................................................................................................116
Server equipment configuration ..........................................................................118
- Siemens S7 equipments implementation..........................................................120
- Description ......................................................................................... 120
- SIEMENS PLC configuration with Step7 .................................................. 120
- applicom® server configuration ............................................................ 125
- applicom® functions usable on the master channel .........................................128
- Wait mode ......................................................................................... 128
- Deferred mode.................................................................................... 128
- Cyclic mode........................................................................................ 129
- Item of image variables .....................................................................................130
- Presentation ....................................................................................... 130
- Standard descriptor ............................................................................. 130
- Siemens Simatic S7 PLCs descriptor ..................................................... 135
- Appendices .......................................................................................................140
- List of extra files for this protocol .......................................................... 140
- Evolution / compatibility ...................................................................... 140
- Return status of applicom® functions ...............................................................141
- applicom® general statuses ................................................................. 141
- Statuses according to the protocol......................................................... 142
Woodhead
-Functionality
The Client Industrial Ethernet on applicom® interface can be used to poll Siemens architecture
® ® ®
network Simatic S5, Simatic S7 and Simatic TI505 PLCs using standard functions (wait, deferred,
cyclic modes) of the applicom® product. Multiflow communication is used (several transactions
simultaneously, maximum 8).
- Simatic® S7 range
The variables of the Siemens S7 series are numbered by byte and not by 16 bit word as the DB
variables of the Siemens S5 series. So it’s nevertheless possible to access to words, double words or
floating words which addresses start on even or odd addresses. A request of reading several words must
allow the user to access to a word array, whatever their physical addresses. To solve this problem, the
Industrial Ethernet protocol task returns as much variables according to configuration with address on
byte, word or double word.
Example 1 : An application wants to read in one request, the words MW11 and MW14. So It will
use a reading request from the address 11. The content of the response will be presented as followed:
-alignment on byte address
User array offset S7 variable Physical address in the PLC (in byte)
0 MW11 11 and 12
1 MW12 12 and 13
2 MW13 13 and 14
3 MW14 14 and 15
User array offset S7 variable Physical address in the PLC (in byte)
0 MW11 11 and 12
1 MW13 13 and 14
2 MW15 15 and 16
3 MW17 17 and 18
Note : This principle cannot be applied to the writing of several variables in one request.
User array offset S7 variable Physical address in the PLC (in byte)
0 MW11 11 and 12
1 MW13 13 and 14
Woodhead
Example 2 : An application wants to read in one request the double words MD10 and MD16. It will
use a reading request from the address 11. The content of the response will be presented as followed:
-alignment on byte address
User array offset S7 variable Physical address in the PLC (in byte)
0 MD10 from 10 to 13
1 MD11 from 11 to 14
2 MD12 from 12 to 15
3 MD13 from 13 to 16
4 MD14 from 14 to 17
5 MD15 from 15 to 18
6 MD16 from 16 to 19
User array offset S7 variable Physical address in the PLC (in byte)
0 MD10 from 10 to 13
1 MD12 from 12 to 15
2 MD14 from 14 to 17
3 MD16 from 16 to 19
4 MD18 from 18 to 21
5 MD20 from 20 to 23
6 MD22 from 22 to 25
User array offset S7 variable Physical address in the PLC (in byte)
0 MD10 from 10 to 13
1 MD14 from 14 to 17
2 MD18 from 18 to 21
3 MD22 from 22 to 25
4 MD26 from 26 to 29
5 MD30 from 30 to 33
6 MD34 from 34 to 37
User array offset S7 variable Physical address in the PLC (in byte)
0 MD10 from 10 to 13
1 MD14 from 14 to 17
Adressing mode
Functions managed by choosing an Industrial Ethernet channel (S7 Protocol) can be used to
access the variables defined in the following table.
The address of the variable accessed must be calculated in certain cases by referring to the "
applicom® addressing" column in the table.
The item descriptor usable with PCDDE associated with this addressing is " Siemens S7 Series ".
Woodhead
S7-300 S7-400 applicom® Type of exchange Corresponding applicom® function
Variable Addressing (library/DLL access)
(addr)
My.z y*8+z Read bits READPACKBIT
DBx.DBXy.z x*524288+y*8+z Write bit WRITEPACKBIT
x : DB number
y : Byte number
z : Number of the bit in the byte (0 to 7)
n : Timer or counter number (0 to 127)
Addressing limits
Every variable in DB can be addressed from the byte 0 to the byte 65535.
For the bits in DB, only the DBs numbered from 1 to 8191 can be addressed.
For the bytes, words, double words and floating words, only the DBs from 1 to 32767 can be
addressed
Woodhead
- Maximum number of variables per exchange with the library
The maximum number of variables depends on the type of interface and the type of buffer used.
The maximum quantities in read are different according to addressing mode (byte, word or double
word) for S7-300 and S7-400 PLC’s.
The maximum quantities in read and in write are different for S7-300 and S7-400 PLC’s. The
maximum quantities for S7-400 are values by default in particular for PCDDE software. It is necessary to
change these limits when you declare Topics in PCDDE for S7-300 PLC.
The maximum quantities in read are different according to addressing mode (byte, word or double
word) for S7-300 and S7-400 PLC’s.
The maximum quantities in read and in write are different for S7-300 and S7-400 PLC’s. The
maximum quantities for S7-400 are values by default in particular for PCDDE software. It is necessary to
change these limits when you declare Topics in PCDDE for S7-300 PLC.
The number given for read frames corresponds to the maximum number of points (as imposed by
the server and/or the protocol) which can be grouped together during dynamic optimization of the frames
carried out by the server. However, this number can be reduced to suit a specific item of equipment by
configuring the length of frames in the topic (see chapter "Implementation/Topics configuration/Advanced
options").
Where write operations are concerned, a variable automatically entails the formation of a frame.
Woodhead
- Maximum number of variables per exchange with OPC server
The maximum quantities in read are different according to addressing mode (byte, word or double
word) for S7-300 and S7-400 PLC’s.
The maximum quantities in read and in write are different for S7-300 and S7-400 PLC’s. The
maximum quantities for S7-400 are values by default in particular for PCDDE software. It is necessary to
change these limits when you declare Topics in PCDDE for S7-300 PLC.
The number given for read frames corresponds to the maximum number of points (as imposed by
the server and/or the protocol) which can be grouped together during dynamic optimization of the frames
carried out by the server. However, this number can be reduced to suit a specific item of equipment by
configuring the length of frames in the topic (see chapter "Implementation/Topics configuration/Advanced
options").
For the write frames, see chapter "OPC Server/Optimization of synchronous and asynchronous
requests".
Woodhead
- Estimating the performance of an applicom® Industrial Ethernet
Client.
This estimation is made in the worst context where the applicom® Industrial Ethernet Station is
uniquely Industrial Ethernet CLIENT, all variables are refreshed by permanently active cyclic read
functions.
When the applicom® interface Industrial Ethernet SERVER is used (the PLCs place event
variables in the database) the time to feed back data into the applicom® database is approximately equal
to the Industrial Ethernet CLIENT PLC cycle time.
Reminder: the Industrial Ethernet SERVER and CLIENT functionality can be accumulated.
The applicom® interface must feed back variables coming from 20 Siemens stations type
S7-400 with a CPU 413-2 and a CP 443-1 coupler card, with a cycle time of 25 ms.
The PLC configuration is as described in the example of this manual, chapter "- Siemens S7
equipments implementation". No inter-PLC exchange is active.
applicom
international
PC2000ETH
I. E. Network
Station 0 Station 19
20 Simatic S7 stations
( S7-413 / CP443-1 )
Woodhead
Number of variables:
Req / s
140
120
100
80
60
40
20
Nb
1 2 3 4 5 6 7 Station
20
In our example, to retrieve variables from 20 devices, 80 requests are needed, i.e.
80 (requests) / 100 (requests/s) = 0.8 second.
This calculation is only valid if the data retrieved is distributed in all devices.
Woodhead
- Industrial Ethernet server
The Industrial Ethernet Server on applicom® interface makes available a 32 kwords database to
Simatic S7 network architecture clients (protocol S7).
Notes:
Seen by the client PLCs, the DATA-BASE manages virtually 124 blocks of data of 256 words in its
word and/or byte area. The client PLC program must generate blocks with parameters identical to those
used to access the DBs in server PLCs. To find the equivalent address on the applicom® database, use
the formulae:
The Industrial Ethernet Server functionality on the applicom® database can be used to optimize
data feedback. Rather than permanently polling devices to monitor variables changing status
occasionally, the devices can put the data to feed back only on change of status (alarm feedback) in the
applicom® database. Consequently, in this operating mode:
Woodhead
This principle can be made reliable on the Industrial Ethernet Server on applicom® interface to
avoid « working blind ». For example, variables in the applicom® database do not move since the
transmitting equipment is disconnected. To do this:
• You can define a global maximum time interval between client equipment accesses to the
applicom® Industrial Ethernet Server, by using configuration utility.
After this interval, absence is signaled to the application by an « ACCESS STATUS WORD » in the
applicom® database. Use the address of this status word using the channel configuration utility.
• The application is informed of the write access by each device to the applicom® Industrial
Ethernet Server by incrementing an « ACCESS INDICATOR WORD » in the applicom®
database. The application can query the variables of this device in the applicom® database and
reset the « ACCESS INDICATOR WORD » to zero, to be informed of the next access (or even
to inform the transmitting device of this acknowledgment).
The Industrial Ethernet Server task on applicom® interface can manage up to 14 connections
with Simatic S7 client stations. As seen by applicom®, a connection with a client station is marked by a
number from 2 to 15. For a given connection, a client station can initialize this number. This initialization is
made by the declaration of the CPU position of the « face » equipment configured in the global project of
Step7. This number is sent by PLC at connection sequence.
Woodhead
- Configuration
This protocol is only configurable on applicom® interfaces with an Ethernet way (PC2000ETH or
PCI2000ETH).
Woodhead
Ethernet address of the card
If you enter « ############ » as Ethernet address, the default applicom® interface Internet
address will be used.
The default Ethernet address is made up of 6 bytes including the applicom® IEEE address
followed by the applicom® interface serial number. The serial number is given on the applicom®
interface labels (on the rear plate and on the copper) or displayed when the interface is initialized (
« applicom » or « pcinit » command under MS-Windows).
applicom® Interface
IEEE serial number
Address (in Hexadecimal)
00 A0 91 xx xx xx
Example:
applicom® interface Ethernet address with serial number 20100 i.e. 4E84 Hexadecimal.
00 A0 91 00 4E 84
If you enter an address, then this address will be used. This means that an Ethernet card can be
replaced without having to reconfigure its peer's address in the client station.
Woodhead
If an equipment type is selected (here « Industrial Ethernet S7 »), a virtual connection request and
maintenance mechanism will be established as soon as the applicom® channel is initialized, even
if no data is taken from the server equipment (layer 4 management).
You can select these devices in the device library on the Protocol S7 type.
Equipment number
Number of the applicom device used to access the H1client.
CPU slot
This choice is used to define the position of the CPU card in the PLC rack (from 2 to 15) according
to the configuration in Step7. This number will be transmitted to the server equipment during the
connection phase.
Woodhead
Data alignment for 16 bits words reading in the DB
This parameter allows the 16 bits data alignment on byte addresss (value=1) or on word address
(value=2) during words table reading in th DB’s. The default value is 1.
Woodhead
- Siemens S7 equipments implementation
- Description
In this example, 2 types of exchange will be performed:
- 1 the applicom® card is client of a SIMATIC® S7-400 PLC. It must retrieve a table of 128 words
in the DB100 from word DW0 in the PLC and store the values from address 0 in the DATA-
BASE.
In this example, the configuration is carried out using the program Step7 supplied by SIEMENS. For
further information concerning PLC configuration, refer to SIEMENS documentation.
Woodhead
Woodhead
In second step, you must declare the hardware configuration for your PLC. For this :
1 Rack
1 Alimentation
1 CPU (note its slot number for server equipment configuration)
1 Coupler « Industrial Ethernet » CP443-1.
Woodhead
After, you must click on the line corresponding with the coupler in order to define its Ethernet
address.
Woodhead
Click on « SINEC H1 » and define the Ethernet address
After, load this configuration in PLC during « Stop »mode. Then activate the « Run » mode.
The green leds on CPU and coupler must be lighted and fixed.
Now, the coupler is ready to run and to do the connection with the client when the init is running
(PCINIT).
Woodhead
- applicom® server configuration
Define the general characteristics of server with applicom console software program.
Definition of the equipment number 1 with stands for the PLC seen as client by applicom®
Woodhead
Creation of the read cyclic function in the PLC with the « PCCYC » software program.
Woodhead
Example of a write in the PLC in wait mode
Woodhead
- applicom® functions usable on the master channel
- Wait mode
readpackbit writepackbit
readpackibit
readpackqbit writepackqbit
readbyte writebyte
readibyte
readqbyte writeqbyte
readpackbyte writepackbyte
readpackibyte
readpackqbyte writepackqbyte
readword writeword
readiword
readqword writeqword
readwordbcd writewordbcd
readdword writedword
readfword writefword
readtimer writetimer
readcounter writecounter
- Deferred mode
readdifbit writedifpackbit
readdifibit
readdifqbit writedifpackqbit
readdifbyte writedifpackbyte
readdifibyte
readdifqbyte writedifpackqbyte
readdifword writedifword
readdifiword
readdifqword writedifqword
readdifdword writedifdword
readdiffword writediffword
Woodhead
- Cyclic mode
createcyc
startcyc stopcyc actcyc
transcyc transcycpack
Packed bytes X X
Bytes X X
Input packed bytes X
Input bytes X
Output packed bytes X X
Output bytes X X
Words X X
BCD words X X
Input words X
Output words X X
32 bit double words X X
32 bit IEEE floating words X X
Woodhead
- Item of image variables
- Presentation
The "item of image variables" are the syntaxes which allow to access to the variables through the
DDE server "PCDDE" or the OPC server.
Report you to sections "DDE server/Principles regarding access to Data" or "OPC server/Data
Access Principle
According to the configuration of the equipment, the descriptor is determined by default by the
server. In the case of Industrial Ethernet protocol, the default descriptor is depending on the type of
equipment. For S7, the default descriptor is Simatic S7.
Caution, if you change the default descriptor, some optimizations of access to the equipment will be
devalidated and the performances could be corrupted.
You however have the possibility of using another descriptor (in particular the applicom® standard
descriptor) by the means of the advanced options.
- Standard descriptor
The standard descriptor can be used for access to the equipments which have not specific
descriptors. The address field of the item name may be 10 digits long. It allows to compose a linear
address from 0 to 4 giga.
Woodhead
Remarks:
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Refer to chapter "- Simatic® S7 range" on page 107 for variable addressing.
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : B4_10, B4_10_5
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : BI4_10, BI4_10_5
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : BO4_10, BO4_10_5
Woodhead
- Internal bytes => Ox_n, Ox_n_l
n : Number of bytes.
l : Number of bytes per line (Matrix mode only).
Examples : O4_10, O4_10_5
For this syntax, the maximum numbers of variables per frame are:
in read : 238*8
in write : 1
n : Number of bytes.
l : Number of bytes per line (Matrix mode only).
Examples : OI4_10, OI4_10_5
n : Number of bytes.
l : Number of bytes per line (Matrix mode only).
Examples : OO4_10, OO4_10_5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x : Number of first byte which contains the string.
n : Potential number of bytes which can contain the ASCII string (1 to 131).
Example : M_O100_30
In the example, the byte array from O100 to O129 can contain the string.
Woodhead
- Internal words => Wx (type : 16 bit WORD)
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : W4_10, W4_10_5
For this syntax, the maximum numbers of variables per frame are:
in read : 119*16
in write : 1
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : WI4_10, WI4_10_5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples : WO4_10, WO4_10_5
Woodhead
- ASCII string in internal words => M_Wx_n (type : 16 bit WORD)
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: Number of the first word containing the string
n: Number of potential words that could contain the ASCII string (1 to 65).
Example: M_W100_30
In the example, the word array W100 to W129 can contain the string.
Woodhead
- Siemens Simatic S7 PLCs descriptor
This descriptor is usable for access to the Siemens S7 300 and S7-400 PLCs with S7 protocol.
Caution : The addressing mode of the protocol task forbids the utilization of the array mode
and matrix mode in the word, double word and floating word type variables.
Remarks:
The limiting values of the parameters n and l depend on the protocol. However, for PCDDE, they
cannot be greater than 128 for bits bytes, 64 for words, 32 for double words and floating words.
Refer to chapter "- Simatic® S7 range" on page 107 for variable addressing.
Woodhead
- Marker bits => Mx.y (type: BIT)
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : M94.7_24, M94.7_24_8
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : E94.7_24, E94.7_24_8
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : A94.7_24, A94.7_24_8
x: DB number (1 to 8191).
y: Number of the first word in the DB (0 to 65535).
z: Rank of the first bit (0 to 7).
Example : DB94.DBX3.7
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples : DB94.DBX3.7_24, DB94.DBX3.7_24_8
Woodhead
- Marker bytes => MBx_n, MBx_n_l
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples : MB4_10, MB4_10_5
x : DB number (1 to 32 767).
y : Byte number (0 to 65 535).
Example : DB4.DBB5
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples : DB4.DBB5_10, DB4.DBB5_10_2
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples : EB4_10, EB4_10_5
Woodhead
- ASCII string in the marker bytes => M_MBx_n (type: BYTE)
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: Number of the first byte containing the string (0 to 65535).
n: Number of potential bytes that could contain the ASCII string (1 to 131).
Example : M_MB100_10
In the example the byte array MB100 to MB109 can contain the string.
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x : DB number (0 to 32 767).
y: Number of the first byte containing the string (0 to 65535).
n: Number of potential marker bytes that could contain the ASCII string (1 to 131).
Example : M_DB1.DBB5_10
In the example the byte array DB1.DBB5 to DB1.DBB14 can contain the string.
x : DB number (0 to 32 767).
y: Number of the first word (0 to 65 534).
Example : DB4.DBW6
Woodhead
- Output words => AWx (type: 16 bit WORD)
x : DB number (0 to 32 767).
y : Byte number (0 to 65 532).
Example : DB1.DBD4
- Floating words in the markers => MDxF (type: 32 bit IEEE REAL)
x : DB number (1 to 32 767).
y: Number of the first byte in the DB (0 to 65 532).
Example : DB4.DBD8F
n: Number of timers.
l: Number of timers per line (Matrix mode only).
Examples : T4_10, T4_10_5
n: Number of counters.
l: Number of counters per line (Matrix mode only).
Examples : Z4_10, Z4_10_5
Woodhead
- Appendices
- List of extra files for this protocol
- Evolution / compatibility
Woodhead
- Return status of applicom® functions
The various applicom® functions return a status word that:
- Guarantees the request quality.
- Can be used to diagnose the cause of a failure.
The significance of the status word value is given in the table below. As well as the general
significance, « Further details » allow you to guide your diagnostic according to the protocol used.
-6 The TRANSCYC (or TRANSCYCPACK) function is used with a cyclic function number that is no longer
activated.
-5 The user program tries to perform a TRANSDIF (or TRANSDIFPACK) deferred transfer although the deferred
request in progress is not completed.
-1 TRANSDIF (or TRANSDIFPACK) deferred transfer request related to a write that took place correctly.
0 No anomaly detected. The function took place correctly.
1 Unknown function.
The requested function is not supported.
2 Incorrect address.
The address of the variable you are soliciting is incorrect.
3 Incorrect data.
Further details :
Function: BINBCD, BCDBIN.
- At least one of the accessed values is not in BCD format (0 ≤ value ≤ 9999).
4 Irretrievable data.
32 Bad parameter passed into the function.
Incorrect number of variables.
35 Data not available in cyclic read.
Attempt to transfer data with TRANSCYC (or TRANSCYCPACK) before it has been read in the equipment.
40 Deferred read or write attempt when the deferred request register is full.
Another task must free the resources by making an exitbus.
41 Deferred read or write attempt when the deferred request register is full
Perform deferred request transfers with TRANSDIF (or TRANSDIFPACK) in order to release the register (64
positions).
42 Deferred request transfer attempt with TRANSDIF (or TRANSDIFPACK) when the latter is empty (no deferred
requests in progress).
45 Non-resident communication software.
Initialize the applicom® interface before using it by typing command applicom (or PCINIT under Windows ).
46 Board number not configured, or Master/client applicom® function aiming at a channel configured as
slave/server, or vice versa.
47 No applicom® interface.
51 Driver system problem.
59 Protection key missing on the applicom® interface..
Using applicom® function without INITBUS function.
66 Insufficient applicom® interface memory.
255 Used by the « PCDDE » MS-Windows server. Initial value of « STATUS_READ » and « STATUS_WRITE ».
This value indicates that no transaction has been made between « PCDDE » and applicom® interface.
Comments :
Negative status codes are information codes.
Woodhead
Woodhead
5. - Glossary of terms
applicom® interface
Communication card, ISA or PCI type, with the applicom® real time multi-task kernel
ASCII
American Standard Code for Information Interchange
Channel
Physical output of an applicom® card
Client
Node which has communication initiative
Coupler
Communication interface
DATA-BASE
applicom® database, with 32 kbits and 32 kwords
DB
Siemens word to describe a Data bloc
Item
Defines an element
Memo
Siemens word to describe internal memory of a PLC
OPC
Ole for Process Control
PCDDE
applicom® DDE server
Woodhead
6. - Index
Woodhead
Standard descriptor, 144
Item descriptor TI
Standard descriptor, 97
Texas Instrument descriptor, 102
Items S5
Simatic S5 D FR descriptor, 53
Simatic S5 GB descriptor, 62
Standard descriptor, 47
Items S7
Siemens S7 descriptor, 149
Standard descriptor, 144
Items TI
Standard descriptor, 97
Texas Instrument descriptor, 102
Layer, 1
Limits S5
Library, 8
OPC server, 9
PCDDE, 8
Limits S7
Library, 124
OPC server, 125
PCDDE, 124
Limits TI
Library, 80
OPC server, 81
PCDDE, 80
Maximum number of variables per exchange S5
Library, 8
OPC server, 9
PCDDE, 8
Maximum number of variables per exchange S7
Library, 124
OPC server, 125
PCDDE, 124
Maximum number of variables per exchange TI
Library, 80
OPC server, 81
PCDDE, 80
Performance
S7, 126
TI, 82
Presentation, 1
READ/WRITE
S5, 18
TI, 88
RECEIVE, 18
S5
Client, 6
Configuration, 13
DATA-BASE, 11
Functionality, 6
Server, 11
S7
Client, 121
Configuration, 130
DATA-BASE, 128
Functionality, 121
Performance, 126
Server, 128
Woodhead
SEND, 18
Server
S5, 11
S7, 128
TI, 84
Status
S5, 72
S7, 156
TI, 115
Supported variables, 6, 78, 121
SYNCHRON, 18, 36
TF, 36
TI
Client, 78
Configuration, 85
DATA-BASE, 84
Functionality, 78
Performance, 82
Server, 84
Usable functions S5
Cyclic mode, 45
Deferred mode, 44
Wait mode, 44
Usable functions S7
Cyclic mode, 143
Deferred mode, 142
Wait mode, 142
Usable functions TI
Cyclic mode, 96
Deferred mode, 95
Wait mode, 95