Protocols - English Manual
Protocols - English Manual
Protocols Guide
by Sielco Sistemi Srl
COMMUNICATION DRIVERS
Winlog Pro provides communication with almost all available
automation devices (PLCs, controllers, indicators, counters,
motor drives, etc.) thanks to the availability of an extensive
catalogue of drivers and of a standard OPC Client interface;
both communication drivers and OPC Client interface are
included in the standard Winlog Pro package.
OPC INTERFACE
OPC (OLE for Process Control) is an industrial standard,
created by main worldwide leading automation manufacturers,
that allows data exchange between different software
components without need of any special adjustment.
OPC Client driver supports data access (DA) to OPC servers
DA 1.0 and 2.0; it can interface both local OPC Servers
(through COM objects) and remote OPC Servers (through
DCOM objects) located on different PCs linked via a local
network.
DRIVER CATALOGUE
The following directory includes all available communication
drivers sorted by manufacturer or by protocol; other drivers,
not included in the present catalogue, can be supplied on
request or developed under customer specification.
Contents
Table of Contents
Foreword
10
1 Introduction
................................................................................................................................... 10
2 Numeric ...................................................................................................................................
gates address
10
3 Blocks of...................................................................................................................................
numeric gates
11
4 Digital gates
...................................................................................................................................
address
12
5 Blocks of...................................................................................................................................
digital gates
13
6 Note
................................................................................................................................... 13
7 Protocol ...................................................................................................................................
configuration
14
16
1 Introduction
................................................................................................................................... 16
2 Numeric ...................................................................................................................................
gates address
16
3 Blocks of...................................................................................................................................
numeric gates
17
4 Digital gates
...................................................................................................................................
address
18
5 Blocks of...................................................................................................................................
digital gates
19
6 Note
................................................................................................................................... 20
7 Protocol ...................................................................................................................................
configuration
22
24
1 Introduction
................................................................................................................................... 24
2 Numeric ...................................................................................................................................
gates address
24
3 Blocks of...................................................................................................................................
numeric gates
25
4 Digital gates
...................................................................................................................................
address
26
5 Blocks of...................................................................................................................................
digital gates
26
6 Note
................................................................................................................................... 27
7 Protocol ...................................................................................................................................
configuration
28
31
1 Introduction
................................................................................................................................... 31
2 Numeric ...................................................................................................................................
gates address
31
3 Blocks of...................................................................................................................................
numeric gates
32
4 Digital gates
...................................................................................................................................
address
33
Protocols Guide
5 Blocks of...................................................................................................................................
digital gates
34
6 Note
................................................................................................................................... 34
7 Protocol ...................................................................................................................................
configuration
35
39
Part V AVEBus
1 Introduction
................................................................................................................................... 39
2 Protocol ...................................................................................................................................
configuration
40
43
1 Introduction
................................................................................................................................... 43
2 Protocol ...................................................................................................................................
configuration
43
45
1 Introduction
................................................................................................................................... 45
2 Numeric ...................................................................................................................................
gates address
45
3 Protocol ...................................................................................................................................
configuration
45
48
1 Numeric ...................................................................................................................................
gates address
48
2 Digital gates
...................................................................................................................................
address
48
3 String gates
...................................................................................................................................
address
48
4 Protocol ...................................................................................................................................
configuration
49
51
1 Introduction
................................................................................................................................... 51
2 Numeric ...................................................................................................................................
gates address
51
3 Protocol ...................................................................................................................................
configuration
51
53
1 Introduction
................................................................................................................................... 53
2 Numeric ...................................................................................................................................
gates address
53
3 Protocol ...................................................................................................................................
configuration
53
55
1 Introduction
................................................................................................................................... 55
2 Numeric ...................................................................................................................................
gates address
55
3 Digital gates
...................................................................................................................................
address
55
4 Protocol ...................................................................................................................................
configuration
56
58
1 Introduction
................................................................................................................................... 58
Contents
2 Numeric ...................................................................................................................................
gates address
58
3 Digital gates
...................................................................................................................................
address
59
4 Protocol ...................................................................................................................................
configuration
60
62
1 Introduction
................................................................................................................................... 62
2 Numeric ...................................................................................................................................
gates address
62
3 Digital gates
...................................................................................................................................
address
62
4 Protocol ...................................................................................................................................
configuration
63
65
1 Introduction
................................................................................................................................... 65
2 Numeric ...................................................................................................................................
gates address
65
3 Digital gates
...................................................................................................................................
address
74
4 String gates
...................................................................................................................................
address
76
5 Protocol ...................................................................................................................................
configuration
80
82
1 Introduction
................................................................................................................................... 82
2 Numeric ...................................................................................................................................
gates address
82
3 Digital gates
...................................................................................................................................
address
83
4 String gates
...................................................................................................................................
address
84
5 Protocol ...................................................................................................................................
configuration
85
87
1 Introduction
................................................................................................................................... 87
2 Gate address
................................................................................................................................... 87
3 Function...................................................................................................................................
provided
87
4 Protocol ...................................................................................................................................
configuration
88
90
1 Introduction
................................................................................................................................... 90
2 Numeric ...................................................................................................................................
gates address
90
3 Digital gates
...................................................................................................................................
address
93
4 String gates
...................................................................................................................................
address
93
5 Protocol ...................................................................................................................................
configuration
96
100
1 Introduction
................................................................................................................................... 100
2 Numeric...................................................................................................................................
gates address
100
Protocols Guide
3 Digital gates
...................................................................................................................................
address
101
4 String gates
...................................................................................................................................
address
102
5 Protocol...................................................................................................................................
configuration
103
109
1 Introduction
................................................................................................................................... 109
2 Numeric...................................................................................................................................
gates address
109
3 Digital gates
...................................................................................................................................
address
111
4 Protocol...................................................................................................................................
configuration
113
116
1 Introduction
................................................................................................................................... 116
2 Numeric...................................................................................................................................
gates address
116
3 Digital gates
...................................................................................................................................
address
118
4 String gates
...................................................................................................................................
address
119
5 Protocol...................................................................................................................................
configuration
120
122
1 Introduction
................................................................................................................................... 122
2 Numeric...................................................................................................................................
gates address
122
3 Digital gates
...................................................................................................................................
address
123
4 String gates
...................................................................................................................................
address
124
5 Protocol...................................................................................................................................
configuration
124
126
1 Introduction
................................................................................................................................... 126
2 Numeric...................................................................................................................................
gates address
127
3 Digital gates
...................................................................................................................................
address
127
4 String gate
...................................................................................................................................
address
127
5 Protocol...................................................................................................................................
configuration
127
130
1 Introduction
................................................................................................................................... 130
2 Numeric...................................................................................................................................
gates address
130
3 Protocol...................................................................................................................................
configuration
130
132
1 Introduction
................................................................................................................................... 132
2 Numeric...................................................................................................................................
gates address
132
Contents
3 Digital gates
...................................................................................................................................
address
133
4 String gates
...................................................................................................................................
address
133
5 Protocol...................................................................................................................................
configuration
133
136
1 Introduction
................................................................................................................................... 136
2 Numeric...................................................................................................................................
gates address
136
3 Digital gates
...................................................................................................................................
address
137
4 String gates
...................................................................................................................................
address
137
5 Protocol...................................................................................................................................
configuration
137
140
1 Introduction
................................................................................................................................... 140
2 Numeric...................................................................................................................................
gates address
140
3 Digital gates
...................................................................................................................................
address
141
4 Protocol...................................................................................................................................
configuration
142
145
1 Introduction
................................................................................................................................... 145
2 Numeric...................................................................................................................................
gates address
145
3 Digital gates
...................................................................................................................................
address
148
4 String gates
...................................................................................................................................
address
149
5 Protocol...................................................................................................................................
configuration
150
155
1 Introduction
................................................................................................................................... 155
2 Numeric...................................................................................................................................
gates address
155
3 Digital gates
...................................................................................................................................
address
155
4 Protocol...................................................................................................................................
configuration
156
158
1 Introduction
................................................................................................................................... 158
2 Protocol...................................................................................................................................
configuration
159
163
1 Introduction
................................................................................................................................... 163
2 Protocol...................................................................................................................................
configuration
164
166
1 Introduction
................................................................................................................................... 166
2 Numeric...................................................................................................................................
gates address
166
3 Digital gates
...................................................................................................................................
address
167
Protocols Guide
4 Protocol...................................................................................................................................
configuration
168
172
1 Introduction
................................................................................................................................... 172
2 Numeric...................................................................................................................................
gates address
172
3 Digital gates
...................................................................................................................................
address
173
4 Protocol...................................................................................................................................
configuration
174
177
1 Introduction
................................................................................................................................... 177
2 Numeric...................................................................................................................................
gates address
177
3 Digital gates
...................................................................................................................................
address
179
4 Protocol...................................................................................................................................
configuration
180
182
1 Introduction
................................................................................................................................... 182
2 String gates
...................................................................................................................................
address
182
3 Protocol...................................................................................................................................
configuration
182
Index
183
Part
10
Protocols Guide
1.1
Introduction
The PC is seen as a node of the network Data Highway Plus and can communicate with all PLC 3
of the network
Contact the provider of the PLC to select the proper interface board (ex. 1770-KF2 Interface
Module)
The communication between the PC and the Interface Board is through the RS232 serial channel
of the PC.
1.2
Description
Type
FFF
EEEE
Read gate
Write gate
Read block
T.FFF.EEEE
Integer file
0...999
0...9999
Yes
Yes
Yes
T.FFF.EEEE
Float file
0...999
0...9998
Yes
Yes
Yes
must be an
even number
T.FFF.EEEE
BCD file
0...999
0...9999
Yes
Yes
Yes
T.FFF.EEEE
Bit file
0...999
0...9999
Yes
Yes
Yes
T.FFF.EEEE
ASCII file
0...999
0...9999
Yes
Yes
Yes
T.FFF.EEEE
Long file
0...999
0...9998
Yes
Yes
Yes
Yes
Yes
Yes
must be an
even number
T.FFF.EEEE
Status file
0...999
0...9999
Data format is DWORD (4 bytes) for Float and Long gates and WORD (2 bytes) for other gates.
Example:
S.001.0003 : Status - File 001 Number Word 0003.
B.121.0303 : Bit - File 121 Number Word 0303.
N.100.0120 : Integer - File 100 Number Word 0120.
D.050.0020 : BCD - File 050 Number Word 0020.
A.007.0023 : ASCII - File 007 Number Word 0023.
Description
Type
OOOO
Read gate
Write gate
Read block
T.0000
Output file
0...7777 octal
Yes
Yes
Yes
Input file
Yes
0...7777 octal
Yes
11
Yes
Description
T.SSSS.Q
Timer file
Type
T
T.SSSS.Q
Counter file
SSSS
Read gate
Write gate
Read block
0...9999
0...2
Yes
Yes
Yes
0...9999
0...2
Yes
Yes
Yes
1.3
In case of gates which belong to file Float and Long, the block must be made of gates which
belong to the same type and have the same file number and a sequential even word number.
The maximum block length is 59 gates.
Numeric gates block
T.FFF.EEE
T.FFF.EEE+2
T.FFF.EEE+4
T.FFF.EEE+6
T.FFF.EEE+8
In case of gates which belong to file Timer and Counter, the block must be made of gates which
belong to the same structure and have a sequential sub-element number.
The maximum block length is 3 gates.
Numeric gates block
T.SSSS.Q.00
T.SSSS.Q.01
T.SSSS.Q.02
12
1.4
Protocols Guide
T
S
FFF
0...999
EEEE
0...9999
0...999
0...9999
0...999
0...9999
BB
00...17
octal
00...17
octal
00...17
octal
Gate read
Yes
Gate write
Yes
Block read
Yesi
Yes
Yes
Yes
Yes
Yes
Yes
Example:
S.001.0003.00 : Status - File 001 - Element 0003 Bit 00.
B.121.0303.17 : Bit - File 121 - Element 0303 Bit 17.
N.100.0120.12: Integer - File 100 - Element 0120 Bit 12.
In case of gates which belong to file Output and Input the address is:
T.OOOO.BB
where
T
: file identifier
OOOO : word number (octal value)
BB
: bit number (octal value from 00 to 17)
Address
T.OOOO.BB
Description
Output file
T
O
T.OOOO.BB
Input file
OOOO
0...7777
octal
0...7777
octal
BB
00...17
octal
00...17
octal
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
In case of gates which belong to file Timer e Counter the address is:
T.SSSS.Q
where
T
: file identifier
SSSS : structure address Timer / Counter .
Q
: sub-element (only 0).
BB
: bit number (octal value from 00 to 17)
Address Description
T.SSSS.Q.B Timer file
B
T.SSSS.Q.B Counter file
B
T
T
SSSS
0...9999
Q
0
0...9999
BB
00...17
octal
00...17
octal
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
Example:
T.0015.0.01 : Timer - Structure 0015 - Sub-Element 0 Bit 01 (octal).
C.0007.0.17 : Counter Structure 0007 - Sub-Element 0 Bit 17 (octal).
1.5
13
1.6
B.012.0003.01
T.0006.0.00
B.012.0003.01
T.0006.0.00
B.012.0003.03
T.0006.0.01
B.012.0003.03
T.0006.0.01
B.012.0004.14
T.0006.0.02
B.012.0004.14
T.0006.0.02
B.012.0005.01
T.0006.0.03
N.012.0005.01
T.0007.0.16
B.012.0006.01
T.0006.0.05
N.012.0006.01
T.0007.0.05
B.012.0006.07
T.0006.0.12
B.012.0006.07
T.0007.0.12
B.012.0006.10
T.0006.0.13
B.012.0006.10
T.0008.0.06
B.012.0007.00
T.0006.0.14
B.012.0007.00
T.0008.0.07
Note
TIMER
Timer Sub Element
00
01
02
Description
Control bits
Preset
Acc
Bit number
00
13
Description
Done
00
00
14
15
Timing
Enable
COUNTER
Timer Sub Element
00
01
02
Description
Control bits
Preset
Accumulator
Bit Number
00
11
Description
Underflow
00
00
00
00
12
13
14
15
Overflow
Done
Count down
Count up
14
1.7
Protocols Guide
Protocol configuration
Parity: parity.
Part
II
16
Protocols Guide
2.1
Introduction
This protocol applies to series 5 PLC's (excluded PLC 5-250).
The PC is seen as a node of the network Data Highway Plus and can communicate with all PLC 5
of the network
Contact the provider of the PLC to select the proper interface board (ex. 1770-KF2 Interface
Module)
The communication between the PC and the Interface Board is through the RS232 serial channel
of the PC.
2.2
Description
Type
FFF
EEE
SS
Read gate
T.FFF.EEE
Status file
0...999
0...999
Yes
Yes
Yes
T.FFF.EEE
Bit file
0...999
0...999
Yes
Yes
Yes
T.FFF.EEE
Integer file
0...999
0...999
Yes
Yes
Yes
T.FFF.EEE
BCD file
0...999
0...999
Yes
Yes
Yes
T.FFF.EEE
ASCII file
0...999
0...999
Yes
Yes
Yes
Specification which applies to gates which belong to file Output and Input :
Address
Description
Type
FFF
EEE
T.FFF.EEE
Output file
0...999
0...277
SS
Read gate
Yes
Ye
Yes
Yes
Yes
Yes
octal
T.FFF.EEE
Input file
0...999
0...277
octal
17
Description
Type
FFF
EEE
T.FFF.EEE
Float file
0...999
0...998
SS
Read gate
Yes
Yes
Yes
must be an
even number
Specification which applies to gates which belong to file Timer,Counter and Control :
Address
Description
Type
FFF
EEE
SS
Read gate
T.FFF.EEE.SS
Timer file
0...999
0...999
0...2
Yes
Yes
Yes
T.FFF.EEE.SS
Counter file
0...999
0...999
0...2
Yes
Yes
Yes
T.FFF.EEE.SS
Control file
0...999
0...999
0...2
Yes
Yes
Yes
Description
Type
FFF
EEE
SS
Read gate
T.FFF.EEE.SS
PID file
0...999
0...999
0...48
Si
Si
If the sub-element (SS) is 00 or 01, then the data format is WORD (2 Byte); otherwise is FLOAT
(4 byte).
If the sub-element (SS) is greater than 1, then it must be an even number.
Example:
P.015.110.00 : PID - File 015 - Element 110 Sub-Element 00
P.005.010.46 : PID - File 005 Element 010 Sub-Element 46
2.3
In case of gates which belong to file Float, the block must be made of gates which belong to the
same type and have the same file number and a sequential even word number.
The maximum block length is 59 gates.
Numeric gates block
T.FFF.EEE
18
Protocols Guide
T.FFF.EEE+2
T.FFF.EEE+4
T.FFF.EEE+6
T.FFF.EEE+8
In case of gates which belong to file Timer, Counter and Control the block must be made of
gates which belong to the same file type, file number and element and have a sequential
sub-element number.
The maximum block length is 3 gates.
Numeric gates block
T.SSSS.Q.00
T.SSSS.Q.01
T.SSSS.Q.02
In case of gates which belong to file PID, the block must be made of gates which belong to the
same file type, file number and element and have a sequential sub-element number.
The same block cannot be made of gates which have sub-element number less or equal than 1
and gates which have sub-element number greater than 1.
There are two possible blocks of gates PID:
1st block type : gates PID with sub-element equal to 1
T.FFF.EEE.00
TFFF.EEE.01
2nd block type : gates PID with sub-element greater than 1
T.FFF.EEE.SS
T.FFF.EEE.SS+2
T.FFF.EEE.SS+4
T.FFF.EEE.SS+6
In the second block the sub-element is always even because the gate is FLOAT (4 bytes).
2.4
Description
FFF
EEEE
T.FFF.EEE.BB
Status file
0...999
T.FFF.EEE.BB
Bit file
T.FFF.EEE.BB
Integer file
SS
BB
Gate read
Gate
write
Block
read
0...999
00...15
Yes
Yes
Yes
0...999
0...999
00...15
Yes
Yes
Yes
0...999
0...999
00...15
Yes
Yes
Yes
Example:
S.001.003.00 : Status - File 001 - Element 003 Bit 00.
B.121.303.15 : Bit - File 121 - Element 303 Bit 15.
N.100.120.12: Integer - File 100 - Element 120 Bit 12.
Specification which applies to gates which belong to file Output and Input :
Description
FFF
EEE
T.FFF.EEE.BB
Output file
0...999
T.FFF.EEE.BB
Input file
0...999
SS
19
BB
Gate read
Gate
write
Block
read
0...277
00...17
Yes
Yes
Yes
octal
octal
0...277
00...17
Yes
Yes
Yes
octal
octal
Description
FFF
T.FFF.EEE.BB
Float file
0...999
EEE
SS
0...998
BB
Gate
read
Gate
write
Block
read
0...31
Yes
Yes
Yes
must be an
even
number
Because FLOAT gates are made of 4 bytes, the bit number is from 0 to.
Field EEE must be an even number
Example:
F.015.110.29 : Float - File 015 - Element 110 Bit 29.
Specification which applies to gates which belong to file Timer,Counter and Control :
Address
Description
FF
EEE
SS
BB
T.FFF.EEE.00.BB
T.FFF.EEE.00.BB
T.FFF.EEE.00.BB
Timer file
Counter file
Control file
T
C
R
0...999
0...999
0...999
0...999
0...999
0...999
00
00
00
0...15
0...15
0...15
Yes
Yes
Yes
Block
read
Yes
Yes
Yes
Example:
T.015.110.00.01 : Timer - File 015 - Element 110 Sub-Element 00 Bit 01.
C.007.120.00.15 : Counter - File 007 - Element 120 Sub-Element 00 Bit 15.
Description
FF
EEE
SS
BB
T.FFF.EEE.00.BB
PID file
0...999
0...999
00..01
0...15
Yes
Block
read
Yes
Example:
P.011.015.00.01 : PID - File 011 - Element 015 Sub-Element 00 Bit 01.
2.5
20
2.6
Protocols Guide
Example of valid block
B.012.0003.01
T.001.006.00.00
B.012.003.01
T.001.006.00.00
B.012.0003.03
T.001.006.00.01
B.012.003.03
T.001.006.00.01
B.012.0004.14
T.001.006.00.02
B.012.004.14
T.001.006.00.02
B.012.0005.01
T.001.006.00.16
I.012.005.01
T.001.007.00.16
B.012.0006.01
T.001.006.00.05
I.012.006.01
T.001.007.01.05
B.012.0006.07
T.001.006.00.12
B.012.006.07
T.001.007.01.12
B.012.0006.08
T.001.006.00.06
B.012.006.10
T.001.008.02.06
B.012.0007.00
T.001.006.00.07
B.012.007.00
T.001.008.02.07
Note
TIMER
Timer Sub Element
00
01
02
Description
Control bits
Preset
Acc
Bit number
00
13
Description
Done
00
00
14
15
Timing
Enable
COUNTER
Timer Sub Element
00
01
02
Description
Control bits
Preset
Accumulator
Bit Number
00
11
Description
Underflow
00
00
00
00
12
13
14
15
Overflow
Done
Count down
Count up
CONTROL
Timer Sub Element
00
01
02
Description
Control bits
Length
Position
Bit number
00
08
Description
Found
00
09
Inhibit
10
11
12
13
14
15
Unload
Error
Empty
Done
Enable unload
Enable
PID
PID Sub Element
00
01
02
04
06
08
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
PID sub element
00
00
00
00
00
00
00
00
00
01
01
01
01
01
01
01
01
01
Descrizione
Control bits 0
Control bits 1
Set point
Proportional gain / Controller gain
Integral gain / reset term
Derivative gain / Rate term
Feedforward or bias
Maximum scaling
Minimum scaling
Dead band
Set output
Maximum output limit
Minimum output limit
Loop update time
Scaled PV value
Scaled error value
Output
PV high alarm value
PV low alarm value
Error high alarm value
Error low alarm value
PV alarm dead band
Error alarm dead band
Maximum input value
Minimum input value
Tieback value for manual control
Numero Bit
00
01
02
04
06
07
08
09
15
00
01
02
03
08
09
10
11
12
Descrizione
Equation
Mode
Control
Set output
Derivative action
Process variable tracking
Cascade loop
Cascade selection
Enable
PV is alarm high
PV is alarm low
Error is alarmed high
Error is alarmed low
Set when error is DB
Output alarm, upper limit
Output alarm, lower limit
Set point out of range
PID initialized
21
22
2.7
Protocols Guide
Protocol configuration
Parity: parity.
Part
III
24
Protocols Guide
3.1
Introduction
This protocol applies to series SLC 500 and MicroLogix PLC's.
The PC is seen as a node of the network DH 485 and can communicate with all SLC 500 and
MicroLogix PLC of the network
Contact the provider of the PLC to select the proper interface board (ex. 1770-KF3 Interface
Module)
The communication between the PC and the Interface Board is through the RS232 serial channel
of the PC.
3.2
Description
Type
FFF
EEE
SS
Read gate
T.FFF.EEE
Status file
0...999
0...999
Yes
Yes
Yes
T.FFF.EEE
Bit file
0...999
0...999
Yes
Yes
Yes
T.FFF.EEE
Integer file
0...999
0...999
Yes
Yes
Yes
T.FFF.EEE
BCD file
0...999
0...999
Yes
Yes
Yes
T.FFF.EEE
ASCII file
0...999
0...999
Yes
Yes
Yes
Description
Type
FFF
EEE
T.FFF.EEE
Output file
0...999
0...277
SS
Read gate
Yes
Ye
Yes
Yes
Yes
Yes
octal
T.FFF.EEE
Input file
0...999
0...277
octal
25
Description
Type
FFF
EEE
T.FFF.EEE
Float file
0...999
0...998
SS
Read gate
Yes
Yes
Yes
must be an
even number
Specification which applies to gates which belong to file Float reverse mode :
Address
Description
Type
FFF
EEE
T.FFF.EEE
Float file
0...999
0...998
SS
Read gate
Yes
Yes
must be an
even number
Specification which applies to gates which belong to file Timer,Counter and Control :
Address
Description
Type
FFF
EEE
SS
Read gate
T.FFF.EEE.SS
Timer file
0...999
0...999
0...2
Yes
Yes
Yes
T.FFF.EEE.SS
Counter file
0...999
0...999
0...2
Yes
Yes
Yes
T.FFF.EEE.SS
Control file
0...999
0...999
0...2
Yes
Yes
Yes
3.3
In case of gates which belong to file Timer, Counter and Control the block must be made of
gates which belong to the same file type, file number and element and have a sequential
sub-element number.
The maximum block lenght is 3 gates.
Numeric gates block
T.FFF.EEE.00
T.FFF.EEE.01
26
Protocols Guide
T.FFF.EEE.02
Numeric gates block
T.FFF.EEE.SS+4
T.FFF.EEE.SS+6
3.4
Description
FFF
EEEE
T.FFF.EEE.BB
T.FFF.EEE.BB
T.FFF.EEE.BB
Status file
Bit file
Integer file
S
B
N
0...999
0...999
0...999
0...999
0...999
0...999
SS
BB
Gate read
00...15
00...15
00...15
Yes
Yes
Yes
Gate
write
Yes
Yes
Yes
Block
read
Yes
Yes
Yes
Block
read
Yes
Yes
Example:
S.001.003.00 : Status - File 001 - Element 003 Bit 00.
B.121.303.15 : Bit - File 121 - Element 303 Bit 15.
N.100.120.12: Integer - File 100 - Element 120 Bit 12.
Description
FFF
EEE
T.FFF.EEE.BB
Output file
0...999
T.FFF.EEE.BB
Input file
0...999
0...277
octal
0...277
octal
SS
BB
Gate read
00...17
octal
00...17
octal
Yes
Gate
write
Yes
Yes
Yes
Specification which applies to gates which belong to file Timer,Counter and Control :
Address
Description
FF
EEE
SS
BB
T.FFF.EEE.00.BB
T.FFF.EEE.00.BB
T.FFF.EEE.00.BB
Timer file
Counter file
Control file
T
C
R
0...999
0...999
0...999
0...999
0...999
0...999
00
00
00
0...15
0...15
0...15
Yes
Yes
Yes
Block
read
Yes
Yes
Yes
Example:
T.015.110.00.01 : Timer - File 015 - Element 110 Sub-Element 00 Bit 01.
C.007.120.00.15 : Counter - File 007 - Element 120 Sub-Element 00 Bit 15.
3.5
27
which belong to the same type and have the same file number and the same word number, and
have the same or a sequential sub-element number.
The lenght of a block depends from the block composition. A block made of 16 gates belonging to
the same word has a smaller dimension than a block made of 16 gates belonging to different
words. The right dimensioning of a block is controlled by the driver itself during the first scanning;
if the block lenght is too high, an error message will be displayed.
3.6
B.012.0003.01
T.001.006.00.00
B.012.003.01
T.001.006.00.00
B.012.0003.03
T.001.006.00.01
B.012.003.03
T.001.006.00.01
B.012.0004.14
T.001.006.00.02
B.012.004.14
T.001.006.00.02
B.012.0005.01
T.001.006.00.16
I.012.005.01
T.001.007.00.16
B.012.0006.01
T.001.006.00.05
I.012.006.01
T.001.007.01.05
B.012.0006.07
T.001.006.00.12
B.012.006.07
T.001.007.01.12
B.012.0006.08
T.001.006.00.06
B.012.006.10
T.001.008.02.06
B.012.0007.00
T.001.006.00.07
B.012.007.00
T.001.008.02.07
Note
TIMER
Timer Sub Element
00
01
02
Description
Control bits
Preset
Acc
Bit number
00
13
Description
Done
00
00
14
15
Timing
Enable
COUNTER
Timer Sub Element
00
01
02
Description
Control bits
Preset
Accumulator
Bit Number
00
11
Description
Underflow
00
00
00
00
12
13
14
15
Overflow
Done
Count down
Count up
CONTROL
Timer Sub Element
00
Description
Control bits
28
Protocols Guide
01
02
3.7
Length
Position
Bit number
00
08
Description
Found
00
00
00
00
00
00
00
09
10
11
12
13
14
15
Inhibit
Unload
Error
Empty
Done
Enable unload
Enable
Protocol configuration
Parity: parity.
29
Part
IV
ALLEN-BRADLEY Ethernet
ALLEN-BRADLEY Ethernet
4.1
Introduction
31
This protocol applies to series SLC500 and MicroLogix PLC's via Ethernet.
4.2
Description
Type FFF
T.FFF.EEE
Status file
T.FFF.EEE
Bit file
T.FFF.EEE
Integer file
T.FFF.EEE
BCD file
T.FFF.EEE
ASCII file
0...99
9
0...99
9
0...99
9
0...99
9
0...99
9
EEE
SS
0...99
9
0...99
9
0...99
9
0...99
9
0...99
9
Read
gate
Yes
Write
gate
Yes
Read
Block
Yes
PLC
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
SLC500
MicroLogix
SLC500
MicroLogix
SLC500
MicroLogix
SLC500
Yes
Yes
Yes
SLC500
Read
gate
Yes
Write
gate
Yes
Read
block
Yes
PLC
Yes
Yes
Yes
Description
Type FFF
T.FFF.EEE
Output file
T.FFF.EEE
Input file
EEE
0...99 0...27
9
7
octal
0...99 0...27
9
7
octal
SS
SLC500
MicroLogix
SLC500
MicroLogix
32
Protocols Guide
Address
Description
Type FFF
EEE
T.FFF.EEE
Float file
0...99 0...99
9
9
T.FFF.EEE
Float file
(reverse mode)
0...99 0...99
9
9
SS
Read
gate
Yes
Write
gate
Yes
Read
block
Yes
Yes
Yes
Yes
PLC
SLC500
MicroLogix
SLC500
MicroLogix
Specification which applies to gates which belong to file Timer,Counter and Control :
Address
Description
T.FFF.EEE.SS
Status file
T.FFF.EEE.SS
Bit file
T.FFF.EEE.SS
Integer file
0...9
99
0...9
99
0...9
99
SS
0...9 0..2
99
0...9 0..2
99
0...9 0..2
99
Read
gate
Yes
Write
gate
Yes
Read
block
Yes
Yes
Yes
Yes
Yes
Yes
Yes
PLC
SLC500
MicroLogix
SLC500
MicroLogix
SLC500
MicroLogix
4.3
In case of gates which belong to file Timer, Counter and Control the block must be made of
gates which belong to the same file type, file number and element and have a sequential
sub-element number.
The maximum block lenght is 3 gates.
Block of numeric gates
T.FFF.EEE.00
T.FFF.EEE.01
T.FFF.EEE.02
ALLEN-BRADLEY Ethernet
4.4
33
Description
Type
T.FFF.EEE.BB
Status file
T.FFF.EEE.BB
Bit file
T.FFF.EEE.BB
Integer file
FFF EEE
BB
Read
gate
Yes
Write
gate
Yes
Read
block
Yes
Yes
Yes
Yes
Yes
Yes
Yes
PLC
SLC500
MicroLogix
SLC500
MicroLogix
SLC500
MicroLogix
Example:
S.004.003.00 : Status - File 004 - Element 003 Bit 00.
B.005.303.15 : Bit - File 005 - Element 303 Bit 15.
N.006.120.12: Integer - File 006 - Element 120 Bit 12.
Description
Type
T.FFF.EEE.BB
Output file
T.FFF.EEE.BB
Input file
FFF EEE
BB
Read
gate
Yes
Write
gate
Yes
Read
block
Yes
Yes
Yes
Yes
PLC
SLC500
MicroLogix
SLC500
MicroLogix
Specification which applies to gates which belong to file Timer,Counter and Control :
Address
Description Type
FFF
EEE
SS
BB
T.FFF.EEE.SS.BB
Timer file
0..15
Read
gate
Yes
T.FFF.EEE.SS.BB
Counter file
0..15
Yes
Yes
Yes
T.FFF.EEE.SS.BB
Control file
0..15
Yes
Yes
Yes
Esempio:
T.004.110.00.07 : Timer - File 004 - Element 110 Sub-Element 00 - Bit 07
C.005.120.01.12 : Counter - File 005 - Element 120 Sub-Element 01- Bit 12
R.006.011.02 .03: Control - File 006 - Element 011 Sub-Element 02 - Bit 03
Write
gate
Yes
Read
block
Yes
PLC
SLC500
MicroLogix
SLC500
MicroLogix
SLC500
MicroLogix
34
4.5
Protocols Guide
4.6
B.012.003.01
T.001.006.00.00
B.012.003.01
T.001.006.00.00
B.012.003.03
T.001.006.00.01
B.012.003.03
T.001.006.00.01
B.012.004.14
T.001.006.00.02
B.012.004.14
T.001.006.00.02
B.012.005.01
T.001.006.00.16
I.012.005.01
T.001.007.00.16
B.012.006.01
T.001.006.00.05
I.012.006.01
T.001.007.01.05
B.012.006.07
T.001.006.00.12
B.012.006.07
T.001.007.01.12
B.012.006.08
T.001.006.00.06
B.012.006.08
T.001.008.02.06
B.012.007.00
T.001.006.00.07
B.012.007.00
T.001.008.02.07
Note
TIMER
Timer Sub Element
00
01
02
Description
Control bits
Preset
Acc
Bit number
00
13
Description
Done
00
00
14
15
Timing
Enable
COUNTER
Timer Sub Element
00
01
02
Description
Control bits
Preset
Accumulator
Bit Number
00
11
Description
Underflow
00
00
00
00
12
13
14
15
Overflow
Done
Count down
Count up
ALLEN-BRADLEY Ethernet
35
CONTROL
Timer Sub Element
00
01
02
4.7
Description
Control bits
Length
Position
Bit number
00
08
Description
Found
00
00
00
00
00
00
00
09
10
11
12
13
14
15
Inhibit
Unload
Error
Empty
Done
Enable unload
Enable
Protocol configuration
Re-connection pause [ms] : pause between an answer and the next question.
36
Protocols Guide
Device: it is the logical address associated to the PLC and must agree with the "Device"
field in the Gate Builder for all the gates referred to the PLC selected.
Example:
ALLEN-BRADLEY Ethernet
Backplane=1
Slot = 0 (logic controller)
Path =[Backplane],[Slot]=1,0
37
Part
AVEBus
AVEBus
5.1
Introduction
39
They are also already available in the Library, in order to allow to build a working application (like
in the figure below) in few time.
To build applications with AVE devices, use Application Builder (accessible from Project
Manager).
40
Protocols Guide
Set the "Parameters of functions called from Templates" and the "Gate name prefix" as reported
in the picture above.
5.2
Protocol configuration
COM port: COM port number associated to the BSA-RS232 or BSA-USB adapter.
Query pause [ms]: wait time between two devices sampling. Expressed in milliseconds, must
be >= 100 ms.
Continue scanning: if this checkbox is enabled then all the AVE devices present in the
application will be scanned every "Scan frequency" time. With this flag enabled, it is possible to
monitor continuously the bus status and trap device or bus failure.
AVEBus
41
Scan frequency [ms]: in case of "Continue scanning" enabled, this parameter specify the
sample frequency of each device.
Valid data timeout [ms]: in case of "Continue scanning" enabled, this parameter tell to the
software to consider the data invalid if it is not refreshed between "Valid data timeout"
milliseconds.This parameter must be greater than "Scan frequency" parameter otherwise you
can receive a wrong communication error status from the driver. Note that if you have a
lot of device to scan, you may have to increase "Valid data timeout" because the
complete scanning time may be greater than "Scan frequency" parameter.
Part
VI
6.1
Introduction
Communication protocol for Data Stream (CR Magnetics) devices.
Supported devices:
Multifunction Digital Transducer: CRD5110,CRD5150,CRD5170
Digital Current Transducer: CRD4110,CRD4150,CRD4170
Digital Voltage Transducer: CRD4510,CRD4550,CRD4570
Use Application Builder tool to build an application with the devices above.
6.2
Protocol configuration
43
Part
VII
DECOM - CONTREX
DECOM - CONTREX
7.1
Introduction
45
7.2
Data address
XXX
decimal value
XXX
decimal value
XXX
decimal value
XXX
decimal value
Gate read
Yes
Gate write
Yes
Read block
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Note:
It is a good rule to read all gates as a unique block.
7.3
Protocol configuration
46
Protocols Guide
Stop bits: stop bits.
Data bits: number of bits.
Timeout [ms]: timeout (milliseconds) before answer message.
Query pause [ms]: timout between two request messages.
Part
VIII
48
Protocols Guide
8.1
Read gate
Yes
Write gate
Yes
Read block
No
Note:
It is not possible to have blocks of numeric gates.
8.2
Read gate
Yes
Write gate
Yes
Read block
No
Note:
It is not possible to have blocks of digital gates.
8.3
Read gate
Yes
Write gate
Yes
Read block
No
Note:
It is not possible to have blocks of string gates.
8.4
Protocol configuration
Parity: parity.
49
Part
IX
EV2001 (Bilanciai)
EV2001 (Bilanciai)
9.1
Introduction
Communication protocols for EV2001 (Bilanciai) scales.
9.2
9.3
Protocol configuration
51
Part
GEFRAN - CENCAL
10
GEFRAN - CENCAL
10.1
Introduction
53
10.2
Number of bytes
Read gate
Write gate
Read block
CC
Yes
Yes
Yes
(Hex value)
(decimal value)
CCCC
Yes
Yes
Yes
(Hex value)
(Decimal value)
Note:
A block of numeric gates must be made only by gates with consecutive Function code.
10.3
Protocol configuration
Part
XI
IDEC IZUMI FA
11
IDEC IZUMI FA
11.1
Introduction
55
11.2
CT
CC
PT
PC
10T
DR
EDR
Description
TIMER
(only 14 less
significant bit)
COUNTER
(only 14 less
significat bit)
COMPLETE TIMER
(16 bit)
COMPLETE
COUNTER
(16 bit)
PRESET TIMER
PRESET
COUNTER
10 ms TIMER
COUNTER
DATA REGISTER
EXTENDED DATA
REGISTER
Address
XX
00...79
Gate read
Yes
Gate write
No
Block read
No
XX
00...47
Yes
No
No
XX
00...79
XX
00...47
Yes
No
No
Yes
No
No
XX
00...79
XX
00...47
XXXX
1100...1179
XXX
800...899
XXXX
1500...1799
Yes
Yes
No
Yes
Yes
No
Yes
No
No
Yes
Yes
No
Yes
Yes
No
Note:
This protocol does not allow reading or writing of blocks of numeric gates.
11.3
Description
INPUT
OUTPUT
IR
INTERNAL
RELAY
EXPANS.
INPUT
EXPANS.
EI
EO
Word address
XX
00...15
XX
20...35
XX
40...71
XXX
200...215
XXX
Bit address
X
0...7
X
0...7
X
0...7
X
0...7
X
Gate read
Yes
Gate write
Yes
Block read
No
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
56
Protocols Guide
EIR
SFR
OUTPUT
EXPANS.
INTERNAL
RELAY
SHIFT
REGISTER
220...235
XXX
240...271
0...7
X
0...7
XXX
000...127
Yes
Yes
No
Yes
Yes
No
Note:
This protocol does not allow reading or writing of blocks of digital gates.
11.4
Protocol configuration
Parity: parity.
Part
XII
58
Protocols Guide
12
12.1
Introduction
This protocol is used for communication with Klockner Moeller PLCs : PS32, PS306,
PS316-CPU-223, PS416-CPU-223, PS416-CPU-400.
Communication between PC and PLC is performed via the standard PC serial link but requires a
RS232/RS485 converter (Converter Klockner Moeller UM 1.2 is raccomanded); only one device
can be connected on the serial link
12.2
Description
Address
Gate read
Gate write
Block read
IW
WORD DIGITAL
INPUTS (16 bit)
XX
Yes
No
Yes
QW
WORD DIGITAL
OUTPUTS (16 bit)
XX
Yes
Yes
Yes
MW
WORD MERKER
(16 bit)
XXXX
Yes
Yes
Yes
IB
BYTE DIGITAL
INPUTS (8 bit)
XX+".0"
Yes
No
Yes
BYTE DIGITAL
INPUTS (8 bit)
XX+".8"
Yes
No
Yes
BYTE DIGITAL
OUTPUTS (8 bit)
XX+".0"
Yes
Yes
Yes
BYTE DIGITAL
OUTPUTS (8 bit)
XX+".8"
Yes
Yes
Yes
MB
BYTE MERKER (8
bit)
XXXX+".0"
Yes
Yes
Yes
MB
BYTE MERKER (8
bit)
XXXX+".8"
Yes
Yes
Yes
IB
QB
QB
0...7
8...15
0...7
8...15
0...7
8...15
Description
Address
Gate read
Gate write
Block read
MB
BYTE MERKER (8
bit)
XXXX
Yes
Yes
Yes
59
Note:
A block can be made of a maximum of 32 WORD type gates or 64 BYTE type gates
A block of numeric gates must have only gates with the same function and sequential address.
Example of valid numeric gates block
IW01
IW02
IW03
IW04
IW05
In case of PS32, PS306, PS316-CPU-223, PS416-CPU-223 a block of numeric gates with BYTE
format must be made of gates with the same Function and sequential Address with alternate 0
and 8.
Example of valid numeric
gates block
IB00.0
IB00.8
IB01.0
IB01.8
IB02.0
IB02.8
12.3
Description
INPUT
OUTPUT
MERKER
Word address
XX
XX
XX
Bit address
XX
XX
XX
Gate read
Yes
Yes
Yes
Gate write
Yes
Yes
Yes
Block read
Yes
Yes
Yes
Gate write
Yes
Block read
Yes
Description
MERKER
Byte address
XXXX
Bit address
X
Gate read
Yes
Note:
A block can be made by a maximum of 64 bytes, but this doesn't mean that the maximum number
of digital gates is 64. Let us group in a block the following digital gates: I00.00, I00.01 , I00.03 ,
I00.04; these 4 gates take the space of only one byte, so other 63 bytes are available
A block is defined as a number of sequential bytes in the PLC: so digital gates which are grouped
in a block must refer to the same byte or to the sequential.
All digital gates of a block must have the same function.
Example of valid block
I00.00
I00.01
I00.02
I00.09
60
Protocols Guide
I00.15
I01.15
I01.14
I02.00
I02.09
I03.07
I03.12
12.4
I05.14
I06.03
I06.04
I06.05
I06.06
I06.07
I06.09
Protocol configuration
Part
XIII
62
Protocols Guide
13
13.1
Introduction
This protocol is used for communication with Klockner Moeller PLCs PS4-141-MM1,
PS4-151-MM1, PS4-201-MM1, PS4-341-MM1.
Communication between PC and PLC is performed via the standard PC RS232 serial link; in case
of cable lenght greater then 10 meters a RS232/RS422 converter is required; only one device can
be connected on the serial link
Data are dinamically allocated inside the PLC according to the number of merker byte declared
during PLC programming. The first thing done by the driver is to build a map of data addresses; if
data in the PLC are reallocated, it is necessary to restart the sotfware to allow the driver to update
the address map.
13.2
Description
WORD MERKER
(16 bit)
MB
BYTE MERKER (8
bit)
Address
XXXXX
(only even
numbers)
XXXXX
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
Note:
A block can be made of a maximum of 32 WORD type gates or 64 BYTE type gates
A block of numeric gates must have only gates with the same function and sequential address.
Example of valid block
MW00000
MW00002
MW00004
MW00006
MW00008
13.3
Description
MERKER
Byte address
XXXXX
Bit address
X
0...7
Gate read
Yes
Gate write
Yes
Block read
Yes
Note:
A block can be made by a maximum of 64 bytes, but this doesn't mean that the maximum number
of digital gates is 64. Let us group in a block the following digital gates: M00000.0, M00000.1 ,
M00000.3 , M00000.4; these 4 gates take the space of only one byte, so other 63 bytes are
63
available
A block is defined as a number of sequential bytes in the PLC: so digital gates which are grouped
in a block must refer to the same byte or to the sequential one.
Example of valid block
M00000.0
M00000.1
M00000.2
M00000.4
M00000.5
M00001.5
M00001.6
M00002.0
M00002.1
M00003.3
M00004.4
13.4
Protocol configuration
Part
XIV
14
14.1
Introduction
65
Protocol designed to allow communication with building automation devices connected through
KNX bus.
KNX bus interfacing requires a serial or USB BCU (Bus Coupling Unit) or a Ethernet port to
connect PC to a KNXnet/IP router. Supervisor interfacing is the same as ETS.
KNX protocol requires Falcon Library, the official way to interface a Windows PC to KNX bus. To
run this protocol, you need to acquire and install Falcon Library.
Falcon Library (runtime version) can be downloaded from KNX official site (
http://www.knx.org/knx-tools/falcon/downloads/). Run setup and follow on-screen instruction to
install Falcon Library. If you intend to install Falcon Library on outdated operative systems, please
note that it requires .NET Framework 2.0 and Windows Installer 3.1. Often these requirements are
already installed, but if you need them, please locate download links on the same web page, at
the bottom; alternatively you can obtain them using Windows Update or Microsoft Update.
Falcon Library requires also a license. License must be purchased from KNX Association (
http://www.knx.org/); choose one of Falcon Library licenses on the basis of your needs. Once
obtained License Key file you can unlock Falcon Library using procedure described here.
Unlicensed Falcon Library run in demo mode for 5 minutes in IP connections and 30 minutes in
USB or RS232 connections. ETS license is not valid as Falcon Library license.
Other Falcon Library HW/SW requirements can prevent use of this communication protocol on
some machines. For example Falcon Library version 1.8 can be run only on the following
operative systems:
- Microsoft Windows 2000
- Microsoft Windows XP (only 32 bit versions)
- Microsoft Windows Vista (only 32 bit versions)
- Microsoft Windows 7 (only 32 bit versions).
List of all requirements is available on KNX web site.
KNX devices supervision is based on group addresses; group addresses must be defined and
downloaded on the system using ETS. So you can read and write group addresses linking it to
gates. Furthermore you can set listening group addresses: protocol monitors the bus, whenever
some one read, write or transmit one of these group addresses it captures the value and set the
linked gate value.
Please note that you can only read, write and listen only devices datapoints linked in some of
system group addresses. In addition manufacturers can prevent reading or writing some
datapoints even if they are linked to group addresses. For more details, refer to KNX
specifications and devices reference manuals.
KNX protocol is multi-master; any device must not abuse the bus usage. So avoid frequent
reading of several gates, instead design your system in the manner that you can read once (gate
read only at startup) and then stay listening.
14.2
66
Protocols Guide
a read group address.
WGA is the group address written synchronously on the bus (PC sets the value on the bus). WGA
must be a writeable group address; a gate may not have a write group address.
LGA1, LGA2, ... are the listening group addresses. When one of these group address passes
through the bus, value is captured and becomes the gate value. This is due to the multi-master
architecture of KNX protocol: each device can read, write or transmit group addresses (e.g. a light
switch can write the value of a group address, a room sensor can transmit on the bus the
changed value of temperature). A gate may have no listening group address and can be linked to
a maximum of eight group addresses. Different gates can listen to same group addresses.
67
Following table lists Datapoint Type supported for numeric gates. Reference of this table is
chapter 3.7.2 v1.5.00 of KNX Handbook; this part of official documentation is available in
Download section of KNX web site (http://www.knx.org/downloads-support/downloads/).
KNX standard is evolving and often are added new Datapoint Types. So you can correctly
interface with a datapoint (group address) even if you can not find his type in the 3rd column of
the table.
Datapoint Type
main number
(type)
Datapoint Type
format
Supported
Datapoint Types
Notes
B1
Reading and
listening: gate
value is set to 1 if
received 1, 0
otherwise.
Writing: 1 is
written on the bus
if least significant
bit of gate is 1, 0
otherwise
B2
Reading and
listening: gate
value is set
according to the
two received bits
(bit 0 of gate v,
bit 1 c).
Writing: the two
least significant
bits of the gate are
written on the bus (
v bit 0 of gate, c
bit 1).
B1U3
3.007, 3.008
Reading and
listening: gate
value is set
according to the
four received bits
(bit 0 ... bit 2 of the
gate step-code,
bit 3 c).
Writing: the four
least significant
bits of the gate are
written on the bus (
step-code bit 0
... bit 2 of the
gate, c bit 3).
A8
4.001, 4.002
Reading and
68
Protocols Guide
Datapoint Type
main number
(type)
Datapoint Type
format
Supported
Datapoint Types
Character set
Notes
listening: gate
value is set
according
ISO-8859-1 code
of received
character.
Writing: the eight
least significant
bits of the gate are
written on the bus.
If you are writing a
4.001 Datapoint
Type, pay attention
not to use values
bigger than 127.
U8
8-bit Unsigned value
5.001,
5.003 ... 5.006,
5.010
Reading and
listening: gate
value is set
according to
received value. No
automatic scaling
is provided: value
is saved always as
raw byte value
(from 0 to 255). If
you need scaling
(e.g. for 5.001 and
5.003 Datapoint
Type) please set
conversion data in
gate configuration.
Writing: the eight
least significant
bits of the gate are
written on the bus.
No range check is
provided; if the
gate value is out of
range (< 0 or >
255) writing results
may be
unpredictable.
V8
6.001, 6.010
Reading and
listening: gate
value is set
according to
received value.
Writing: gate
Datapoint Type
format
Supported
Datapoint Types
69
Notes
value is written on
the bus. Out of
range values (<
-128 or > 127)
generate writing
error and the gate
is not written.
7
U16
2-octet Unsigned
value
7.001, 7.002,
7.005, 7.007,
7.010 ... 7.013
Reading and
listening: gate
value is set
according to
received value.
Writing: the
sixteen least
significant bits of
the gate are
written on the bus.
No range check is
provided; if the
gate value is out of
range (< 0 or >
65535) writing
results may be
unpredictable.
V16
2-octet Signed value
8.001, 8.002,
8.005, 8.007,
8.010, 8.011
Reading and
listening: gate
value is set
according to
received value. No
automatic scaling
is provided: value
is saved always as
raw word value
(from -32768 to
32767). If you
need scaling (e.g.
for 8.010 Datapoint
Type) please set
conversion data in
gate configuration.
Writing: gate
value is written on
the bus. Out of
range values (<
-32768 or >
32767) generate
writing error and
the gate is not
70
Protocols Guide
Datapoint Type
main number
(type)
Datapoint Type
format
Supported
Datapoint Types
Notes
written.
9
F16
2-octet Float value
Reading and
listening: gate
value is set
according to
received value.
Writing: gate
value is written on
the bus. Out of
range values (<
-671088.64 or >
670433.28)
generate writing
error and the gate
is not written.
10
N3U5r2U6r2U6
Time
10.001
Reading and
listening: gate
value is set
according to
received value.
Received data is
roughly copied in
the three least
significant bytes of
the gate as
described in KNX
documentation.
Writing: gate
value is written on
the bus. Only the
three least
significant bytes of
the gate are
transmitted,
reserved bits are
reset.
11
r3U5r4U4r1U7
Date
11.001
Reading and
listening: gate
value is set
according to
received value.
Received data is
roughly copied in
the three least
significant bytes of
the gate as
described in KNX
Datapoint Type
format
Supported
Datapoint Types
71
Notes
documentation.
Writing: gate
value is written on
the bus. Only the
three least
significant bytes of
the gate are
transmitted,
reserved bits are
reset.
12
U32
4-octet Unsigned
value
12.001
Reading and
listening: gate
value is set
according to
received value.
Writing: gate
value is written on
the bus.
13
V32
4-octet Signed value
13.001,
13.010 ... 13.015
Reading and
listening: gate
value is set
according to
received value.
Writing: gate
value is written on
the bus.
14
F32
4-octet Float value
Reading and
listening: gate
value is set
according to
received value.
Writing: gate
value is written on
the bus.
17
r2U6
Scene number
17.001
Reading and
listening: gate
value is set
according to
received value.
Received data is
roughly copied in
the least significant
byte of the gate as
described in KNX
documentation.
72
Protocols Guide
Datapoint Type
main number
(type)
Datapoint Type
format
Supported
Datapoint Types
Notes
Writing: gate
value is written on
the bus. Only the
least significant
byte of the gate is
transmitted,
reserved bits are
reset.
18
B1r1U6
Scene control
18.001
Reading and
listening: gate
value is set
according to
received value.
Received data is
roughly copied in
the least significant
byte of the gate as
described in KNX
documentation.
Writing: gate
value is written on
the bus. Only the
least significant
byte of the gate is
transmitted,
reserved bits are
reset.
20
N8
Reading and
listening: gate
value is set
according to
received value.
Writing: the eight
least significant
bits of the gate are
written on the bus.
No value check is
provided; out of
range or restricted
values are not
rejected.
21
B8
21.001, 21.002
Reading and
listening: gate
value is set
according to
received value.
Writing: the eight
Datapoint Type
format
Supported
Datapoint Types
73
Notes
least significant
bits of the gate are
written on the bus.
No value check is
provided; out of
range or restricted
values are not
rejected.
23
N2
Reading and
listening: gate
value is set
according to the
two received bits;
they are saved in
the two least
significant bits of
the gate.
Writing: the two
least significant
bits of the gate are
written on the bus
26
r1B1U6
Scene control
26.001
Reading and
listening: gate
value is set
according to
received value.
Received data is
roughly copied in
the least significant
byte of the gate as
described in KNX
documentation.
Writing: gate
value is written on
the bus. Only the
least significant
byte of the gate is
transmitted,
reserved bits are
reset.
Examples
Address field of the gate
Description
1/1/12;;;1
74
Protocols Guide
Address field of the gate
Description
Listening group addresses (LGA): none
KNX type (type): 1 (B1)
1/2/7;1/2/7;;5
1/2/7;;1/2/7;5
1/2/7;1/2/8;1/2/7,1/2/9;9
;1/2/8;;1
14.3
75
RGA;WGA;LGA1,LGA2,...;type
where
- RGA, WGA, LGA1, LGA2, ... are read, write and listening group address described above;
none is mandatory, but you need to specify almost one of the three. Group addresses can
be the same or can be different (one gate can read from a group address, write to a
different group address and listen to different too group addresses). RGA, WGA and LGA
list must be separated by semicolon character (;), each LGA is separated from the next
with a comma character (,). Group addresses must be written in the standard 3-level
representation: main_group/middle_group/sub_group.
- type is the data format of group addresses. It is the main number (Format + Encoding)
of Datapoint Type (see chapter 3.7.2 of KNX Handbook). You can know the type of a
group address (type of datapoint linked to a group address) referring to device
documentation; another way is to see datapoint type in ETS: choose the group address in
the left pane of Group Addresses window, then double click one of the linked datapoints in
the right side; you need only the main number, that is the left part before dot character (.);
in the figure below, type of datapoint is 1 (one).
In the next paragraphs are listed all supported types and some examples of gate address
field syntax.
Datapoint Type
format
Supported
Datapoint Types
Notes
B1
Reading and
listening: gate
value is set
76
Protocols Guide
Datapoint Type
main number
(type)
Datapoint Type
format
Supported
Datapoint Types
Notes
according to
received value.
Writing: gate
value is written on
the bus.
Examples
Address field of the gate
Description
1/3/173;;;1
1/3/173;1/3/173;;1
1/3/173;;1/3/173;1
14.4
77
by the bus becomes the gate value. RGA must be a readable group address; a gate may not have
a read group address.
WGA is the group address written synchronously on the bus (PC sets the value on the bus). WGA
must be a writeable group address; a gate may not have a write group address.
LGA1, LGA2, ... are the listening group addresses. When one of these group address passes
through the bus, value is captured and becomes the gate value. This is due to the multi-master
architecture of KNX protocol: each device can read, write or transmit group addresses (e.g. a light
switch can write the value of a group address, a room sensor can transmit on the bus the
changed value of temperature). A gate may have no listening group address and can be linked to
a maximum of eight group addresses. Different gates can listen to same group addresses.
78
Protocols Guide
Following table lists Datapoint Type supported for string gates. Reference of this table is chapter
3.7.2 v1.5.00 of KNX Handbook; this part of official documentation is available in Download
section of KNX web site (http://www.knx.org/downloads-support/downloads/).
KNX standard is evolving and often are added new Datapoint Types. So you can correctly
interface with a datapoint (group address) even if you can not find his type in the 3rd column of
the table.
Datapoint Type
main number
(type)
Datapoint Type
format
Supported
Datapoint Types
Notes
A8
Character set
4.001, 4.002
Reading and
listening: gate
value is set
according to
received character.
Writing: first
character of gate is
written on the bus.
If you are writing a
4.001 Datapoint
Type, pay attention
not to use
character which
code is bigger than
127.
16
A112
String
16.001, 16.002
Reading and
listening: gate
value is set
according to
received
characters.
Writing: first 14
characters of gate
are written on the
bus. If gate string
length is smaller
than 14, remaining
characters are
reset. If you are
writing a 16.001
Datapoint Type,
pay attention not to
use character
which code is
bigger than 127.
24
A[n]
24.001
Reading and
listening: gate
value is set
according to
received
characters
Datapoint Type
format
Supported
Datapoint Types
79
Notes
(maximum 80
characters).
Writing: gate
string characters
are written on the
bus.
Examples
Address field of the gate
Description
4/12/1;;;4
4/12/1;4/12/1;;16
4/12/1;;4/12/1;16
80
14.5
Protocols Guide
Protocol configuration
Communication interface: choose interface that will be used to communicate with KNX devices.
Listed interfaces are system-defined (same interfaces are available to all KNX software
running on the machine, like ETS). Configure... button allow to create, edit and remove
communication interfaces (it is the same dialog of ETS).
Default priority e Default routing counter: these are parameters used to communicate with
KNX bus. Please use default settings (Low and 6) unless you are aware of change effects.
For a detailed description of these parameters refer to KNX Handbook.
Query pause: this is the minimum time waited between a bus request and the next. Please use a
sensible time; a too short time can cause bus malfunctions.
License key: insert here Falcon Library license acquired from KNX Association. License key can
be obtained from license file downloaded from KNX online shop. Push Get from file...
button and select your license key file; KNX online shop normally provide a .zip file; unzip
it to get the license file (which has .lic extension).
Alternatively you can manual insert your license key. Open your license file with a text
editor (like Notepad) and extract the license key; it is a string like this:
1.000 permanent uncounted VENDOR_STRING="xxxxxxxx" HOSTID=FLEXID=
yyyyyyyy SIGN=zzzzzzzz
Other information about Falcon Library licensing are provided in introduction page.
Create communication error log: if set, during runtime, protocol driver will create an error log
file. To display error log press Errors button (during runtime as well). Error log is useful to
debug projects helping you to find causes of communication errors.
Falcon Library creates and manages other machine-wide log files; they are located in
Program Common Files dir\EIBA sc\Log (normally
C:\Program Files\Common Files\EIBA sc\Log). Please note that these log files
contain entries related to all programs accessing KNX bus (ETS too).
Part
XV
82
Protocols Guide
15
15.1
Introduction
This protocol is used for communication with series FP PLCs
The communication between the PC and the PLCs is through the PC serial interface and requires
a RS232/RS485; up to 32 devices can be connected on the same serial link
15.2
SDF
S
S_L
S_F
K
R0
CX
CY
CR
CL
CT
CC
SCX
SCY
Description
DATA REGISTER
DATA REGISTER
(LONG)
DATA_REGISTER
(FLOAT)
FILE REGISTER
LINK DATA
REGISTER
IX INDEX REGISTER
IY INDEX REGISTER
DATA REGISTER
SET PATTERN
LINK DATA
REGISTER SET
PATTERN
FILE REGISTER SET
PATTERN
TIMER COUNTER
PRESET VALUE
TIMER COUNTER
PRESET VALUE
(LONG)
TIMER COUNTER
PRESET VALUE
(FLOAT)
TIMER COUNTER
ELAPSED VALUE
SYSTEM REGISTER
EXTERNAL INPUT
RELAY WORD
(bit 15...0)
EXTERNAL OUTPUT
RELAY WORD
(bit 15...0)
INTERNAL RELAY
WORD
(bit 15...0)
LINK RELAY WORD
(bit 15...0)
TIMER CONTACT
WORD
(bit 15...0)
COUNTER
CONTACT WORD
(bit 15...0)
EXTERNAL INPUT
RELAY SET DATA
PATTERN
(bit 15...0)
EXTERNAL OUTPUT
RELAY SET DATA
Address
XXXXX
XXXXX
Gate read
Yes
Yes
Gate write
Yes
Yes
Block read
Yes
Yes
XXXXX
Yes
Yes
Yes
XXXXX
XXXXX
Yes
Yes
Yes
Yes
Yes
Yes
XXXXX
Yes
Yes
No
Yes
Yes
Yes
No
No
No
XXXXX
No
Yes
No
XXXXX
No
Yes
No
XXXX
Yes
Yes
Yes
XXXX
Yes
Yes
Yes
XXXX
Yes
Yes
Yes
XXXX
Yes
Yes
Yes
XXX
XXXX
Yes
Yes
Yes
Yes
Yes
Yes
XXXX
Yes
Yes
Yes
XXXX
Yes
Yes
Yes
XXXX
Yes
Yes
Yes
XXXX
Yes
Yes
Yes
XXXX
Yes
Yes
Yes
XXXX
No
Yes
No
XXXX
No
Yes
No
SCR
SCL
PATTERN
(bit 15...0)
INTERNAL RELAY
SET DATA PATTERN
(bit 15...0)
LINK RELAY SET
DATA PATTERN
(bit 15...0)
83
XXXX
No
Yes
No
XXXX
No
Yes
No
Note:
A block of numeric gates must be made of gates with the same Function and sequential Address.
Example of valid block
D00003
D00004
D00005
D00006
D00007
Index registers IX,IY can be grouped in a block only if declared sequentially as: IX,IY.
Example of valid block
IX
IY
15.3
Description
EXTERNAL
INPUT RELAY
Word address
XXX
(decimal value)
Bit address
X
(Hexadecimal
value of the bit)
X
(Hexadecimal
value of the bit)
X
(Hexadecimal
value of the bit)
Gate read
Yes
Gate write
Yes
Block read
Yes
EXTERNAL
OUTPUT RELAY
XXX
(decimal value)
Yes
Yes
Yes
INTERNAL
RELAY
XXX
(decimal value)
Yes
Yes
Yes
LINK RELAY
XXX
(decimal value)
X
(Hexadecimal
value of the bit)
Yes
Yes
Yes
TIMER
CONTACT
XXXX
(decimal value)
Yes
Yes
Yes
COUNTER
CONTACT
XXXX
(decimal value)
Yes
Yes
Yes
Note:
84
Protocols Guide
Digital gates can be grouped in two different types of blocks.
The first type is made of 28 gates with any function and address
Digital gates grouped in a block
X001A
Y002B
R003C
L004D
L004E
T0001
C0002
C0003
The second type is made of a number of gates which is equal or multiple of 16; all gates must
have the same function and sequential address; in case of function X,Y,R,L, the first gate must
have bit address equal.
Example of valid block
X0010
X0011
X0012
X0013
X0014
X0015
X0016
X0017
X0018
X0019
X001A
X001B
X001C
X001D
X001E
X001F
15.4
Description
READ THE STATUS
OF THE
PROGRAMMABLE
CONTROLLER
Gate read
Yes
Gate write
No
Block read
No
15.5
Protocol configuration
Parity: parity.
85
Part
XVI
MITSUBISHI FR-CU03
16
MITSUBISHI FR-CU03
16.1
Introduction
87
This protocol is used for communication with Mitsubishi inverters equipped with computer link unit
FR-CU03.
16.2
Gate address
The gate address must be specified with the following format: LXDDD
Data length(2,4,6
characters)
Link Parameter
Expansion
Function
Read Gate
Write gate
Read Block
DDD
Yes
Yes
No
(0 for parameters
ranging from 0 to
99,
1 for parameters
ranging from 100
to 915)
L
Example: we want to read the parameter Max Frequency limit which corresponds to function 1:
the gate address will be 40001:
4 (Data length = 4 characters) + 0 (Parameter from 0 to 99 ) + 001 (function code for Read Max frequency limit).
16.3
Function provided
Function
Description
Gate type
Read gate
Write gate
Read Block
0...127
Read parameters
Numeric
Yes
No
No
When using this protocol, the read function must be specified in the gate address; in case of gate
write, the software will automatically substitute the read function with the write function.
88
16.4
Protocols Guide
Protocol configuration
Parity: parity.
Part
XVII
90
Protocols Guide
17
17.1
Introduction
Modbus Ascii and Modbus Rtu protocols are used by a large number of devices.
With these two protocols it is necessary to indicate the read function in the address of all gates; in
case of gate write, the supervisor software will automatically substitute the read function with the
write function.
Gate address can be one of the sequent format:
30001 (Function 3 and address 0001) : obsolete format.
3:1
(Function 3 and address 1) : new format.
3h:1h (Function 3 and address 1) : new format.
In hexadecimal format the h char must be lower case.
17.2
Function
Address
Gate read
Gate write
Block read
3 (obsolete)
HOLDING REGISTER
16 bit
XXXX
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
No
Yes
Yes
Yes
3:
3h:
3:16:
3h:10h:
4 (obsolete)
4:
4h:
HOLDING REGISTER
16 bit
HOLDING REGISTER
16 bit
HOLDING REGISTER
16 bit
HOLDING REGISTER
16 bit
INPUT REGISTER 16
bit
INPUT REGISTER 16
bit
INPUT REGISTER 16
bit
EXCEPTION STATUS
33 (obsolete)
HOLDING REGISTER
(0...9999 decimal
XXXXX
(0...65535
decimal
XXXXh
(0...FFFF
Hexadecimal
XXXXX
(0...65535
decimal
XXXXh
(0...FFFF
Hexadecimal
XXXX
(0...9999 decimal
XXXXX
(0...65535
decimal
XXXXh
(0...FFFF
Hexadecimal
XXXX
21h:
36 (obsolete)
HOLDING REGISTER
32 bit (FLOAT)
HOLDING REGISTER
32 bit (FLOAT)
HOLDING REGISTER
32 bit (FLOAT)
91
(0...9999 decimal
XXXXX
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
(0...65535
decimal
XXXXh
(0...FFFF
Hexadecimal
XXXX
(0...9999 decimal
reverse mode
36:
HOLDING REGISTER
32 bit (FLOAT)
reverse mode
24h:
HOLDING REGISTER
32 bit (FLOAT)
reverse mode
44 (obsolete)
44:
2Ch:
46 (obsolete)
INPUT REGISTER 32
bit (FLOAT)
INPUT REGISTER 32
bit (FLOAT)
INPUT REGISTER 32
bit (FLOAT)
INPUT REGISTER 32
bit (FLOAT)
XXXXX
(0...65535
decimal
XXXXh
(0...FFFF
Hexadecimal
XXXX
(0...9999 decimal
XXXXX
(0...65535
decimal
XXXXh
(0...FFFF
Hexadecimal
XXXX
(0...9999 decimal
reverse mode
46:
INPUT REGISTER 32
bit (FLOAT)
reverse mode
2Eh:
INPUT REGISTER 32
bit (FLOAT)
reverse mode
35 (obsolete)
35:
23h:
HOLDING REGISTER
32 bit (LONG)
HOLDING REGISTER
32 bit (LONG)
HOLDING REGISTER
32 bit (LONG)
XXXXX
(0...65535
decimal
XXXXh
(0...FFFF
Hexadecimal
XXXX
(0...9999 decimal
XXXXX
(0...65535
decimal
XXXXh
(0...FFFF
Hexadecimal
92
Protocols Guide
37 (obsolete)
HOLDING REGISTER
32 bit (LONG)
XXXX
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
(0...9999 decimal
reverse mode
37:
HOLDING REGISTER
32 bit (LONG)
XXXXX
(0...65535
decimal
reverse mode
25h:
HOLDING REGISTER
32 bit (LONG)
XXXXh
(0...FFFF
Hexadecimal
reverse mode
45 (obsolete)
45:
2Dh:
INPUT REGISTER 32
bit (LONG)
XXXX
(0...9999 decimal
INPUT REGISTER 32
bit (LONG)
INPUT REGISTER 32
bit (LONG)
XXXXX
(0...65535
decimal
XXXXh
(0...FFFF
Hexadecimal
Exception Status.
Note:
A block of numeric gates must be made only by gates with the same function and sequential
addresses.
Numeric gates that CAN be read as block
Numeric gates thatn CAN NOT be read as
block
3:3
4:3
3:4
4:5
3:5
3:12
3:6
4:13
3:7
4:14
17.3
93
Description
COIL REGISTER
1:
COIL REGISTER
1h:
COIL REGISTER
2 (obsolete)
INPUT STATUS
2:
INPUT STATUS
2h:
INPUT STATUS
Address
XXXX
(0...9999 decimal
XXXXX
(0...65535 decimal
XXXXh
(0...FFFF
Hexadecimal
XXXX
(0...9999 decimal
XXXXX
(0...65535 decimal
XXXXh
(0...FFFF
Hexadecimal
Gate read
Yes
Gate write
Yes
Read Block
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
Note:
A block of digital gates must be made only by gates with the same function and sequential
addresses.
Digital gates that CAN be read as block
Digital gates thatn CAN NOT be read as
block
1:123
2:3
1:124
1:5
1:125
1:12
1:126
1:13
1:127
2:14
17.4
Address
XXXX
(0...9999 decimal
XXXXX
(0...65535 decimal
XXXXh
(0...FFFF Hexadecimal
Gate read
Yes
Gate write
Yes
Block read
No
Yes
Yes
No
Yes
Yes
No
94
Protocols Guide
Example:
These are 3 way to read data string from Holding (read/write) register Modbus address 0001
330001
33:0001
21h:0001h
Function 36 (24h) extract a string from a block of holding register in the following mode:
String Gate Value= HighByte(HoldingRegister 1)+HighByte(HoldingRegister 2) +...+ HighByte
(HoldingRegister N)
Function
36 (obsolete)
36:
24h:
Address
XXXX
(0...9999 decimal
XXXXX
(0...65535 decimal
XXXXh
(0...FFFF Hexadecimal
Gate read
Yes
Gate write
Yes
Block read
No
Yes
Yes
No
Yes
Yes
No
Example:
These are 3 way to read data string from Holding (read/write) register Modbus address 0001
360001
36:0001
24h:0001h
Function 35 (23h) extract a string from a block of holding register in the following mode:
String Gate Value= LowByte(HoldingRegister 1) + HighByte(HoldingRegister 1) +
LowByte(HoldingRegister 2)+ HighByte(HoldingRegister 2) +...+
LowByte(HoldingRegister N)+HighByte(HoldingRegister N)
Function
35 (obsolete)
35:
23h:
Address
XXXX
(0...9999 decimal
XXXXX
(0...65535 decimal
XXXXh
(0...FFFF Hexadecimal
Gate read
Yes
Gate write
Yes
Block read
No
Yes
Yes
No
Yes
Yes
No
Example:
These are 3 way to read data string from Holding (read/write) register Modbus address 0001
350001
35:0001
23h:0001h
Function 37 (25h) extract a string from a block of holding register in the following mode:
String Gate Value= HighByte(HoldingRegister 1) + LowByte(HoldingRegister 1) +
HighByte(HoldingRegister 2)+ LowByte(HoldingRegister 2) +...+
HighByte(HoldingRegister N)+LowByte(HoldingRegister N)
Function
37 (obsolete)
37:
25h:
Address
XXXX
(0...9999 decimal
XXXXX
(0...65535 decimal
XXXXh
(0...FFFF Hexadecimal
Gate read
Yes
Gate write
Yes
Block read
No
Yes
Yes
No
Yes
Yes
No
Example:
These are 3 way to read data string from Holding (read/write) register Modbus address 0001
370001
37:0001
25h:0001h
95
Function 37:0: (25h:0h:) add a string terminator word ( that is 0) during the writing to device
procedure.
Function
37:0:
25h:0h:
Address
XXXXX
(0...65535 decimal
XXXXh
(0...FFFF Hexadecimal
Gate read
Yes
Gate write
Yes
Block read
No
Yes
Yes
No
Example:
37:0:1000
25h:0h:3E8h
Address
XXXX
(0...9999 decimal
XXXXX
(0...65535 decimal
XXXXh
(0...FFFF Hexadecimal
Gate read
Yes
Gate write
No
Block read
No
Yes
No
No
Yes
No
No
Example:
These are 3 way to read data string from Input register Modbus address 0001
430001
43:0001
2Bh:0001h
Function 46 (2Eh) extract a string from a block of input register in the following mode:
String Gate Value= HighByte(InputRegister 1)+HighByte(InputRegister 2) +...+
HighByte(InputRegister N)
Function
46 (obsolete)
46:
2Eh:
Address
XXXX
(0...9999 decimal
XXXXX
(0...65535 decimal
XXXXh
(0...FFFF Hexadecimal
Gate read
Yes
Gate write
No
Block read
No
Yes
No
No
Yes
No
No
Example:
These are 3 way to read data string from Input register Modbus address 0001
460001
46:0001
2Eh:0001h
Function 45 (2Dh) extract a string from a block of input register in the following mode:
String Gate Value= LowByte(InputRegister 1) + HighByte(InputRegister 1) +
LowByte(InputRegister 2)+ HighByte(InputRegister 2) +...+
LowByte(InputRegister N)+HighByte(InputRegister N)
Function
Address
Gate read
Gate write
Block read
96
Protocols Guide
45 (obsolete)
45:
2Dh:
XXXX
(0...9999 decimal
XXXXX
(0...65535 decimal
XXXXh
(0...FFFF Hexadecimal
Yes
No
No
Yes
No
No
Yes
No
No
Example:
These are 3 way to read data string from Input register Modbus address 0001
450001
45:0001
2Dh:0001h
Function 47 (2Fh) extract a string from a block of input register in the following mode:
String Gate Value= HighByte(InputRegister 1) + LowByte(InputRegister 1) +
HighByte(InputRegister 2)+ LowByte(InputRegister 2) +...+
HighByte(InputRegister N)+LowByte(InputRegister N)
Function
47 (obsolete)
47:
2Fh:
Address
XXXX
(0...9999 decimal
XXXXX
(0...65535 decimal
XXXXh
(0...FFFF Hexadecimal
Gate read
Yes
Gate write
No
Block read
No
Yes
No
No
Yes
No
No
Example:
These are 3 way to read data string from Input register Modbus address 0001
470001
47:0001
2Fh:0001h
17.5
Protocol configuration
Parity: parity.
Read timeout [ms]: timeout (milliseconds) for a complete answer (for Read functions).
Write timeout [ms]: timeout (milliseconds) for a complete answer (for Write functions).
Register format: order of the bytes inside the register. Can be:
Standard mode (High Byte + Low Byte)
Reverse mode (Low Byte + High Byte)
MODBUS TCP
97
98
Protocols Guide
Re-connection pause [ms] : pause between close socket and open socket in case of
communication errors.
Use Gateway transparent mode: enable this option if you are using a Gateway that works in
transparent mode
Part
XVIII
100
Protocols Guide
18
ODBC Client
18.1
Introduction
This driver provides an access point to ODBC data sources via ODBC.
ODBC ( Open database connectivity) is a standard method to access DBMS (Data Base
Management System ) .
See "Protocol configuration" section for more details.
18.2
QUERY_x
where x= 1...50
In this first case QUERY_x represents one of the queries defined in the ODBC Client protocol
configuration - "Read - SQL query" Section: it is used to read a value from ODBC data source.
QUERY_x,QUERY_y
where x= 1...50
where y= 1...50
In this second case QUERY_x always represents one of the queries defined in the ODBC Client
protocol configuration - "Read - SQL Query" section: it is used to read a value from ODBC data
source.
Instead QUERY_y represents one of the queries defined in the ODBC Client protocol
configuration - "Write - SQL Query" section: it is used to write a value in the ODBC data source.
QUERY_x[R],QUERY_y
where x= 1...50
where y= 1...50
In this third case QUERY_x[R] represents one of the queries defined in the ODBC Client protocol
configuration - "Read - SQL Query" section: it is used to read a block of values from ODBC data
source.The values are taken as row ([R]) :that means that each value is a different field of the
same record inside the ODBC data source.
Instead QUERY_y represents one of the queries defined in the ODBC Client protocol
configuration - "Write - SQL Query" section: it is used to write a value in the ODBC data source.
ODBC Client
101
Note: if you need to read a block of values, the same QUERY_x must be inserted in the field
address of each gate that compound the block.
18.3
QUERY_x
where x= 1...50
In this first case QUERY_x rappresents one of the queries defined in the ODBC Client protocol
configuration - "Read - SQL query" Section: it is used to read a value from ODBC data source.
QUERY_x,QUERY_y
where x= 1...50
where y= 1...50
In this second case QUERY_x always rappresents one of the queries defined in the ODBC Client
protocol configuration - "Read - SQL Query" section: it is used to read a value from ODBC data
source.
Instead QUERY_y rappresents one of the queries defined in the ODBC Client protocol
configuration - "Write - SQL Query" section: it is used to write a value in the ODBC data source.
QUERY_x[R],QUERY_y
where x= 1...50
where y= 1...50
In this third case QUERY_x[R] represents one of the queries defined in the ODBC Client protocol
configuration - "Read - SQL Query" section: it is used to read a block of values from ODBC data
source.The values are taken as row ([R]) :that means that each value is a different field of the
same record inside the ODBC data source.
102
Protocols Guide
Instead QUERY_y represents one of the queries defined in the ODBC Client protocol
configuration - "Write - SQL Query" section: it is used to write a value in the ODBC data source.
Note: if you need to read a block of values, the same QUERY_x must be inserted in the field
address of each gate that compound the block.
18.4
QUERY_x
where x= 1...50
In this first case QUERY_x rappresents one of the queries defined in the ODBC Client protocol
configuration - "Read - SQL query" Section: it is used to read a value from ODBC data source.
QUERY_x,QUERY_y
where x= 1...50
where y= 1...50
In this second case QUERY_x always rappresents one of the queries defined in the ODBC Client
protocol configuration - "Read - SQL Query" section: it is used to read a value from ODBC data
source.
Instead QUERY_y rappresents one of the queries defined in the ODBC Client protocol
configuration - "Write - SQL Query" section: it is used to write a value in the ODBC data source.
QUERY_x[R],QUERY_y
where x= 1...50
where y= 1...50
In this third case QUERY_x[R] represents one of the queries defined in the ODBC Client protocol
configuration - "Read - SQL Query" section: it is used to read a block of values from ODBC data
source.The values are taken as row ([R]) :that means that each value is a different field of the
same record inside the ODBC data source.
Instead QUERY_y represents one of the queries defined in the ODBC Client protocol
configuration - "Write - SQL Query" section: it is used to write a value in the ODBC data source.
ODBC Client
103
Note: if you need to read a block of values, the same QUERY_x must be inserted in the field
address of each gate that compound the block.
18.5
Protocol configuration
Let's see with an example how to configure the ODBC Client driver.
Suppose that you need to access the following Microsoft Access table for read
and write values:
Figure 1
First of all you need to create a DSN (Data Source Name) to gain access to the
file (Figure 2)
104
Protocols Guide
Figure 2
DSN: DSN must be configured before access ODBC database. Data Source Name (DSN) must be selected
from the available DSN or created as new. To create or modify a DSN push "Configure" button.
System and User DSN are supported, instead File DSN are not supported.
Query Pause[ms]: pause time between two request .
Save Communication error file : if it is checked, a communication error message will be saved in a file on
the disk every time that a communication error happens. A list of the last
100 communication error messages can be viewed (also in Runtime
mode), by cliccking on "Errors" button.
User: user id to access database.
Password: password to access database.
The second thing to do is to specify all the queries that you need to get values from the database
table showed in Figure 1.Each query must be expressed as SQL language format.
For example:
1) How to read a single gate value
If you need to read as numeric gate the "ValueSP" field of record 2 of Table1
(figure 1) you must specify the following query (in the Read- SQL Query
TabSheet ,Figure 3)
QUERY_1: SELECT ValueSP FROM Table1 WHERE Id=2
Using Gate Builder Tool, in the "Address" field of the numeric gate you must
specify the position (inside the Read- SQL Query table) were the query is
specified: in this case "QUERY_1".
2) How to read a block of gate values for Column
Suppose that you need to read as block of numeric gates the "ValueSP" field of
record 1,2 and 3 of Table1 (figure 1): you must specify the following query (in the
ODBC Client
105
Figura 3
Query_1...Query_n: specify the query functions for read values from ODBC data source (expressed as SQL
language format).
The last thing to do is to specify all the queries that you need to set values in the
database table showed in Figure 1.Each query must be expressed as SQL
language format.
106
Protocols Guide
For example:
1) How to write a numeric gate value
If you need to write a numeric gate in the "ValueSP" field of record 1 of Table1
(figure 1) you must specify the following query (in the Write- SQL Query
TabSheet ,Figure 4)
QUERY_1: UPDATE Table1 SET ValueSP=%5.1lf WHERE Id=1
Note that %5.1lf inside QUERY_1 means "Insert a numeric value of 5 characters
and 1 decimal": you can use also different combination like (%6.2lf, %4.0lf and so
on...)
Using "Gate Builder" Tool, in the "Address" field of the gate, you must specify the
position (inside the Write - SQL Query table) were the query is defined: in this
case "QUERY_1". Note that it must be specified after the read query (separated
by a comma) as showed below:
QUERY_3,QUERY_1 (That meas : use QUERY_3 for read and QUERY_1 for
write)
2) How to write a digital gate value
If you need to write a digital gate in the "Status" field of record 1 of Table1 (figure
1) you must specify the following query (in the Write- SQL Query TabSheet
,Figure 4)
QUERY_2: UPDATE Table1 SET Status=%d WHERE Id=1
Note that %d inside QUERY_2 means "Insert an integer value".
In the "Address" field of the gate (in Gate Builder) are valid the same
consideration explained in "How to write a numeric gate value" example.
3) How to write a string gate value
If you need to write a string gate in the "Name" field of record 1 of Table1 (figure
1) you must specify the following query (in the Write- SQL Query TabSheet
,Figure 4)
QUERY_3: UPDATE Table1 SET Name='%s' WHERE Id=1
Note that '%s' inside QUERY_3 means "Insert a string value".
In the "Address" field of the gate (in Gate Builder) are valid the same
consideration explained in "How to write a numeric gate value" example.
ODBC Client
107
Figure 4
Query_1...Query_n: specify the query functions to write values in ODBC data source (expressed as SQL
language format).
Part
XIX
OMRON FINS
19
OMRON FINS
19.1
Introduction
109
OMRON FINS / UDP Ethernet communication protocol for CJ,CS and CV series OMRON
programmable controllers.
Data is sent and received as UDP/IP packets on a Ethernet network.
19.2
Description
CIO area
WR
Work area
HR
AR
TIM
Timer area PV
CNT
Counter area PV
EM0_
EM bank 0
EM1_
EM bank 1
EM2_
EM bank 2
EM3_
EM bank 3
EM4_
EM bank 4
EM5_
EM bank 5
EM6_
EM bank 6
EM7_
EM bank 7
EM8_
EM bank 8
EM9_
EM bank 9
EMA_
EM bank 10
EMB_
EM bank 11
EMC_
EM bank 12
EM
EM current bank
EM
IR
EM current bank
number
Index register
DR
Data register
DM
DM area
Address
XXXX
0000...6143
XXX
000...511
XXX
000...511
XXX
000...447
XXXX
0000...4095
XXXX
0000...4095
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XX
00...15
XX
00...15
XXXXX
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
Yes
110
Protocols Guide
DM_UL_
DM_SL_
DM_FL_
DM area
unsigned long
32 bit
DM area
signed long
32 bit
DM area
Float
32 bit
00000...32767
XXXXX
00000...32767
Yes
Yes
Yes
XXXXX
00000...32767
Yes
Yes
Yes
XXXXX
00000...32767
Yes
Yes
Yes
Address
XXXX
0000...2555
XXX
000...447
XXXX
0000...2047
XXXX
0000...2047
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
XXXXX
00000...32767
XXXXX
00000...32767
Yes
Yes
Yes
Yes
Yes
Yes
XXXXX
00000...32767
Yes
Yes
Yes
XXXXX
00000...32767
Yes
Yes
Yes
OMRON CV Family
Command
CIO
Description
CIO area
AR
TIM
Timer area PV
CNT
Counter area PV
EM0_
EM bank 0
EM1_
EM bank 1
EM2_
EM bank 2
EM3_
EM bank 3
EM4_
EM bank 4
EM5_
EM bank 5
EM6_
EM bank 6
EM7_
EM bank 7
EM
EM current bank
EM
EM current bank
number
DM area
DM
DM_UL_
DM_SL_
DM_FL_
DM area
unsigned long
32 bit
DM area
signed long
32 bit
DM area
Float
32 bit
OMRON FINS
DM00001
DM00002
DM00003
DM00004
DM00005
DM00006
19.3
111
DM00001
DM00003
DM00005
DM00007
DM00008
DM00010
Description
CIO area
Address
XXXX
0000...6143
Work area
XXX
000...511
Holding bit area
XXX
000...511
Auxiliary bit area
XXX
000...447
Timer area PV
XXXX
0000...4095
Counter area PV
XXXX
0000...4095
EM bank 0
XXXXX
00000...32767
EM bank 1
XXXXX
00000...32767
EM bank 2
XXXXX
00000...32767
EM bank 3
XXXXX
00000...32767
EM bank 4
XXXXX
00000...32767
EM bank 5
XXXXX
00000...32767
EM bank 6
XXXXX
00000...32767
EM bank 7
XXXXX
00000...32767
EM bank 8
XXXXX
00000...32767
EM bank 9
XXXXX
00000...32767
EM bank 10
XXXXX
00000...32767
EM bank 11
XXXXX
00000...32767
EM bank 12
XXXXX
00000...32767
DM area
XXXXX
00000...32767
Bit address
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Bit address
XX
00..15
XX
00..15
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
OMRON CV Family
Command
CIO
Description
CIO area
AR
Address
XXXX
0000...2555
XXX
000...447
112
Protocols Guide
TIM
CNT
EM0_
EM1_
EM2_
EM3_
EM4_
EM5_
EM6_
EM7_
DM
Timer area PV
XXXX
0000...2047
Counter area PV
XXXX
0000...2047
EM bank 0
XXXXX
00000...32767
EM bank 1
XXXXX
00000...32767
EM bank 2
XXXXX
00000...32767
EM bank 3
XXXXX
00000...32767
EM bank 4
XXXXX
00000...32767
EM bank 5
XXXXX
00000...32767
EM bank 6
XXXXX
00000...32767
EM bank 7
XXXXX
00000...32767
DM area
XXXXX
00000...32767
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
OMRON FINS
19.4
113
Protocol configuration
114
Protocols Guide
communication error messages can be viewed (also in Runtime mode), by clicking on "Errors"
button.
Part
XX
116
Protocols Guide
20
20.1
Introduction
OMRON FINS frame in Host Link communication protocol for CJ,CS and CV series OMRON
programmable controllers.
Passes Host Link standard limitations: for example it allow to reach DM higher than 9999.
Communication between PC and PLC requires a RS232/RS485 converter.
20.2
Description
CIO area
WR
Work area
HR
AR
TIM
Timer area PV
CNT
Counter area PV
EM0_
EM bank 0
EM1_
EM bank 1
EM2_
EM bank 2
EM3_
EM bank 3
EM4_
EM bank 4
EM5_
EM bank 5
EM6_
EM bank 6
EM7_
EM bank 7
EM8_
EM bank 8
EM9_
EM bank 9
EMA_
EM bank 10
EMB_
EM bank 11
EMC_
EM bank 12
EM
EM current bank
EM
IR
EM current bank
number
Index register
DR
Data register
DM
DM area
Address
XXXX
0000...6143
XXX
000...511
XXX
000...511
XXX
000...447
XXXX
0000...4095
XXXX
0000...4095
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XX
00...15
XX
00...15
XXXXX
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
Yes
DM_SL_
DM_FL_
DM area
unsigned long
32 bit
DM area
signed long
32 bit
DM area
Float
32 bit
00000...32767
XXXXX
00000...32767
117
Yes
Yes
Yes
XXXXX
00000...32767
Yes
Yes
Yes
XXXXX
00000...32767
Yes
Yes
Yes
Address
XXXX
0000...2555
XXX
000...447
XXXX
0000...2047
XXXX
0000...2047
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
XXXXX
00000...32767
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
XXXXX
00000...32767
XXXXX
00000...32767
Yes
Yes
Yes
Yes
Yes
Yes
XXXXX
00000...32767
Yes
Yes
Yes
XXXXX
00000...32767
Yes
Yes
Yes
OMRON CV Family
Command
CIO
Description
CIO area
AR
TIM
Timer area PV
CNT
Counter area PV
EM0_
EM bank 0
EM1_
EM bank 1
EM2_
EM bank 2
EM3_
EM bank 3
EM4_
EM bank 4
EM5_
EM bank 5
EM6_
EM bank 6
EM7_
EM bank 7
EM
EM current bank
EM
EM current bank
number
DM area
DM
DM_UL_
DM_SL_
DM_FL_
DM area
unsigned long
32 bit
DM area
signed long
32 bit
DM area
Float
32 bit
118
Protocols Guide
DM00001
DM00002
DM00003
DM00004
DM00005
DM00006
20.3
DM00001
DM00003
DM00005
DM00007
DM00008
DM00010
Description
CIO area
Address
XXXX
0000...6143
Work area
XXX
000...511
Holding bit area
XXX
000...511
Auxiliary bit area
XXX
000...447
Timer area PV
XXXX
0000...4095
Counter area PV
XXXX
0000...4095
EM bank 0
XXXXX
00000...32767
EM bank 1
XXXXX
00000...32767
EM bank 2
XXXXX
00000...32767
EM bank 3
XXXXX
00000...32767
EM bank 4
XXXXX
00000...32767
EM bank 5
XXXXX
00000...32767
EM bank 6
XXXXX
00000...32767
EM bank 7
XXXXX
00000...32767
EM bank 8
XXXXX
00000...32767
EM bank 9
XXXXX
00000...32767
EM bank 10
XXXXX
00000...32767
EM bank 11
XXXXX
00000...32767
EM bank 12
XXXXX
00000...32767
DM area
XXXXX
00000...32767
Bit address
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Bit address
XX
00..15
XX
00..15
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
OMRON CV Family
Command
CIO
Description
CIO area
AR
Address
XXXX
0000...2555
XXX
000...447
Timer area PV
XXXX
0000...2047
Counter area PV
XXXX
0000...2047
EM bank 0
XXXXX
00000...32767
EM bank 1
XXXXX
00000...32767
EM bank 2
XXXXX
00000...32767
EM bank 3
XXXXX
00000...32767
EM bank 4
XXXXX
00000...32767
EM bank 5
XXXXX
00000...32767
EM bank 6
XXXXX
00000...32767
EM bank 7
XXXXX
00000...32767
DM area
XXXXX
00000...32767
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
XX
00..15
119
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
20.4
Description
DM area
DMR
DM area
(reverse mode)
Address
XXXXX
00000...32767
XXXXX
00000...32767
Gate read
SI
Gate write
SI
Block read
NO
SI
SI
NO
Number of chars to be read corresponding to the "Max dimension" parameter specified in the
GateBuilder string gate definition.
Example: the following are some examples of numeric gates:
DM00011 : Data Memory 00011.
DMR05632 : Data Memory 05632.
120
20.5
Protocols Guide
Protocol configuration
Part
XXI
122
Protocols Guide
21
OMRON SYSMAC
21.1
Introduction
Communication protocol for the following OMRON PLC's:
CQM1,C200H,C200HS,C200HE,C200HG,C200HX,C1000H,C2000H,CVM1, CPM1,CH,CK
CJ1 and CS1.
Communication between PC and PLC requires a RS232/RS485 converter; up to 32 devices can
be connected to the same serial link.
21.2
Descrizione
Indirizzo
Lettura porta
Scrittura porta
Lettura blocco
DM
Data Memory
Yes
Yes
Yes
DM_UL_
Data memory
Unsigned Long
Data memory
Signed Long
Timer Preset Value
XXXX
decimal value
XXXX
decimal value
XXXX
decimal value
XXXX
decimal value
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
Yes
No
Yes
Yes
No
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
DM_SL_
PV
MF
IR
LR
Link Relay
HR
Holding Relay
MS
SC
XXXX
Decimal value of the
status word of 16 I/O
relay
XXXX
Decimal value of the
status word of 16 Link
Relay
XXXX
Decimal value of the
status word of 16
Holding Relay
Note:
The MF function associated to a numeric gate gives back the 32 bit which correspond to error
information of first channel (16 most significant bits) and second channel (16 less significant bits);
this function gives back a text string that can be read using a string gate.
The PV function return a numeric value already converted in BDC format (Binary Cided Decimal).
A block of numeric gates must be made only by gates with the same function and sequential
addresses.
Example of valid block
Example of NOT valid block
OMRON SYSMAC
DM0003
DM0004
DM0005
DM0006
DM0007
21.3
123
DM0003
DM0005
PV0012
DM0013
DM0014
LR
Description
INPUT
OUTPUT
RELAY
LINK RELAY
HR
HOLDING
RELAY
TIMER
COUNTER
STATUS
TC
Word address
XXXX
0000...9999
Bit address
XX
00...15
Gate read
Yes
Gate write
Yes
Block read
Yes
XXXX
0000...9999
XXXX
0000...9999
XXXX
0000...9999
XX
00...15
XX
00...15
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Note:
Digital gates can be grouped to form two different block types.
The first block type is made of IR, LR, HR type gates. A block must be made only by gates with
the same function and the same or the sequential address.
Example of valid block
IR000401
HR000400
IR000401
HR000400
IR000402
HR000401
IR000402
HR000401
IR000403
HR000402
IR000403
HR000402
IR000501
HR000403
IR000801
IR000403
IR000504
HR000404
IR000804
IR000404
IR000505
HR000405
IR000905
IR000405
IR000601
HR000409
IR001001
HR000409
IR000701
HR000410
IR001101
HR000410
IR000804
HR000411
IR001304
HR000411
IR000805
HR000412
IR001305
HR000412
IR000812
HR000413
IR001412
HR000413
The second block type is made of TC type gates. A block must be made only by gates with the
same function and sequential.
Example of valid block
TC0001
TC0002
TC0003
TC0004
TC0005
124
21.4
Protocols Guide
Description
Gate read
Gate write
Block read
MS
READ PLC
OPERATION
Yes
No
No
Note:
If the function MF associated to a string gate gives back the 16 characters following status data;
status data given back by this function can be read using a numeric.
21.5
Protocol configuration
Parity: parity.
Part
XXII
126
Protocols Guide
22
OPC Client
22.1
Introduction
OPC (OLE for Process Control) is an industry standard created in collaboration with a number of
worldwide leading automation hardware and software manufacturers. OPC allows software
components such as software connectors to be combined and enables these components to
intercommunicate with no need of special adaptions.
This OPC Client driver support data access (DA) to OPC servers DA 1.0 and 2.0 .
It can connect to local OPC servers through COM object or to remote OPC servers (in the local
network) trough DCOM object.
In case of remote server, you must ensure that DCOM is properly configured. DCOMCNFG is a
Windows tool that allows users to configure the DCOM settings.Before you can access a COM
component via DCOM, you must provide the authentication credentials of a user who has been
granted permission to access/launch the component.
DA Server is organized in a structure of groups and items that are directly connected to device or
PLC internal variables, so the problem of communication protocol with them is solved by the
specific OPC server. OPC Client communicates with OPC servers always in the same mode
without need to know the specific device or PLC communication protocol.
The first thing to do is to install the OPC server on the computer, and configure it defining
communication parameters and items (devices read or write variables).
The Item full name (usually compound by DeviceName+GroupName+ItemId) does not be more
than 80 chars.
After that open ProjectManager and create a new project, then select
ProjectManager->Configuration->Channel and choose OPC Client protocol and configure it by
selecting the computer and OPC server name to connect to.
At this point open GateBuilder and define all the gates that you want to read and write from OPC
server.
OPC Client
127
The address of each gate is the Item ID defined in the OPC server. You can browse all the
available items in the server by clicking on the button that appear on the right side of the address
field of the gate.
22.2
22.3
22.4
22.5
Protocol configuration
Server node: computer name where is installed the OPC server to connect to.
128
Protocols Guide
Read from DEVICE: data will be read directly from the device.
Read from CACHE: data will be read from the OPC server cache memory.
Part
XXIII
130
Protocols Guide
23
23.1
Introduction
This communication protocol is used by RED LION PAXI devices.
23.2
Gate read
Yes
Gate write
Yes
Block read
No
23.3
Protocol configuration
Parity: parity.
Part
XXIV
132
Protocols Guide
24
SAIA P800
24.1
Introduction
This protocol is used for communication with SAIA PLCs series:
PCD1,PCD2,PCD2.M220,PCD4,PCD6.
Communication between PC and PLC is performed via the standard PC serial link; only one
device can be.
24.2
Description
REGISTER
COUNTER
TIMER
CPU STATUS
DISPLAY
REGISTER
REAL TIME
CLOCK WEEK OF
YEAR
REAL TIME
CLOCK
DAY OF WEEK
REAL TIME
CLOCK
YEAR
REAL TIME
CLOCK
MONTH
REAL TIME
CLOCK
DAY
REAL TIME
CLOCK
HOURS
REAL TIME
CLOCK
MINUTES
REAL TIME
CLOCK
SECONDS
K_WOY
K_DOW
K_YEA
K_MON
K_DAY
K_HOU
K_MIN
K_SEC
Address
XXXX
XXXX
XXXX
X
0...7
Gate read
Yes
Yes
Yes
Yes
Gate write
Yes
Yes
Yes
No
Block read
Yes
Yes
Yes
No
Yes
No
No
No
No
Yes
No
No
Yes
No
No
Yes
No
No
Yes
No
No
Yes
No
No
Yes
No
No
Yes
No
No
Yes
Note:
The gates of the Real Time Clock must always defined as a block and must have the following
sequence: K_WOY, K_DOW, K_YEA, K_MON, K_DAY, K_HOU, K_MIN, K_SEC.
A block can have a maximum of 32 numeric gates
A block of numeric gates (with the exception of the Real Time Clock) must have only gates with
the same function and sequential address.
Example of valid block
R0003
R0004
SAIA P800
R0005
R0006
R0007
24.3
133
S0012
R0013
R0014
Description
FLAG
OUTPUT
INPUT
Bit address
XXXX
XXXX
XXXX
Gate read
Yes
Yes
Yes
Gate write
Yes
No
No
Block read
Yes
Yes
No
Note:
A block can have a maximum of 128 digital gates
A block of digital must have only gates with the same function and sequential bit address.
Example of valid block
F0003
F0004
F0005
F0006
F0007
24.4
24.5
Description
CPU VERSION READ
Protocol configuration
Gate read
Yes
Gate write
No
Block read
No
134
Protocols Guide
Part
XXV
136
Protocols Guide
25
SAIA S-BUS
25.1
Introduction
This protocol is used for communication with SAIA PLCs series:
PCD1,PCD2,PCD2.M220,PCD4,PCD6.
Communication between PC and PLC is performed via the standard PC serial link but requires a
RS232/RS485 converter; up to 255 devices can be connected to the same serial link.
25.2
Description
REGISTER
COUNTER
TIMER
CPU STATUS
DISPLAY
REGISTER
REAL TIME
CLOCK WEEK OF
YEAR
REAL TIME
CLOCK
DAY OF WEEK
REAL TIME
CLOCK
YEAR
REAL TIME
CLOCK
MONTH
REAL TIME
CLOCK
DAY
REAL TIME
CLOCK
HOURS
REAL TIME
CLOCK
MINUTES
REAL TIME
CLOCK
SECONDS
K_WOY
K_DOW
K_YEA
K_MON
K_DAY
K_HOU
K_MIN
K_SEC
Address
XXXX
XXXX
XXXX
X
0...7
Gate read
Yes
Yes
Yes
Yes
Gate write
Yes
Yes
Yes
No
Block read
Yes
Yes
Yes
No
Yes
No
No
No
No
Yes
No
No
Yes
No
No
Yes
No
No
Yes
No
No
Yes
No
No
Yes
No
No
Yes
No
No
Yes
Note:
The gates of the Real Time Clock must always defined as a block and must have the following
sequence: K_WOY, K_DOW, K_YEA, K_MON, K_DAY, K_HOU, K_MIN, K_SEC.
A block can have a maximum of 32 numeric gates
A block of numeric gates (with the exception of the Real Time Clock) must have only gates with
the same function and sequential address.
Example of valid block
R0003
R0004
SAIA S-BUS
R0005
R0006
R0007
25.3
137
S0012
R0013
R0014
Description
FLAG
OUTPUT
INPUT
Bit address
XXXX
XXXX
XXXX
Gate read
Yes
Yes
Yes
Gate write
Yes
No
No
Block read
Yes
Yes
No
Note:
A block can have a maximum of 128 digital gates
A block of digital gates must have only gates with the same function and sequential bit address.
Example of valid block
F0003
F0004
F0005
F0006
F0007
25.4
25.5
Description
CPU VERSION READ
Protocol configuration
Gate read
Yes
Gate write
No
Block read
No
138
Protocols Guide
Training sequence delay [ms] : values of this parameter depend from Baud Rate according
to the following table
Baud rate
Timeout
110
150
300
600
1200
2400
4800
9600
19200
38400
1000
1000
500
500
500
500
500
250
200
200
Part
XXVI
140
Protocols Guide
26
26.1
Introduction
Communication protocol with PLC Siemens series S7 300/400
This driver allows access to the PLC S7 300/400 memory which is made of a number of Data
Blocks which are composed of Data Words; Data Words can be Byte (1 byte), Word (2 byte) or
Float (4 byte).
Communication between PC and PLC requires Siemens interface software PRODAVE MPI mini
V.5.02 and one of the following Siemens hardware devices:
CP5411
CP5511(Plug & Play)
CP5611 (Plug & Play)
MPI-ISA card
MPI-ISA on board
PC adapter.
It's necessary to install on the computer a copy of PRODAVE MPI mini V.5.02 and one of the
communication devices just specified .
When PRODAVE MPI mini is correctly installed, the supervisor software will allow yow to select
SIEMENS_S7 protocol from the protocol list.
With this driver is possible to access PLC S7 300/400 Data Block(DB).
26.2
Data type
BYTE
Data Block
Data Address
Read gate
Yes
FFF
AAAA
000...999
0000...9999
WORD
Yes
W
FFF
AAAA
000...999
0000...9999
BCD
Yes
X
FFF
AAAA
000...999
0000...9999
LONG
Yes
L
FFF
AAAA
000...999
0000...9999
FLOAT
Yes
F
FFF
AAAA
000...999
0000...9999
Example: let us read or write Byte 21 of Data Block 24: the Gate Address is B.024.0021:
B (Byte Format) +. +024 (Data Block) + . + 0021 (Byte Address).
Write gate
Yes
Read Block
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Example: let us read or write Word 100 of Data Block 11: the Gate Address is W.011.0100:
W (Word Format) +. +011 (Data Block) + . + 0100 (Word Address).
Example: let us read or write Float 89 of Data Block 7: the Gate Address is: F.007.0089:
F (Float Format) +. +007 (Data Block) + . + 0089 (Float Address).
141
B.003.0001
W.003.0006
W.003.0007
L.003.0008
W.003.0009
F.003.0010
More benefits can be reached if it is selected "Alignment byte" option; numeric gates blocks can
be compound of gates with different Data Type, same Data Block and with sequential Data Word.
In other words a numeric block can be compound of gates of the different type
(BYTE,WORD,LONG,FLOAT,BCD).
Example of valid block
Option: Alignment byte
W.003.0000
B.003.0002
W.003.0003
L.003.0005
F.003.0009
X.003.0009
X.003.0013
B.003.0017
B.003.0018
W.003.0019
26.3
Data type
BYTE
Read Block
Yes
142
26.4
Protocols Guide
Protocol configuration
Alignment accordingly to variable size: the address of each gate is specified accordingly to the
alignement of the gate type.
PLC Memory
DB9.0
DB9.1
DB9.2
DB9.3
DB9.4
DB9.5
DB9.6
DB9.7
DB9.8
DB9.9
DB9.10
DB9.11
W.009.0001
X.009.0001
W.009.0002
X.009.0002
W.009.0003
X.009.0003
W.009.0004
X.009.0004
W.009.0005
X.009.0005
L.009.0001
F.009.0001
L.009.0002
F.009.0002
143
Alignment byte: the address of each gate is specified accordingly to the alignement of byte.
PLC Memory
DB9.0
DB9.1
DB9.2
DB9.3
DB9.4
DB9.5
DB9.6
DB9.7
DB9.8
DB9.9
DB9.10
DB9.11
W.009.0002
X.009.0002
W.009.0004
X.009.0004
W.009.0006
X.009.0006
W.009.0008
X.009.0008
W.009.0010
X.009.0010
L.009.0004
F.009.0004
L.009.0008
F.009.0008
Part
XXVII
SIEMENS MPI
27
SIEMENS MPI
27.1
Introduction
145
MPI communication protocol for S7-200 S7-300 S7-400 S7-1200 Siemens and VIPA PLC.
Supported communication:
- via COM port using SIEMENS SIMATIC S7 - PC Adapter V5.1 - Code 6ES7 972-0CA23-0XA0
- via USB port connected to a virtual COM using Sielco Sistemi IC 3580-MPIVC
- via USB port using SIEMENS SIMATIC S7 - PC Adapter USB - Code 6ES7 972-0CB20-0XA0
- via ethernet card.
With this driver is possible to access the following PLC data type:
For S7-300 , S7-400 and S7-1200 PLC family:
Data Block
Digital Input
Digital Output
Timer
Counter
For S7-200 PLC family:
V area
Digital Input
Digital Output
Analog Input
Analog output
27.2
DB9.0
B.009.0000
W.009.0000
X.009.0000
L.009.0000
F.009.0000
DB9.1
B.009.0001
DB9.2
B.009.0002
W.009.0002
X.009.0002
146
Protocols Guide
DB9.3
B.009.0003
DB9.4
B.009.0004
DB9.5
B.009.0005
DB9.6
B.009.0006
DB9.7
B.009.0007
DB9.8
B.009.0008
DB9.9
B.009.0009
DB9.10
B.009.0010
DB1.11
B.009.0011
W.009.0004
X.009.0004
W.009.0006
X.009.0006
W.009.0008
X.009.0008
W.009.0010
X.009.0010
L.009.0004
F.009.0004
L.009.0008
F.009.0008
Data format
Data address
Example
E
(Input german
mode)
S7-200/300/400/
1200
E
(Input german
mode)
S7-200/300/400/
1200
I
(Input english
mode)
S7-200/300/400/
1200
I
(Input english
mode)
S7-200/300/400/
1200
A
(Output german
mode)
S7-200/300/400/
1200
A
(Output german
mode)
S7-200/300/400/
1200
Q
(Output english
mode)
S7-200/300/400/
1200
Q
(Output english
mode)
S7-200/300/400/
1200
T
(Timer)
S7-300/400/ 1200
Z
(Counter german
B
(Byte)
XXXXX
Decimal value (0..99999)
Yes
No
Yes
EB2
W
(word)
XXXXX
Decimal value (0..99999)
Yes
No
Yes
EW2
B
(Byte)
XXXXX
Decimal value (0..99999)
Yes
No
Yes
IB2
W
(Word)
XXXXX
Decimal value (0..99999)
Yes
No
Yes
IW2
B
(Byte)
XXXXX
Decimal value (0..99999)
Yes
Yes
Yes
AB2
W
(Word)
XXXXX
Decimal value (0..99999)
Yes
Yes
Yes
AW2
B
(Byte)
XXXXX
Decimal value (0..99999)
Yes
Yes
Yes
QB2
W
(Word)
XXXXX
Decimal value (0..99999)
Yes
Yes
Yes
QW2
XX
Decimal value (0..99)
Yes
No
Yes
T5
XX
Decimal value (0..99)
Yes
No
Yes
Z5
SIEMENS MPI
mode)
S7-300/400/ 1200
C
(Counter english
mode)
S7-300/400/ 1200
AE
(Analog Input
german mode)
S7-200
AI
(Analog Input
english mode)
S7-200
AA
(Analog Input
german mode)
S7-200
AQ
(Analog Input
english mode)
S7-200
V
(V area)
S7-200/1200
V
(V area)
S7-200/1200
V
(V area)
S7-200 /1200
V
(V area)
S7-200/1200
V
(V area)
S7-200/1200
147
XX
Decimal value (0..99)
Yes
No
Yes
C5
W
(Word)
XXXXX
Decimal value (0..99999)
Yes
No
Yes
AEW9
W
(Word)
XXXXX
Decimal value (0..99999)
Yes
No
Yes
AIW9
W
(Word)
XXXXX
Decimal value (0..99999)
Yes
Yes
Yes
AAW7
W
(Word)
XXXXX
Decimal value (0..99999)
Yes
Yes
Yes
AQW7
B
(Byte)
XXXXX
Decimal value (0..65535)
Yes
Yes
Yes
VB10
W
(Word)
XXXXX
Decimal value (0..65535)
Yes
Yes
Yes
VW10
X
(BCD format)
XXXXX
Decimal value (0..65535)
Yes
Yes
Yes
VX10
D
Double (Word)
XXXXX
Decimal value (0..65535)
Yes
Yes
Yes
VD8
F
(Float Word)
XXXXX
Decimal value (0..65535)
Yes
Yes
Yes
VF8
DB number
DB
XXXXX
(1..32767)
XXXXX
(1..32767)
XXXXX
(1..32767)
XXXXX
(1..32767)
XXXXX
(1..32767)
Data
type
DB
DB
DB
DB
DB
DB
DB
DB
DB
Data format
Data address
B
(Byte)
W
(Word)
X
(BCD)
D
(Long)
F
(Float)
XXXXX
(0..65535)
XXXXX
(0..65535)
XXXXX
(0..65535)
XXXXX
(0..65535)
XXXXX
(0..65535)
Gate
read
Yes
Gate
write
Yes
Block
read
Yes
Example
DB2.DBB3
Yes
Yes
Yes
DB2.DBW4
Yes
Yes
Yes
DB2.DBX6
Yes
Yes
Yes
DB2.DBD4
Yes
Yes
Yes
DB2.DBF8
148
Protocols Guide
The block length is related to the gates data format grouped in the block.
Data format
BYTE
WORD
BCD
LONG
FLOAT
TIMER
COUNTER
27.3
Data format
BYTE,WORD,BCD,LONG,FLOAT,TIMER,COUNTER
Byte address
Bit address
Read
Write
Read
Example
SIEMENS MPI
EB
(Input german mode)
IB
(Input english mode)
AB
(Output german mode)
QB
(Output english mode)
VB
(V area)
S7-200 1200
XXXXX
(0..99999)
XXXXX
(0..99999)
XXXXX
(0..99999)
XXXXX
(0..99999)
XXXXX
(0..65535)
.
.
.
.
.
X
(0..7)
X
(0..7)
X
(0..7)
X
(0..7)
X
(0..7)
149
Gate
Yes
Gate
No
Block
Yes
EB3.1
Yes
No
Yes
IB3.1
Yes
Yes
Yes
AB2.4
Yes
Yes
Yes
QB2.4
Yes
Yes
Yes
VB1.7
DB number
XXXX
(1..8191
.
.
Gate write
Yes
Block read
Yes
27.4
Digital gates that CAN NOT Digital gates that CAN NOT
be grouped as block
be grouped as block
EB10.1
DB1.DBB10.0
EB10.1
DB1.DBB10.0
EB10.2
DB1.DBB10.1
EB10.2
DB1.DBB10.1
EB10.3
DB1.DBB10.2
EB10.3
DB1.DBB10.2
EB10.7
DB1.DBB10.3
EB10.7
DB1.DBB12.3
EB11.3
DB1.DBB10.4
EB14.3
DB1.DBB17.4
EB11.4
DB1.DBB11.0
EB17.4
DB1.DBB19.0
EB12.5
DB1.DBB11.1
EB18.5
DB1.DBB19.1
EB12.6
DB1.DBB11.4
EB22.6
DB1.DBB19.4
EB13.0
DB1.DBB11.5
EB23.0
DB1.DBB19.5
150
Protocols Guide
area for S7-300,S7-400 and S7-1200 PLC family.
The maximum size specified for the string gate (in Gate Builder) must be equal to the size
specified for the relative STRING[] variable inside the PLC.
Address of string gates (for S7-300,S7-400 and S7-1200):
27.5
DB
DB number
DB
XXXXX
(1..32767)
Data
type
DB
Data format
Data address
B
(Byte)
XXXXX
(0..65535)
Gate
read
Yes
Gate
write
Yes
Block
read
No
Example
DB2.DBB3
Protocol configuration
PC adapter (COM) selected
COM port: PC serial port (COM) to utilize for communication with PLC.
Baud rate: serial port communication speed.
Bus baud rate: MPI bus communication speed.
PC MPI Address: Siemens PC Adapter MPI address.
Timeout [ms]: timeout (milliseconds) before answer message.
Query pause [ms]: wait time between two message requests.
Plc type: can be S7-200,S7-300,S7-400,S7-1200
Station address: station number (must match the "Device" field in the GateBuilder)
Segment id: segment identifier .
Rack number: rack number.
Slot number: slot number.
SIEMENS MPI
COM port: PC serial port (COM) to utilize for communication with PLC.
Bus baud rate: MPI bus communication speed.
PC MPI Address: Siemens PC Adapter MPI address.
Timeout [ms]: timeout (milliseconds) before answer message.
Query pause [ms]: wait time between two message requests.
Plc type: can be S7-200,S7-300,S7-400,S7-1200
Station address: station number (must match the "Device" field in the GateBuilder)
Segment id: segment identifier .
Rack number: rack number.
Slot number: slot number.
151
152
Protocols Guide
SIEMENS MPI
Port number: PC ethernet card port number to utilize for communication with PLC.
Bus baud rate: MPI bus communication speed.
PC MPI Address: PC Adapter MPI address.
Timeout [ms]: timeout (milliseconds) before answer message.
Query Pause [ms]: wait time between two message requests.
Plc type: can be S7-200,S7-300,S7-400,S7-1200
Station address: station number (must match the "Device" field in the GateBuilder)
Segment id: segment identifier .
Rack number: rack number.
Slot number: slot number.
IP station address : IP address associated to the PLC
153
Part
XXVIII
28
28.1
Introduction
155
28.2
28.3
Data Word
Bit number
Read gate
Write gate
Read block
BBB
WWW
bb
Yes
Yes
Yes
0...999
0...999
0...15
Example: if we want to read or to write bit 10 of Data Word 21 of Data Block 7, the gate address must be as follows:
007,021,10 that is:
007 (Data Block) + , + 021 (Data Word ) + , + 10 (Bit number).
156
28.4
Protocols Guide
Protocol configuration
Part
XXIX
158
Protocols Guide
29
TCP/IP Client
29.1
Introduction
This protocol allows communication between two or more supervisor software stations.It is
possible to sample numeric,digital and string gates directly from a server station instead of a
device.
Client identify gates in the server only by name; the "Address" field of gates in the client
application is not used.
Two stations can work simultaneously as client and server.
Example:
We have two stations: the first one is connected to an external device (device 1) by a Modbus
ASCII protocol and the second one is connected to an external device (device 2) by a Modbus
RTU protocol. If we want to control both devices 1 and 2 by each one of the two stations, we have
to do the following:
-Create an applications whith two serial channels: channel 1 with all gates that refer to device 1
and channel 2 with all gates that refer to device 2.
-Configure the application as RUNTIME with TCP/IP server.
-Install the application on both stations
-Select on station 1 the following communication protocols: Modbus ASCII on channel 1 and
TCP/IP on channel 2 and specify as Server IP Address the IP address of station 2
-Select on station 2 the following communication protocols: TCP/IP on channel 1 and Modbus
RTU on channel 2 and specify as Server IP Address the IP address of station 1
At this point, if we run the supervisor software on both stations, we have the possibility of
controlling both devices from each one of the two stations
TCP/IP Client
29.2
159
Protocol configuration
Server station
On the server station RunTime TCP/IP Server must be selected
160
Protocols Guide
Query pause (ms): timeout between an answer and the next request
TCP/IP Client
Query pause (ms): timeout between an answer and the next request
161
Part
XXX
TUTONDO
30
TUTONDO
30.1
Introduction
163
To build applications with Tutondo devices, use Application Builder (accessible from Project
Manager).
164
Protocols Guide
Set the "Parameters of functions called from Templates" and the "Gate name prefix" as reported
in the picture above.
30.2
Protocol configuration
Note:'Protocol B' must be selected on the MR6005 and MR9005 physical devices.
Part
XXXI
166
Protocols Guide
31
31.1
Introduction
Driver Profibus MPI and S7 for PLC Siemens S7300 e S7400.
This communication protocol needs one of this Applicom board:
PCI1500PFB
PCI1500S7
PC1500PFB
PC1500S7
PCI4000
PC4000
The MPI_S7 protocol will compare in the available protocols list only if the Applicom software
(supplied with the Applicom board) has been installed on the Computer.
Installing procedure
1. Install the supervisor software.
2. Install the Applicom software supplied with the board.
3. Install the Applicom board.
31.2
Data format
B
(Byte)
W
(Word)
D
(Long)
F
(Float)
B
(Byte)
W
(Word)
B
(Byte)
W
(Word)
Data address
XXXXX
(0...99999)
XXXXX
(0...99999)
XXXXX
(0...99999)
XXXXX
(0...99999)
XXXXX
(0...99999)
XXXXX
(0...99999)
XXXXX
(0...99999)
XXXXX
(0...99999)
XX
(0...99)
XX
(0...99)
Gate read
Yes
Gate write
Yes
Read block
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Example:
MB12 : Merker Byte 12
MW5 : Merker Word 5
167
DB number
Data type
Data format
Data address
DB
XXXXX
(1...32767)
XXXXX
(1...32767
XXXXX
(1...32767
XXXXX
(1...32767
DB
DB
DB
DB
B
(Byte)
W
(Word)
D
(Long)
F
(Float)
XXXXX
(0...65535)
XXXXX
(0...65535
XXXXX
(0...65535
XXXXX
(0...65535
DB
DB
DB
Gate
rea
d
Yes
Gate
writ
e
Yes
Block
rea
d
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Example:
DB5.DBB12 : Byte 12 of DB 5.
DB6.DBW5 : Word 5 of DB 6.
DB7.DBD3 : Long (double word) 3 of DB 7.
DB8.DBD11: Float 11 of DB 8.
31.3
MW2
MW4
MW6
MW8
MW10
DB1.DBD0
DB1.DBD4
DB1.DBD8
DB1.DBD12
DB1.DBD16
Byte address
XXXXX
(0...99999)
XXXXX
.
.
.
Bit address
X
(0...7)
X
Read gate
Yes
Write gate
Yes
Read block
Yes
Yes
Yes
Yes
168
Protocols Guide
(Input)
A
(Output)
(0...99999)
XXXXX
(0...99999)
(0...7)
X
(0...7)
Yes
Yes
Yes
Example:
M12.1 : Merker byte 12 Bit 1
E13.7 : Input byte 13 Bit 7
20.3 : Output byte 20 Bit 3
DB
number
XXXXX
(1...8191)
Data type
DBX
(bit)
Byte
address
XXXXX
(0...65535)
.
.
Bit
address
X
(0...7)
Yes
Yes
Example:
DB123.DBX45.6: Bit 6 of Byte 45 of DB 123
31.4
Protocol configuration
From this window is possible to run PCCONF program to make Applicom MPI & S7 protocol
configuration.
To make protocol configuration follow these steps:
With Configuration PCCONF menu item configure the Applicom board installed in the PC:
169
170
Protocols Guide
This window allow to configure all the devices present on the Bus.
The parameters that must be configured are :
Symbolic Name: Device name.
Messaging : protocol messaging:must be Protocol S7,MPI.
Equipment Physical Address (0-126): device address on the Bus.
Data alignment for 16 bits words reading in the DB (1-4 ): must be 4 .
Data alignment for 32 bits words reading in the DB (1-2 ): must be 2 .
At the end, from File menu, select Save & Exit.
Part
XXXII
172
Protocols Guide
32
32.1
Introduction
Driver Profibus PPI for PLC Siemens S7-200.
This communication protocol needs one of the following Applicom boards:
PCI1500PFB
PCI1500S7
PC1500PFB
PC1500S7
PCI4000
PC4000
The MPI_S7 protocol will compare in the available protocols list only if the Applicom software
(supplied with the Applicom board) has been installed on the Computer.
Installing procedure
1. Install the supervisor software.
2. Install the Applicom software supplied with the board.
3. Install the Applicom board.
32.2
Type
M
Format
B
MERKER
WORD
MERKER LONG
SPECIAL
MERKER BYTE
SPECIAL
MERKER
WORD
V BYTE
SM
SM
V WORD
V LONG
INPUT BYTE
INPUT WORD
OUTPUT BYTE
OUTPUT WORD
Address
XXXXX
0...99999
XXXXX
0...99999
XXXXX
0...99999
XXXXX
0...99999
XXXXX
0...99999
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
XXXXX
0...99999
XXXXX
0...99999
XXXXX
0...99999
XXXXX
0...99999
XXXXX
0...99999
XXXXX
0...99999
XXXXX
0...99999
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Example:
173
32.3
Type
M
Special Merker
SM
VB
Input
Output
Byte address
XXXXX
0...99999
XXXXX
0...99999
XXXXX
0...99999
XXXXX
0...99999
XXXXX
0...99999
Bit address
B
0...7
B
0...7
B
0...7
B
0...7
B
0...7
Gate read
Yes
Gate write
Yes
Block read
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Example:
M12.1: Merker byte 12 - Bit 1
I13.7: Input byte 13 - Bit 7
Q20.3: Output byte 20 - Bit 3
174
32.4
Protocols Guide
Protocol configuration
From this window is possible to run PCCONF program to make Applicom PPI S7 protocol
configuration.
To make protocol configuration follow these steps:
With Configuration PCCONF menu item configure the Applicom board installed in the PC:
175
Part
XXXIII
33
33.1
Introduction
177
33.2
VD4
VF4
VD8
VF8
VW2
VW4
VW6
VW8
VW10
Type
V
V
V
Format
B
W
D
Address
0...99999
0...99999
0...99999
Gate read
Yes
Yes
Yes
Gate write
Yes
Yes
Yes
Block read
Yes
Yes
Yes
178
Protocols Guide
V FLOAT
0...99999
Yes
Yes
Yes
INPUT BYTE
INPUT WORD
INPUT DOUBLE
WORD
INPUT FLOAT
I
I
I
B
W
D
0...99999
0...99999
0...99999
Yes
Yes
Yes
No
No
No
Yes
Yes
Yes
0...99999
Yes
No
Yes
OUTPUT BYTE
OUTPUT WORD
OUTPUT
DOUBLE WORD
OUTPUT FLOAT
Q
Q
Q
B
W
D
0...99999
0...99999
0...99999
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
0...99999
Yes
Yes
Yes
MERKER BYTE
MERKER
WORD
MERKER
DOWBLE
WORD
MERKER
FLOAT
M
M
B
W
0...99999
0...99999
Yes
Yes
Yes
Yes
Yes
Yes
0...99999
Yes
Yes
Yes
0...99999
Yes
Yes
Yes
SPECIAL
MERKER BYTE
SPECIAL
MERKER
WORD
SPECIAL
MERKER
DOWBLE
WORD
SPECIAL
MERKER
FLOAT
SM
0...99999
Yes
Yes
Yes
SM
0...99999
Yes
Yes
Yes
SM
0...99999
Yes
Yes
Yes
SM
0...99999
Yes
Yes
Yes
ANALOG INPUT
WORD
ANALOG
OUTPUT WORD
AI
0...99999
Yes
Yes
Yes
AQ
0...99999
Yes
Yes
Yes
Example:
MB12:Merker Byte 12
MW5 :Merker Word 5
MD11:Merker Double word 11
33.3
IB0
VW0
IB0
VW0
IB1
VW2
IB3
VW3
IB2
VD4
IB5
VW5
IB3
VD8
IW4
VW8
IW4
VF12
IW8
VW7
IB6
VB16
IB10
VD8
IB7
VB17
IB12
QB10
179
Type
VB
IB
QB
MB
SMB
Byte address
0...99999
0...99999
0...99999
0...99999
0...99999
Bit address
0..7
0..7
0..7
0..7
0..7
Gate read
Yes
Yes
Yes
Yes
Yes
Gate write
Yes
No
Yes
Yes
Yes
Block read
Yes
Yes
Yes
Yes
Yes
Example:
IB13.7 : Input byte 13 Bit 7
QB20.3 : Output byte 20 Bit 3
IB0.1
VB0.0
IB0.1
VB0.4
IB3.3
VB3.0
IB0.5
VB0.5
IB5.2
VB5.0
IB1.1
VB1.3
IB5.3
VB8.0
IB1.2
VB1.4
IB5.4
VB7.4
IB1.7
VB1.6
IB5.5
VB8.3
IB2.0
VB1.7
IB6.0
VB8.4
Digital gates that CAN NOT Digital gates that CAN NOT
be grouped as block
be grouped as block
180
33.4
Protocols Guide
Protocol configuration
COM port: PC serial port (COM) to utilize for communication with PLC.
Baud rate: serila port communication speed..
PLC PPI address: PLC address.
Timeout [ms]:timeout (milliseconds) for a complete answer.
Query pause [ms]: wait time between two message requests.
Part
XXXIV
182
Protocols Guide
34
34.1
Introduction
ASCII format serial communication protocol.
Whit this protocol is possible to send a string of ASCII characters on serial Channel (COM).
34.2
34.3
Protocol configuration
Parity: parity.
Index
Index
183
-B-
-I-
87
-N87
93
184
Protocols Guide
185