Protocols Guide - English Manual
Protocols Guide - English Manual
Table of Contents
Chapter I ALLEN-BRADLEY DF1 FULL DUPLEX
PROTOCOL FOR PLC3 1
1 Introduction
............................................................................................................................... 1
2 Numeric
...............................................................................................................................
gates 1
3 Digital
...............................................................................................................................
gates 3
4 String
...............................................................................................................................
gates 4
5 Note
............................................................................................................................... 4
6 Configuration
............................................................................................................................... 5
Chapter V AVEBus 23
1 Introduction
............................................................................................................................... 23
2 Configuration
............................................................................................................................... 25
I
II Protocols Guide
Chapter VI BACnet 25
1 Introduction
............................................................................................................................... 25
2 Numeric
...............................................................................................................................
gates 26
3 Digital
...............................................................................................................................
gates 29
4 String
...............................................................................................................................
gates 29
5 Configuration
............................................................................................................................... 29
1 Introduction
............................................................................................................................... 37
2 Numeric
...............................................................................................................................
gates 37
3 Digital
...............................................................................................................................
gates 39
4 String
...............................................................................................................................
gates 39
5 Configuration
............................................................................................................................... 40
III
IV Protocols Guide
4 String
...............................................................................................................................
gates 123
5 Configuration
............................................................................................................................... 123
V
VI Protocols Guide
2 Configuration
............................................................................................................................... 142
In case of gates which belong to file Status, Bit, Integer, BCD, ASCII, the block must be made of
gates which belong to the same type and have the same file number and a sequential word number.
The maximum block length is 119 gates.
Numeric gates block
T.FFF.EEE
T.FFF.EEE+1
T.FFF.EEE+2
T.FFF.EEE+3
T.FFF.EEE+4
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
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 Description T OOOO BB Gate read Gate write Block read
T.OOOO.BB Output file O 0...7777 00...17 Yes Yes Yes
octal octal
T.OOOO.BB Input file I 0...7777 00...17 Yes Yes Yes
octal octal
Fields OOOO and BB must be defined with ocatl numbers
Example:
O.0001.17 : Output – Word 0001 (octal) – Bit 17 (octal).
I.0001.10 : Input - Word 001 (octal) – Bit 10 (octal).
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 BB Gate read Gate write Block read
T.SSSS.Q.B Timer file T 0...9999 0 00...17 Yes Yes Yes
B octal
T.SSSS.Q.B Counter file C 0...9999 0 00...17 Yes Yes Yes
B octal
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).
belong to the same type and have the same file number and the same or a sequential word number.
In case of gates which belong to file Output and Input, the block must be made of gates which belong
to the same type and have the same or a sequential word number.
In case of gates which belong to file Timer and Counter, the block must be made of gates which
belong to the same type, structure and sub-element.
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
length is too high, an error message will be displayed.
Example of valid block Example of valid block Example of NOT valid block Example of NOT valid block
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
1.5 Note
TIMER
Timer Sub Element Description
00 Control bits
01 Preset
02 Acc
00 14 Timing
00 15 Enable
COUNTER
Timer Sub Element Description
00 Control bits
01 Preset
02 Accumulator
00 12 Overflow
00 13 Done
00 14 Count down
00 15 Count up
1.6 Configuration
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.
Specification which applies to gates which belong to file Output and Input :
Address Description Type FFF EEE SS Read gate Write gate Read block
T.FFF.EEE Output file O 0...999 0...277 Yes Ye Yes
octal
T.FFF.EEE Input file I 0...999 0...277 Yes Yes Yes
octal
The format of data is: WORD (2 Byte)
The field EEE must be specified with an octal number
Example:
O.001.010 : Output - File 001 - Element 008 (010 octal).
I.001.021 : Input - File 001 - Element 017 (021 octal).
Specification which applies to gates which belong to file Timer,Counter and Control :
Address Description Type FFF EEE SS Read gate Write gate Read block
T.FFF.EEE.SS Timer file T 0...999 0...999 0...2 Yes Yes Yes
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
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
Specification which applies to gates which belong to file Status,Bit, and Integer :
Address Description T FFF EEEE SS BB Gate read Gate write Block read
T.FFF.EEE.BB Status file S 0...999 0...999 00...15 Yes Yes Yes
T.FFF.EEE.BB Bit file B 0...999 0...999 00...15 Yes Yes Yes
Specification which applies to gates which belong to file Output and Input :
Address Description T FFF EEE SS BB Gate read Gate write Block read
T.FFF.EEE.BB Output file O 0...999 0...277 00...17 Yes Yes Yes
octal octal
T.FFF.EEE.BB Input file I 0...999 0...277 00...17 Yes Yes Yes
octal octal
Fields EEE e BB must be octal numbers
Example:
O.001.010.17 : Output - File 001 - Element 008 (010 octal) – Bit 15 (17 octal).
I.001.021.10 : Input - File 001 - Element 017 (021 octal) – Bit 08 (10 octal).
Address Description T FFF EEE SS BB Gate read Gate write Block read
T.FFF.EEE.BB Float file F 0...999 0...998 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 T FF EEE SS BB Gate read Gate write Block read
T.FFF.EEE.00.BB Timer file T 0...999 0...999 00 0...15 Yes Yes Yes
T.FFF.EEE.00.BB Counter file C 0...999 0...999 00 0...15 Yes Yes Yes
T.FFF.EEE.00.BB Control file R 0...999 0...999 00 0...15 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.
Example of valid block Example of valid block Example of NOT valid block Example of NOT 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
2.5 Note
TIMER
Timer Sub Element Description
00 Control bits
01 Preset
02 Acc
00 14 Timing
00 15 Enable
COUNTER
Timer Sub Element Description
00 Control bits
01 Preset
02 Accumulator
00 12 Overflow
00 13 Done
00 14 Count down
00 15 Count up
CONTROL
Timer Sub Element Description
00 Control bits
01 Length
02 Position
00 09 Inhibit
00 10 Unload
00 11 Error
00 12 Empty
00 13 Done
00 14 Enable unload
00 15 Enable
PID
2.6 Configuration
Specification which applies to gates which belong to file Float reverse mode :
Address Description Type FFF EEE SS Read gate Write gate Read block
Specification which applies to gates which belong to file Timer,Counter and Control :
Address Description Type FFF EEE SS Read gate Write gate Read block
T.FFF.EEE.SS Timer file T 0...999 0...999 0...2 Yes Yes Yes
SS : sub-element
BB : bit number
Specification which applies to gates which belong to file Status,Bit, and Integer :
Address Description T FFF EEEE SS BB Gate read Gate write Block read
T.FFF.EEE.BB Status file S 0...999 0...999 00...15 Yes Yes Yes
T.FFF.EEE.BB Bit file B 0...999 0...999 00...15 Yes Yes Yes
T.FFF.EEE.BB Integer file N 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 Timer,Counter and Control :
Address Description T FF EEE SS BB Gate read Gate write Block read
T.FFF.EEE.00.BB Timer file T 0...999 0...999 00 0...15 Yes Yes Yes
T.FFF.EEE.00.BB Counter file C 0...999 0...999 00 0...15 Yes Yes Yes
T.FFF.EEE.00.BB Control file R 0...999 0...999 00 0...15 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.
Example of valid block Example of valid block Example of NOT valid block Example of NOT 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
3.5 Note
TIMER
Timer Sub Element Description
00 Control bits
01 Preset
02 Acc
00 14 Timing
00 15 Enable
COUNTER
Timer Sub Element Description
00 Control bits
01 Preset
02 Accumulator
00 12 Overflow
00 13 Done
00 14 Count down
00 15 Count up
CONTROL
Timer Sub Element Description
00 Control bits
01 Length
02 Position
00 09 Inhibit
00 10 Unload
00 11 Error
00 12 Empty
00 13 Done
00 14 Enable unload
00 15 Enable
3.6 Configuration
4 ALLEN-BRADLEY Ethernet
4.1 Introduction
This protocol applies to series SLC500 and MicroLogix PLC's via Ethernet.
With:
T : file identifier
FFF : file number
EEE : element number
SS : sub-element number
Specification which applies to gates which belong to file Timer,Counter and Control :
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
Specification which applies to gates which belong to file Status,Bit, and Integer :
Address Description Type FFF EEE BB Read Write Read PLC
gate gate block
T.FFF.EEE.BB Status file S 0...999 0...999 0..15 Yes Yes Yes SLC500
MicroLogix
T.FFF.EEE.BB Bit file B 0...999 0...999 0..15 Yes Yes Yes SLC500
MicroLogix
Specification which applies to gates which belong to file Timer,Counter and Control :
Address Description Type FFF EEE SS BB Read Write Read PLC
gate gate block
T.FFF.EEE.SS.BB Timer file T 0...999 0...999 0..2 0..15 Yes Yes Yes SLC500
MicroLogix
T.FFF.EEE.SS.BB Counter file C 0...999 0...999 0..2 0..15 Yes Yes Yes SLC500
MicroLogix
T.FFF.EEE.SS.BB Control file R 0...999 0...999 0..2 0..15 Yes Yes Yes SLC500
MicroLogix
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
Example of valid block Example of valid block Example of NOT valid block Example of NOT valid block
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
4.5 Note
TIMER
Timer Sub Element Description
00 Control bits
01 Preset
02 Acc
00 14 Timing
00 15 Enable
COUNTER
Timer Sub Element Description
00 Control bits
01 Preset
02 Accumulator
00 12 Overflow
00 13 Done
00 14 Count down
00 15 Count up
CONTROL
Timer Sub Element Description
00 Control bits
01 Length
02 Position
00 09 Inhibit
00 10 Unload
00 11 Error
00 12 Empty
00 13 Done
00 14 Enable unload
00 15 Enable
4.6 Configuration
· 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.
· PLC: PLC model
· Access:PLC access mode (via Ethernet or ControlNet)
· IP address: PLC IP address
· Path: it is expressed as a sequence of "port / link address": identical to the syntax of RSLogix
5000 - Message configuration - Communication path.Port is a way out of a device : it can be a
backplane or a network.Link address is a destination node: if the corresponding port is a
backplane then the link address represents the slot number, else it represents a network
address.
Example:
Backplane=1
Slot = 0 (logic controller)
Path =[Backplane],[Slot]=1,0
5 AVEBus
5.1 Introduction
Communication protocol for AVE devices on Domotic Bus.
Hardware interface PC-AveBus BSA-RS232 o BSA-USB is needed.
Supported devices (family grouped) :
AVE_ABR : receiver for ON/OFF output.
AVE_ABRT: receiver for blinds output.
AVE_ABDI: receiver for analog output.
AVE_ABT: transmitter device.
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).
Set the "Parameters of functions called from Templates" and the "Gate name prefix" as reported in the
picture above.
5.2 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.
· 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.
6 BACnet
6.1 Introduction
BACnet, defined by ASHRAE (American Society of Heating and Air-conditioning Engineers) is a
protocol designed specifically for building automation and control systems such as heating, ventilation,
air conditioning, lighting, access control and fire detection .
The version implemented in this driver is BACnet over IP.
Supported properties:
Let's consider "Simple properties" of an object, those properties whose result can be associated
directly to a single numeric, digital or string gate.
Let's consider "Structured Properties" of an object, those properties whose result can be associated
with a group of numeric, digital or string gates, suitably arranged in sequence among themselves.
Simple properties:
a property of this type can be defined directly in the GateBuilder by specifying the appropriate address
in the gate.
Are supported all properties that the result of which is one of the following Datatypes:
· Boolean
· Unsigned Integer
· Signed Integer (2's complement notation)
· Real (ANSI/IEEE-754 floating point)
· Double (ANSI/IEEE-754 double precision floating point)
· Octet String
· Character String (ANSI_X3_4 and ISO_8859_1 formats are supported)
· Bit String
· Enumerated
· BACnetObjectIdentifier
Structured properties:
as the use of this type of property requires the definition of a group of gates appropriately arranged in
sequence with each other, it is necessary to resort to the use of ApplicationBuilder (*) to introduce
them in the application: in this way it will be automatically created the list of gates with their templates
ready to be used.
The following properties are supported:
· DateList (library object BACnet_Property_DateList)
· EffectivePeriod (library object BACnet_Property_EffectivePeriod)
· ExceptionSchedule (library object BACnet_Property_ExceptionSchedule)
· WeeklySchedule (library object BACnet_Property_WeeklySchedule)
Notes:
* ApplicationBuilder can be called from the menu item "Project-> New-> Project using
ApplicationBuilder ..." of the ProjectManager.
Where:
Host: is the identifying name of the IP address specified in the protocol configuration, through which to
reach the device.
COV: optional parameter that specifies whether the COV (Change Of Value) function must be enabled
for this property.
COV increment: optional parameter that specifies the minimum variation of Present_Value necessary
to cause a COVNotification by the device.
Priority: optional parameter that specifies the write priority level (1...16) (Note 3).
Example 1:
Host1, 1, 2, 0, 85
Where :
Host = Host1
DeviceInstance = 1
ObjectType = 2 (Analog value)
ObjectInstance = 0
Property = 85
COV = not specified
COV increment = not specified
Priorità di scrittura = not specified
Notes:
As the COV is not specified, the property will be cyclically sampled according to the sampling
frequency specified in the gate.
Since no writing priority is specified, the writes in the property will be made without the priority
parameter.
Example 2:
Host1, 1, 2, 0, 85, COV
Where :
Host = Host1
DeviceInstance = 1
ObjectType = 2 (Analog value)
ObjectInstance = 0
Property = 85
COV = COV (enabled)
COV increment = not specified
Priority write = not specified
Notes:
As the COV parameter is specified, the supervisor will send a SubscribeCOV request to the device
specifying a subscription time equal to that set in the protocol configuration window (Lifetime
parameter): if the device accepts the subscription, the supervisor will no longer interrogate it, but will
wait for the latter to send him notifications of variation in the value of the specified property. The COV
increment used is the one specified in the device.
Shortly before the subscription time expires, the supervisor will automatically make a new subscription.
If, however, the device does not support the COV function, the software will cyclically interrogate the
device according to the sampling frequency specified in the gate.
Since no writing priority is specified, the writes in the property will be made without the priority
parameter.
Example 3:
Host1, 1, 2, 0, 85, COV, .6
Where :
Host = Host1
DeviceInstance = 1
ObjectType = 2 (Analog value)
ObjectInstance = 0
Property = 85
COV = COV (enabled)
COV increment = .6
Priority write = non specificato
Notes:
As far as the COV parameter is concerned, the considerations given in Example 2 apply, however the
COVIncrement used is the one specified in the example ie .6.
Since no writing priority is specified, the writes in the property will be made without the priority
parameter.
Example 4:
Host1, 1, 2, 0, 85, COV, .6, 15
Where :
Host = Host1
DeviceInstance = 1
ObjectType = 2 (Analog value)
ObjectInstance = 0
Property = 85
COV = COV (enabled)
COV increment = .6
Priority write = 15
Notes:
During the writing of the value, the specified priority will also be sent, ie 15.
Example 5:
Host1, 1, 2, 0, 85,,, 15
Where :
Host = Host1
DeviceInstance = 1
ObjectType = 2 (Analog value)
ObjectInstance = 0
Property = 85
COV = not enabled
COV increment = not enabled
Priority write = 15
Notes:
The example shows how to specify the address if there is a parameter that follows unspecified
parameters ie ,,15.
Note 1:
A block of gates can only consist of gates with the same Host, DeviceInstance, ObjectType and
ObjectInstance.
For the grouped gates, it is not possible to specify the COV function.
Note 2:
All properties of the following type can be associated with a numeric gate:
Boolean, UnsignedInteger, SignedInteger, Float, Double, BitString, Enumerated.
All properties of the following type can be associated with a digital gate:
Boolean, Enumerated.
All properties of the following type can be associated with a string gate:
Boolean, UnsignedInteger, SignedInteger, Float, Double, OctetString, CharacterString, BitString,
Enumerated, ObjectIdentifier.
Note 3:
It is possible to relinquish writing a value in the specified priority level only through the use of a string
gate having the same address as the numerical gate and specifying an empty string as value.
6.5 Configuration
· Wait answer timeout [ms]: maximum time (expressed in milliseconds) within which a response is
expected from the device (for messages that require an answer).
· Query pause [ms]: time (expressed in milliseconds) of waiting between two requests.
· COV - Subscriber Process Identifier : process identifier assigned to the supervisor during use of
the COV function.
· Save Log file: enabling the saving of the Log communication file (for diagnostic purposes).
· [ Who Is ] - [ I Am ] : if activated, all messages "Who Is" and "I Am" will be recorded in the Log file.
· [ Who Has ] - [ I Have ] : if activated, all messages "Who Has" and "I Have" will be recorded in the
Log file.
· [ ReadProperty ] : if activated, all "ReadProperty" messages will be recorded in the Log file.
· [ WriteProperty ] : if activated, all "WriteProperty" messages will be recorded in the Log file.
· [ COV ] : if activated, all messages related to the VOC functions will be recorded in the Log file.
· Clear file at Runtime startup : if activated, the Log file will be deleted each time the Runtime is
restarted.
· Maximum number of captured messages: maximum number of messages saved in the Log file,
beyond which the saving will be deactivated until the next restart of the Runtime.
Supported devices:
Use Application Builder tool to build an application with the devices above.
7.2 Configuration
Note:
It is not possible to have blocks of numeric gates.
Note:
It is not possible to have blocks of digital gates.
Note:
It is not possible to have blocks of string gates.
8.5 Configuration
9 EV2001 (Bilanciai)
9.1 Introduction
Communication protocols for EV2001 (Bilanciai) scales.
The second numeric gate must have the following address :EV2001_WEIGHT
It contains the net weight .
9.5 Configuration
10 GEFRAN - CENCAL
10.1 Introduction
This communication protocol is used by Gefran devices.
Function code Number of bytes Read gate Write gate Read block
CC N Yes Yes Yes
(Hex value) (decimal value)
CCCC N Yes Yes Yes
(Hex value) (Decimal value)
Example: here are some examples of numeric gates:
6F-2 : Input value (2 bytes) of the Gefran 3300 device.
A6-1 : Control type (1 byte) of the Gefran 3300 device.
8002-1 : Number of cycle to execute of the Gefran 3500 device.
Note:
A block of numeric gates must be made only by gates with consecutive Function code.
10.5 Configuration
11 IDEC IZUMI FA
11.1 Introduction
This protocol is used for communication with IZUMI PLCs type FA
The communication between the PC and the PLCs is through the PC serial interface and requires a
RS232/RS422 converter or a RS232/Optical Fiber converter; up to 255 devices can be connected on
the same serial link
CC COMPLETE XX Yes No No
COUNTER 00...47
(16 bit)
PT PRESET TIMER XX Yes Yes No
00...79
PC PRESET COUNTER XX Yes Yes No
00...47
10T 10 ms TIMER XXXX Yes No No
COUNTER 1100...1179
DR DATA REGISTER XXX Yes Yes No
800...899
EDR EXTENDED DATA XXXX Yes Yes No
REGISTER 1500...1799
Example: the following are some examples of numeric gates:
T1 : Timer 01.
PC47 : Preset counter 47.
10T1100 : 10 msec timer counter 1100.
EDR1500: Extended data register 1500.
Note:
This protocol does not allow reading or writing of blocks of numeric gates.
Function Description Word address Bit address Gate read Gate write Block read
I INPUT XX X Yes Yes No
00...15 0...7
O OUTPUT XX X Yes Yes No
20...35 0...7
IR INTERNAL XX X Yes Yes No
RELAY 40...71 0...7
EI EXPANS. XXX X Yes Yes No
INPUT 200...215 0...7
EO EXPANS. XXX X Yes Yes No
OUTPUT 220...235 0...7
EIR EXPANS. XXX X Yes Yes No
INTERNAL 240...271 0...7
RELAY
SFR SHIFT XXX Yes Yes No
REGISTER 000...127
Example: the following are some examples of digital gates:
I157 : Input word 15 – bit 7.
IR506 : Internal relay word 50 – bit 6.
EIR2503 : Expansion internal relay word 250 – bit 3.
SFR101 : Shift register bit 101.
Note:
This protocol does not allow reading or writing of blocks of digital gates.
11.5 Configuration
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 Example of NOT valid numeric gates block
IW01 IW01
IW02 IW06
IW03 QW07
IW04 QW09
IW05 IW10
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 Example of valid numeric Example of NOT valid Example of NOT valid
gates block gates block numeric gates block numeric gates block
IB00.0 QI00.8 IB00.0 QI00.8
IB00.8 QI00.0 IB01.0 IB00.0
IB01.0 QI01.8 IB01.8 IB01.0
IB01.8 QI01.0 IB03.0 IB01.8
IB02.0 QI02.8 IB04.0 IB02.0
IB02.8 QI02.0 IB04.8 IB03.0
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 Example of NOT valid block
I00.00 I00.00
I00.01 I01.00
I00.02 I02.15
I00.09 I03.12
I00.15 I05.14
I01.15 I06.03
I01.14 I06.04
I02.00 I06.05
I02.09 I06.06
I03.07 I06.07
I03.12 I06.09
12.5 Configuration
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 Example of NOT valid block
MW00000 MW00000
MW00002 MW00003
MW00004 MW00006
MW00006 MW00007
MW00008 MW00010
Function Description Byte address Bit address Gate read Gate write Block read
M MERKER XXXXX X Yes Yes Yes
0...7
Example: here are some examples of digital gates address:
M01234.7 : Merker 01234 bit 7.
M11220.0 : Merker 11220 bit 0.
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 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 Example of NOT valid block
M00000.0 M00000.0
M00000.1 M00000.1
M00000.2 M00001.0
M00000.4 M00002.0
M00000.5 M00003.1
M00001.5 M00005.4
M00001.6 M00006.3
M00002.0 M00006.4
M00002.1 M00006.5
M00003.3 M00006.7
M00004.4 M00009.0
13.5 Configuration
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.
received value.
Writing: gate value is
written on the bus. Out
of range values (< -128
or > 127) generate
writing error and the
gate is not written.
received value.
Writing: gate value is
written on the bus.
Examples
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.
Examples
Address field of the gate Description
1/3/173;;;1 Read group address (RGA): 1/3/173
Write group address (WGA): none
Listening group addresses (LGA): none
KNX type (type): 1 (B1)
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.
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.
Examples
Address field of the gate Description
4/12/1;;;4 Read group address (RGA): 4/12/1
Write group address (WGA): none
14.5 Configuration
15 M-BUS (METER-BUS)
15.1 Introduction
Protocol driver designed to allow communication (read-only) with devices supporting M-Bus, according
to M-Bus Usergroup (http://www.m-bus.com/) specification and European Standard EN13757-2
(physical and link layer) and EN 13757-3 (application layer).
M-Bus interfacing requires a serial, USB or Ethernet adapter (level converter). Using an USB or
Ethernet adapter requires a Virtual COM driver, so PC can access them as a standard COM port.
PC communicates with M-Bus devices sending them REQ_UD2 requests. It supports SND_UD replies
in the following formats:
- Fixed Data Structure: Little endian (Mode 1, CI = 73h) or Big endian (Mode 2, CI = 77h)
- Variable Data Structure with 12 bytes long Data Header and without data encryption: Little
endian (Mode 1, CI = 72h) or Big endian (Mode 2, CI = 76h); multi telegram readout is
supported
Driver supports both primary addressing and secondary addressing (only Identification number). To
use primary address, it is enough to specify it in the Device field of gates configuration. To use
secondary address you should fill table in the protocol configuration dialog.
Writing data to devices is not supported.
Communication between PC and M-Bus devices is based on the REQ_UD2 request and the SND_UD
response which contains values of all device variables. To avoid that for each gate reading bytes are
transmitted vainly and to reduce communication time, it is recommended to group gates in reading
blocks. Moreover because M-Bus communication baud rate is often very low (2400 and 300 bps).
Some M-Bus devices are powered by batteries and to reduce consumption they can restrict bus
access (i.e. they allow a limited number of transaction for each day). In this case it is mandatory using
reading blocks and to reduce frequency of data polling.
Phys Type of Unità Nor unit Multi Phys Type of Unità Nor unit Multi
ical quantity di ma- plier ical quantity di ma- plier
unit misu lized unit misu lized
ra meas ra meas
ure ure
unit unit
00 hh:m hh:m 00h 1 10 MJ/h MJ/h 20h 1
Time
0000 m:ss m:ss 0000
00 D/M/ D/M/ 01h 1 10 10 MJ/h 21h 10
Date
0001 Y Y 0001 MJ/h
00 Wh kWh 02h 10-3 10 100 MJ/h 22h 102
0010 0010 Power MJ/h
00 10 kWh 03h 10-2 10 GJ/h MJ/h 23h 103
0011 mWh 0011
00 100 kWh 04h 10-1 10 10 MJ/h 24h 104
0100 mWh 0100 GJ/h
00 kWh kWh 05h 1 10 100 MJ/h 25h 105
0101 0101 GJ/h
00 10 kWh 06h 10 10 Volume ml l 26h 10-3
Energy
0110 kWh 0110
00 100 kWh 07h 102 10 10 ml l 27h 10-2
0111 kWh 0111
00 MWh kWh 08h 103 10 100 l 28h 10-1
1000 1000 ml
00 10 kWh 09h 104 10 l l 29h 1
1001 MWh 1001
00 100 kWh 0Ah 10-3 10 10 l l 2Ah 10
1010 MWh 1010
00 kJ MJ 0Bh 10-2 10 100 l l 2Bh 102
1011 1011
00 10 kJ MJ 0Ch 10-1 10 m3 l 2Ch 103
1010 1100
00 100 MJ 0Dh 1 10 10 m l 2Dh 104
1011 kJ 1101 3
Energy
00 MJ MJ 0Eh 10 10 100 l 2Eh 105
1110 1110 m3
00 10 MJ 0Fh 102 10 ml/h l/h 2Fh 10-3
1111 MJ 1111 Volume
flow
01 100 MJ 10h 103 11 10 l/h 30h 10-2
- note 1f: only for record 2 (counter 2). It means that record 2 has the same measure unit of
record 1, but it his a historic value. Its value is normalized using record 1 specification.
Primary VIF
VIF Type of Meas Nor uni Multi VIF Type of Meas Nor uni Multi
code quantity ure ma- t plier code quantity ure ma- t plier
unit lized unit lized
meas meas
ure ure
unit unit
e000 mWh Wh 000 10-3 e100 0.1 l/min 004 10-4
0000 0h 0000 ml/h 0h
e000 10 Wh 000 10-2 e100 ml/mi l/min 004 10-3
0001 mWh 1h 0001 n 1h
e000 100 Wh 000 10-1 e100 10 l/min 004 10-2
0010 mWh 2h 0010 ml/m 2h
e000 Wh Wh 000 1 e100 100 l/min 004 10-1
0011 3h 0011 Volume ml/ 3h
Energy
e000 10 Wh 000 10 e100 flow l/min l/min 004 1
0100 Wh 4h 0100 4h
e000 100 Wh 000 102 e100 10 l/min 004 10
0101 Wh 5h 0101 l/mi 5h
e000 kWh Wh 000 103 e100 100 l/min 004 102
0110 6h 0110 l/min 6h
e000 10 Wh 000 104 e100 m3 l/min 004 103
0111 kWh 7h 0111 /min 7h
e000 J kJ 000 10-3 e100 µl/s l/s 004 10-6
1000 8h 1000 8h
e000 10 J kJ 000 10-2 e100 10 l/s 004 10-5
1001 9h 1001 µl/s 9h
e000 100 J kJ 000 10-1 e100 100 l/s 004 10-4
1010 Ah 1010 µl/s Ah
e000 kJ kJ 000 1 e100 ml/s l/s 004 10-3
1011 Bh 1011 Volume Bh
Energy
e000 10 kJ kJ 000 10 e100 flow 10 l/s 004 10-2
1010 Ch 1100 ml/s Ch
e000 100 kJ 000 102 e100 100 l/s 004 10-1
1011 kJ Dh 1101 ml/s Dh
e000 MJ kJ 000 103 e100 l/s l/s 004 1
1110 Eh 1110 Eh
e000 10 kJ 000 104 e100 10 l/s l/s 004 10
1111 MJ Fh 1111 Fh
e001 ml l 001 10-3 e101 g/h kg/h 005 10-3
0000 0h 0000 0h
e001 10 ml l 001 10-2 e101 Mass 10 kg/h 005 10-2
Volume
0001 1h 0001 flow g/h 1h
e001 100 l 001 10-1 e101 100 kg/h 005 10-1
0010 ml 2h 0010 g/h 2h
VIFE Type of Meas Nor uni Multi VIFE Type of Meas Nor uni Multi
code quantity ure ma- t plier code quantity ure ma- t plier
unit lized unit lized
meas meas
ure ure
unit unit
e000 100 MWh 010 10-1 e100 014
0000 kWh 0h 0000 0h
Energy
e000 MWh MWh 010 1 e100 014
0001 1h 0001 1h
e000 kvarh kvarh 010 1 e100 014
0010 Reactive 2h 0010 2h
e000 energy 10 kvarh 010 10 e100 014
0011 kvarh 3h 0011 3h
reserved
e000 010 e100 014
0100 4h 0100 4h
e000 010 e100 014
0101 5h 0101 5h
reserved
e000 010 e100 014
0110 6h 0110 6h
e000 010 e100 014
0111 7h 0111 7h
e000 100 GJ 010 10-1 e100 014
1000 MJ 8h 1000 8h
Energy
e000 GJ GJ 010 1 e100 014
1001 9h 1001 9h
e000 010 e100 014
1010 Ah 1010 Ah
reserved
e000 010 e100 014
1011 Bh 1011 Bh
reserved
e000 100 Mcal 010 10-1 e100 014
1100 kcal Ch 1100 Ch
e000 Mcal Mcal 010 1 e100 014
1101 Dh 1101 Dh
Energy
e000 10 Mcal 010 10 e100 014
1110 Mcal Eh 1110 Eh
e000 100 Mcal 010 102 e100 014
1111 Mcal Fh 1111 Fh
e001 100 m3 011 102 e101 015
Volume reserved
0000 m3 0h 0000 0h
VIFE Type of Meas Nor uni Multi VIFE Type of Meas Nor uni Multi
code quantity ure ma- t plier code quantity ure ma- t plier
unit lized unit lized
meas meas
ure ure
unit unit
e000 0.001 curre 020 10-3 e100 nV V 024 10-9
0000 curr. ncy 0h 0000 0h
e000 0.01 curre 020 10-2 e100 10 V 024 10-8
0001 curr. ncy 1h 0001 nV 1h
Credit
e000 0.1 curre 020 10-1 e100 100 V 024 10-7
0010 curr. ncy 2h 0010 nV 2h
e000 curre curre 020 1 e100 µV V 024 10-6
0011 ncy ncy 3h 0011 3h
Voltage
e000 0.001 curre 020 10-3 e100 10 V 024 10-5
0100 curr. ncy 4h 0100 µV 4h
e000 0.01 curre 020 10-2 e100 100 V 024 10-4
0101 curr. ncy 5h 0101 µV 5h
Debit
e000 0.1 curre 020 10-1 e100 mV V 024 10-3
0110 curr. ncy 6h 0110 6h
e000 curre curre 020 1 e100 10 V 024 10-2
0111 ncy ncy 7h 0111 mV 7h
e000 Access 020 1 e100 100 V 024 10-1
1000 number 8h 1000 mV 8h
e000 020 1 e100 V V 024 1
Medium
1001 9h 1001 9h
e000 Manufac 020 1 e100 10 V V 024 10
1010 turer Ah 1010 Ah
e000 Paramet 020 1 e100 100 V 024 102
1011 er set id Bh 1011 Voltage V Bh
e000 Device 020 1 e100 kV V 024 103
1100 type Ch 1100 Ch
e000 Hardwar 020 1 e100 10 kV V 024 104
1101 e Dh 1101 Dh
version
e000 Firmwar 020 1 e100 100 V 024 105
1110 e Eh 1110 kV Eh
version
e000 Software 020 1 e100 MV V 024 106
1111 version Fh 1111 Fh
e001 Custom 021 1 e101 pA A 025 10-12
0000 er loc. 0h 0000 0h
e001 Custom 021 1 e101 10 A 025 10-11
0001 er 1h 0001 pA 1h
e001 Access 021 1 e101 100 A 025 10-10
0010 code 2h 0010 pA 2h
User
e001 Access 021 1 e101 nA A 025 10-9
0011 code 3h 0011 3h
Op.
e001 Access 021 1 e101 Current 10 A 025 10-8
0100 code 4h 0100 nA 4h
System
Op.
e001 Access 021 1 e101 100 A 025 10-7
0101 code 5h 0101 nA 5h
Dev.
e001 Passwor 021 1 e101 µA A 025 10-6
0110 d 6h 0110 6h
e001 Error 021 1 e101 10 A 025 10-5
0111 flags 7h 0111 µA 7h
e001 Error 021 1 e101 100 A 025 10-4
1000 mask 8h 1000 µA 8h
e001 021 e101 mA A 025 10-3
reserved
1001 9h 1001 9h
e001 Digital 021 1 e101 10 A 025 10-2
1010 Output Ah 1010 mA Ah
e001 Digital 021 1 e101 100 A 025 10-1
1011 Input Bh 1011 mA Bh
Current
e001 Baudrat 021 1 e101 A A 025 1
1100 e Ch 1100 Ch
e001 Respons 021 1 e101 10 A A 025 10
1101 e delay Dh 1101 Dh
e001 021 1 e101 100 A 025 102
Retry
1110 Eh 1110 A Eh
e001 Remote 021 1 e101 kA A 025 103
1111 control Fh 1111 Fh
e010 First 022 1 e110 026 1
0000 storage 0h 0000 0h
Reset
# for
counter
cyclic
storage
change
e011 min s 023 60 e111 027
reserved
0001 1h 0001 1h
e011 h s 023 3600 e111 Day light 027 (note
0010 2h 0010 saving 2h 2v)
Duration
e011 of tariff d s 023 8640 e111 Listenin 027 (note
0011 3h 0 0011 g 3h 3v)
window
manage
ment
e011 s s 023 1 e111 Remaini d s 027 8640
0100 4h 0100 ng 4h 0
battery
life time
e011 min s 023 60 e111 # of 027 1
0101 Period 5h 0101 meter 5h
of tariff stops
e011 h s 023 3600 e111 027
0110 6h 0110 6h
reserved
e011 d s 023 8640 e111 027
0111 7h 0 0111 7h
e011 mont s 023 2629 e111 027
1000 hs 8h 743.8 1000 8h
Period 3
e011 of tariff years s 023 3155 e111 027
1001 9h 6926 1001 9h
VIF Type of Meas Nor uni Multi VIF Type of Meas Nor uni Multi
code quantity ure ma- t plier code quantity ure ma- t plier
unit lized unit lized
mea mea
sure sure
unit unit
e000 BTU kBT 030 10-3 e100 mgal/ gal/ 034 10-3
0000 U 0h 0000 min min 0h
e000 10 kBT 030 10-2 e100 10 gal/ 034 10-2
0001 BTU U 1h 0001 mgal/ min 1h
min
e000 100 kBT 030 10-1 e100 100 gal/ 034 10-1
0010 BTU U 2h 0010 mgal/ min 2h
m
e000 kBTU kBT 030 1 e100 gal/mi gal/ 034 1
0011 U 3h 0011 n min 3h
Volume
e000 Energy 10 kBT 030 10 e100 flow 10 gal/ 034 10
0100 kBTU U 4h 0100 gal/mi min 4h
n
e000 100 kBT 030 102 e100 100 gal/ 034 102
0101 kBTU U 5h 0101 gal/mi min 5h
n
e000 MWh kBT 030 103 e100 kgal/ gal/ 034 103
0110 U 6h 0110 min min 6h
e000 10 kBT 030 104 e100 10 gal/ 034 104
0111 MWh U 7h 0111 kgal/ min 7h
min
e000 J kJ 030 10-3 e100 ul/s l/s 034 10-6
1000 8h 1000 8h
e000 10 J kJ 030 10-2 e100 10 l/s 034 10-5
1001 9h 1001 ul/s 9h
e000 100 J kJ 030 10-1 e100 100 l/s 034 10-4
1010 Ah 1010 ul/s Ah
e000 kJ kJ 030 1 e100 ml/s l/s 034 10-3
1011 Bh 1011 Volume Bh
Energy
e000 10 kJ kJ 030 10 e100 flow 10 l/s 034 10-2
1010 Ch 1100 ml/s Ch
e000 100 kJ 030 102 e100 100 l/s 034 10-1
1011 kJ Dh 1101 ml/s Dh
e000 MJ kJ 030 103 e100 l/s l/s 034 1
1110 Eh 1110 Eh
e000 10 MJ kJ 030 104 e100 10 l/s l/s 034 10
1111 Fh 1111 Fh
e001 mgal gal 031 10-3 e101 g/h kg/h 035 10-3
0000 0h 0000 0h
e001 10 gal 031 10-2 e101 Mass 10 g/h kg/h 035 10-2
Volume
0001 mgal 1h 0001 flow 1h
e001 100 gal 031 10-1 e101 100 kg/h 035 10-1
0010 mgal 2h 0010 g/h 2h
- note 1v: value type depends from record data field. Records of Type F, G and I, when contain
a date and time value, are converted in a format compatible with date/time function of scripting
language (number of seconds from midnight of 01/01/1901). Records of Type I and J, when
contain only time information, are converted in the number of seconds from midnight.
- note 2v: Type K records are not normalized.
- note 3v: Type L records are unsupported and generate error.
Following table shows how record value is normalized in presence of particular Combinable
(Orthogonal) VIF Extension.
Examples
Referring to communication sample reported in the M-Bus Usergroup specification and in EN13757-3
(Annex E):
78 56 34 12 Identification no = 12345678
24 40 01 07 Manufacturer Id = 4024h (PAD in EN 62056-21), version/generation =
1, medium = 7 (water)
55 00 00 00 Access no = 55h = 85, Status = 00h, Signature = 0000h
03 13 15 31 00 Data block (record) 1: Subunit = 0, Storage no = 0, No tariff,
Instantaneous volume, 12565 l (24 bit integer)
DA 02 3B 13 01 Data block (record) 2: Subunit = 0, Storage no = 5, No tariff, Maximum
Header
Device
variables
Record 1
Value
Other info
Record 2
Value
Other info
: :
Record n
Value
Other info
Using string gates, it is possible to retrieve data from header (device variables) and data (value and
other info) from each record (record variables). To identify the wanted record you need to know the
order in which records are arranged in the response message (ask response format to device
manufacturer). For example Record 3 is the 3rd record of the response.
Examples
Referring to communication sample reported in the M-Bus Usergroup specification and in EN13757-3
(Annex E):
78 56 34 12 Identification no = 12345678
24 40 01 07 Manufacturer Id = 4024h (PAD in EN 62056-21), version/generation =
1, medium = 7 (water)
55 00 00 00 Access no = 55h = 85, Status = 00h, Signature = 0000h
03 13 15 31 00 Data block (record) 1: Subunit = 0, Storage no = 0, No tariff,
Instantaneous volume, 12565 l (24 bit integer)
DA 02 3B 13 01 Data block (record) 2: Subunit = 0, Storage no = 5, No tariff, Maximum
volume flow, 113 l/h (4 digit BCD)
8B 60 04 37 18 02 Data block (record) 3: Subunit = 1, Storage no = 0, Tariff = 2,
Instantaneous energy, 218.37 kWh (6 digit BCD)
You can get following values:
15.5 Configuration
COM port: COM port (or virtual COM port) connected to the M-Bus adaptor (level converter).
Baud rate: baud rate of communication link. All connected M-Bus devices must be operate at same
baud rate.
Parity: parity of the communication link. M-Bus specification requires even parity.
1st char timeout: maximum time allowed to receive first character of the response message.
Component in bits time (specification requires 330 bit) is summed to component in ms (50).
Using default values, at 2400 baud, first character timeout is about 190 ms.
Full response timeout: maximum time, after the first character, to receive all the characters of the
response message. Please take care of baud rate and messages length; at 2400 baud, to
receive 200 characters, at least 920 ms are required.
Query pause: delay (in ms) between an answer and the following request.
Retries: number of requests without answer before to declare error and abort communication
procedure (specification requires 3 attempts)
Secondary addresses: to inquire devices using secondary address, this table should be compiled.
For each device (it is the Device field of the gates configuration dialogs) specify the
Identification number using which the device has to be selected. Wildcards are not allowed.
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.
(0...65535)
TS TIMER CONTACT XXXXh Yes Yes Yes 1
(0...FFFF Hexadecimal)
CN COUNTER CURRENT XXXXX Yes Yes Yes 1
VALUE (0...65535)
CN COUNTER CIURRENT XXXXh Yes Yes Yes 1
VALUE (0...FFFF Hexadecimal)
CN_L_ COUNTER CURRENT XXXXX Yes Yes Yes 2
VALUE LONG (0...65535)
(32 bit)
CN_L_ COUNTER CURRENT XXXXh Yes Yes Yes 2
VALUE LONG (0...FFFF Hexadecimal)
(32 bit)
CS COUNTER CONTACT XXXXX Yes Yes Yes 1
(0...65535)
CS COUNTER CONTACT XXXXh Yes Yes Yes 1
(0...FFFF Hexadecimal)
X INPU XXXXX Yes Yes Yes 1
(octadecimal)
Y OUTPUT XXXXX Yes Yes Yes 1
(octadecimal)
M INTERNAL RELAY XXXXX Yes Yes Yes 1
(0...65535)
M INTERNAL RELAY XXXXh Yes Yes Yes 1
(0...FFFF Hexadecimal)
S STATE XXXXX Yes Yes Yes
(0...65535)
S STATE XXXXh Yes Yes Yes
(0...FFFF Hexadecimal)
Notes:
1 - 16 bit value : "Variable type" field of the numeric gate must be specified as :
"U WORD" to consider the value as a 16-bit unsigned (0 ... 65535).
"S WORD" to consider the value as a 16-bit signed (-32768 ... 32767).
2 - 32 bit value Long : "Variable type" field of the numeric gate must be specified as :
"U_INT32" to consider the value as a 32-bit unsigned (0 ... 4294967295).
"S_INT32" to consider the value as a 32-bit signed (-2147483648 ... 2147483647).
3 - 32 bit value Float : "Variable type" field of the numeric gate must be specified as :
"FLOAT" to consider the value as a 32-bit IEEE 754 floating point.
Gates having the same Function and consecutive Address in relation to the type of variable, can be
grouped into a block so as to be read them all with a single request.
Blocks can be created automatically from the gate definition tool, by selecting the "File | Gates
sampling Optimization" menu item.
Numeric gates that CAN be read as block Numeric gates thatn CAN NOT be read as block
D1 D1
D2 D2
D3 D7
D4 D8
D5 D10
Numeric gates that CAN be read as block Numeric gates thatn CAN NOT be read as block
D_L_0 D_L_0
D_L_2 D_L_2
D_L_4 D_L_6
D_L_6 D_L_8
D_L_8 D_L_10
Numeric gates that CAN be read as block Numeric gates thatn CAN NOT be read as block
X0 X0
X20 X16
X40 X40
X60 X50
X80 X60
S15 STATE 15
SFh STATE 15
Gates having the same Function and consecutive Address can be grouped into a block so as to be
read them all with a single request.
Blocks can be created automatically from the gate definition tool, by selecting the "File | Gates
sampling Optimization" menu item.
Digital gates that CAN be read as block Digital gates that CAN NOT be read as block
TS1 TS1
TS2 TS2
TS3 CS4
TS4 CS6
TS5 M10
16.5 Configuration
· Message wait time: this is a delay time required to switch between send and receive states.The
message wait time determines the minimum delay before the programmable controller sends data
after receiving a message form the computer. The message wait time may be selected between 0
and 150 ms. When using the 485PC-IF in a 1:n system always set the message wait time to 70 ms
or longer.
17 MITSUBISHI FR-CU03
17.1 Introduction
This protocol is used for communication with Mitsubishi inverters equipped with computer link unit
FR-CU03.
Function provided
Function Description Gate type Read gate Write gate Read Block
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.
17.5 Configuration
Supported CPU:
FX3 (Ethernet built-in)
LCPU (Ethernet built-in)
QCPU (Ethernet build-in)
For FX3 (with built-in Ethernet) or additional Ethernet modules FX3U-ENET-ADP and FX3U-ENET
Function Description Address Gate read Gate write Block read Notes
D DATA REGISTER XXXXX Yes Yes Yes 1
(0...65535)
D DATA REGISTER XXXXh Yes Yes Yes 1
(0...FFFF Hexadecimal)
D_L_ DATA REGISTER LONG XXXXX Yes Yes Yes 2
(32 bit) (0...65535)
D_L_ DATA REGISTER LONG XXXXh Yes Yes Yes 2
(32 bit) (0...FFFF Hexadecimal)
D_F_ DATA REGISTER FLOAT XXXXX Yes Yes Yes 3
(32 bit) (0...65535)
D_F_ DATA REGISTER FLOAT XXXXh Yes Yes Yes 3
(32 bit) (0...FFFF Hexadecimal)
R EXTENSION REGISTER XXXXX Yes Yes Yes 1
(0...65535)
R EXTENSION REGISTER XXXXh Yes Yes Yes 1
(0...FFFF Hexadecimal)
R_L_ EXTENSION REGISTER XXXXX Yes Yes Yes 2
LONG (0...65535)
(32 bit)
R_L_ EXTENSION REGISTER XXXXh Yes Yes Yes 2
LONG (0...FFFF Hexadecimal)
(32 bit)
R_F_ EXTENSION REGISTER XXXXX Yes Yes Yes 3
FLOAT (0...65535)
(32 bit)
R_F_ EXTENSION REGISTER XXXXh Yes Yes Yes 3
FLOAT (0...FFFF Hexadecimal)
(32 bit)
TN TIMER CURRENT VALUE XXXXX Yes Yes Yes 1
(0...65535)
TN TIMER CURRENT VALUE XXXXh Yes Yes Yes 1
(0...FFFF Hexadecimal)
TN_L_ TIMER CURRENT VALUE XXXXX Yes Yes Yes 2
LONG (0...65535)
(32 bit)
For LCPU (with built-in Ethernet), QCPU (with built-int Ethernet) or additional Ethernet modules
LJ71EN71 and QJ71EN71
Function Description Address Gate read Gate write Block read Notes
D DATA REGISTER XXXXX Yes Yes Yes 1
(0...65535)
D DATA REGISTER XXXXh Yes Yes Yes 1
(0...FFFF Hexadecimal)
D_L_ DATA REGISTER LONG XXXXX Yes Yes Yes 2
(32 bit) (0...65535)
D_L_ DATA REGISTER LONG XXXXh Yes Yes Yes 2
(32 bit) (0...FFFF Hexadecimal)
D_F_ DATA REGISTER FLOAT XXXXX Yes Yes Yes 3
(32 bit) (0...65535)
D_F_ DATA REGISTER FLOAT XXXXh Yes Yes Yes 3
(32 bit) (0...FFFF Hexadecimal)
D_D_ DATA REGISTER XXXXX Yes Yes Yes 5
DOUBLE FLOAT (0...65535)
(64 bit)
D_D_ DATA REGISTER XXXXh Yes Yes Yes 5
DOUBLE FLOAT (0...FFFF Hexadecimal)
(64 bit)
W LINK REGISTER XXXXX Yes Yes Yes 1
(0...65535)
W LINK REGISTER XXXXh Yes Yes Yes 1
(0...FFFF Hexadecimal)
W_L_ LINK REGISTER LONG XXXXX Yes Yes Yes 2
(32 bit) (0...65535)
W_L_ LINK REGISTER LONG XXXXh Yes Yes Yes 2
(32 bit) (0...FFFF Hexadecimal)
W_F_ LINK REGISTER FLOAT XXXXX Yes Yes Yes 3
(32 bit) (0...65535)
Notes:
1 - 16 bit value : "Variable type" field of the numeric gate must be specified as :
"U WORD" to consider the value as a 16-bit unsigned (0 ... 65535).
"S WORD" to consider the value as a 16-bit signed (-32768 ... 32767).
2 - 32 bit value Long : "Variable type" field of the numeric gate must be specified as :
"U_INT32" to consider the value as a 32-bit unsigned (0 ... 4294967295).
"S_INT32" to consider the value as a 32-bit signed (-2147483648 ... 2147483647).
3 - 32 bit value Float : "Variable type" field of the numeric gate must be specified as :
"FLOAT" to consider the value as a 32-bit IEEE 754 floating point.
4 - X and Y are expressed in octadecimal so the address that can be designated for numeric gates
must comply with the following rule : X0,X20,X40 ....Y0,Y20,Y40...
5 - 64 bit value Double Float : "Variable type" field of the numeric gate must be specified as :
"DOUBLE" to consider the value as a 64-bit double floating point.
Gates having the same Function and consecutive Address in relation to the type of variable, can be
grouped into a block so as to be read them all with a single request.
Blocks can be created automatically from the gate definition tool, by selecting the "File | Gates
sampling Optimization" menu item.
Numeric gates that CAN be read as block Numeric gates thatn CAN NOT be read as block
D1 D1
D2 D2
D3 D7
D4 D8
D5 D10
Numeric gates that CAN be read as block Numeric gates thatn CAN NOT be read as block
D_L_0 D_L_0
D_L_2 D_L_2
D_L_4 D_L_6
D_L_6 D_L_8
D_L_8 D_L_10
Numeric gates that CAN be read as block Numeric gates thatn CAN NOT be read as block
X0 X0
X20 X16
X40 X40
X60 X50
X80 X60
For FX3 (with built-in Ethernet) or additional Ethernet modules FX3U-ENET-ADP and FX3U-ENET
Function Description Address Gate read Gate write Block read
TS TIMER CONTATCT XXXXX Yes Yes Yes
(0...65535)
TS TIMER CONTACT XXXXh Yes Yes Yes
(0...FFFF Hexadecimal)
CS COUNTER CONTACT XXXXX Yes Yes Yes
(0...65535)
CS COUNTER CONTACT XXXXh Yes Yes Yes
(0...FFFF Hexadecimal)
X INPUT XXXXX Yes Yes Yes
(octadecimal)
Y OUTPUT XXXXX Yes Yes Yes
(octadecimal)
M INTERNAL RELAY XXXXX Yes Yes Yes
(0...65535)
M INTERNAL RELAY XXXXh Yes Yes Yes
(0...FFFF Hexadecimal)
S STATE XXXXX Yes Yes Yes
(0...65535)
S STATE XXXXh Yes Yes Yes
(0...FFFF Hexadecimal)
For LCPU (with built-in Ethernet), QCPU (with built-int Ethernet) or additional Ethernet modules
LJ71EN71 and QJ71EN71
Function Description Address Gate read Gate write Block read
TS TIMER CONTATCT XXXXX Yes Yes Yes
(0...65535)
TS TIMER CONTACT XXXXh Yes Yes Yes
(0...FFFF Hexadecimal)
TC TIMER COIL XXXXX Yes Yes Yes
(0...65535)
TC TIMER COIL XXXXh Yes Yes Yes
(0...FFFF Hexadecimal)
CS COUNTER CONTACT XXXXX Yes Yes Yes
(0...65535)
CS COUNTER CONTACT XXXXh Yes Yes Yes
(0...FFFF Hexadecimal)
CC COUNTER COIL XXXXX Yes Yes Yes
(0...65535)
S15 STATE 15
SFh STATE 15
Gates having the same Function and consecutive Address can be grouped into a block so as to be
read them all with a single request.
Blocks can be created automatically from the gate definition tool, by selecting the "File | Gates
sampling Optimization" menu item.
Digital gates that CAN be read as block Digital gates that CAN be read as block
TS1 TS1
TS2 TS2
TS3 CS4
TS4 CS6
TS5 M10
For LCPU (with built-in Ethernet), QCPU (with built-int Ethernet) or additional Ethernet modules
LJ71EN71 and QJ71EN71
Function Description Address Gate read Gate write Block read
D DATA REGISTER XXXXX Yes Yes Yes
(0...65535)
D DATA REGISTER XXXXh Yes Yes Yes
(0...FFFF Hexadecimal)
W LINK REGISTER XXXXX Yes Yes Yes
(0...65535)
W LINK REGISTER XXXXh Yes Yes Yes
(0...FFFF Hexadecimal)
R FILE REGISTER XXXXX Yes Yes Yes
(0...65535)
R FILE REGISTER XXXXh Yes Yes Yes
(0...FFFF Hexadecimal)
18.5 Configuration
· Protocol type:
ASCII mode: communication in ASCII format (1 byte = 2 chars sent)
Binary mode: communication in Binary format (1 byte = 1 char sent)
· Re-connection pause [ms]: pause between close socket and open socket in case of
communication errors.
· Monitoring timer: period of time that the Ethernet module should wait after outputting a read/write
request to the PLC until the result is returned.
· Device IP address or hostname: PLC IP address or PLC hostname. The following syntax are
supported:
Note: on the PLC side the Ethernet Port open setting must be configured as :
Protocol = TCP
Open System = MC Protocol
Host Station Port no. must be the same of TCP port parameter in the above window.
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.
7: 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
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
String gates function are supported only in Modbus RTU and Modbus RTU TCP protocol
Function 33 (21h) extract a string from a block of holding register in the following mode:
LowByte (HoldingRegister 1) +
LowByte (HoldingRegister 2) +
LowByte (HoldingRegister ...) +
LowByte (HoldingRegister N)
Function Address Gate read Gate write Block read
33 (obsolete) XXXX Yes Yes No
(0...9999 decimal
33: XXXXX Yes Yes No
(0...65535 decimal
21h: XXXXh Yes Yes No
(0...FFFF Hexadecimal
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:
HighByte (HoldingRegister 1) +
HighByte (HoldingRegister 2) +
HighByte (HoldingRegister ...) +
HighByte (HoldingRegister N)
Function Address Gate read Gate write Block read
36 (obsolete) XXXX Yes Yes No
(0...9999 decimal
36: XXXXX Yes Yes No
(0...65535 decimal
24h: XXXXh Yes Yes No
(0...FFFF Hexadecimal
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:
HighByte (HoldingRegister 1) + LowByte (HoldingRegister 1) +
HighByte (HoldingRegister 2) + LowByte (HoldingRegister 2) +
HighByte (HoldingRegister ...) + LowByte (HoldingRegister ...) +
HighByte (HoldingRegister N) + LowByte (HoldingRegister N)
Function Address Gate read Gate write Block read
35 (obsolete) XXXX Yes Yes No
(0...9999 decimal
35: XXXXX Yes Yes No
(0...65535 decimal
23h: XXXXh Yes Yes No
(0...FFFF Hexadecimal
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:
LowByte (HoldingRegister 1) + HighByte (HoldingRegister 1) +
LowByte (HoldingRegister 2) + HighByte (HoldingRegister 2) +
LowByte (HoldingRegister ...) + HighByte (HoldingRegister ...) +
LowByte (HoldingRegister N) + HighByte (HoldingRegister N)
Function Address Gate read Gate write Block read
37 (obsolete) XXXX Yes Yes No
(0...9999 decimal
37: XXXXX Yes Yes No
(0...65535 decimal
25h: XXXXh Yes Yes No
(0...FFFF Hexadecimal
Example:
These are 3 way to read data string from Holding (read/write) register Modbus address 0001
370001
37:0001
25h:0001h
Function 37:0: (25h:0h:) add a string terminator word ( that is 0) during the writing to device
procedure.
Function Address Gate read Gate write Block read
37:0: XXXXX Yes Yes No
(0...65535 decimal
25h:0h: XXXXh Yes Yes No
(0...FFFF Hexadecimal
Example:
37:0:1000
25h:0h:3E8h
Function 43 (2Bh) extract a string from a block of input register in the following mode:
LowByte (InputRegister 1) +
LowByte (InputRegister 2) +
LowByte (InputRegister ...) +
LowByte (InputRegister N)
Function Address Gate read Gate write Block read
43 (obsolete) XXXX Yes No No
(0...9999 decimal
43: XXXXX Yes No No
(0...65535 decimal
2Bh: XXXXh Yes No No
(0...FFFF Hexadecimal
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:
HighByte (InputRegister 1) +
HighByte (InputRegister 2) +
HighByte (InputRegister ...) +
HighByte (InputRegister N)
Function Address Gate read Gate write Block read
46 (obsolete) XXXX Yes No No
(0...9999 decimal
46: XXXXX Yes No No
(0...65535 decimal
2Eh: XXXXh Yes No No
(0...FFFF Hexadecimal
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:
HighByte (InputRegister 1) + LowByte (InputRegister 1) +
HighByte (InputRegister 2) + LowByte (InputRegister 2) +
HighByte (InputRegister ...) + LowByte (InputRegister ...) +
HighByte (InputRegister N) + LowByte (InputRegister N)
Function Address Gate read Gate write Block read
45 (obsolete) XXXX Yes No No
(0...9999 decimal
45: XXXXX Yes No No
(0...65535 decimal
2Dh: XXXXh Yes No No
(0...FFFF Hexadecimal
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:
LowByte (InputRegister 1) + HighByte (InputRegister 1) +
LowByte (InputRegister 2) + HighByte (InputRegister 2) +
LowByte (InputRegister ...) + HighByte (InputRegister ...) +
LowByte (InputRegister N) + HighByte (InputRegister N)
Function Address Gate read Gate write Block read
47 (obsolete) XXXX Yes No No
(0...9999 decimal
47: XXXXX Yes No No
(0...65535 decimal
2Fh: XXXXh Yes No No
(0...FFFF Hexadecimal
Example:
These are 3 way to read data string from Input register Modbus address 0001
470001
47:0001
2Fh:0001h
19.5 Configuration
MODBUS TCP
· Protocol type:
Modbus TCP: Modbus TCP protocol
Modbus RTU over TCP: Serial Modbus RTU protocl encapsulated in TCP frame
· Re-connection pause [ms]: pause between close socket and open socket in case of
communication errors.
· Register format: order of the bytes inside the register. Can be:
Standard mode (big-endian) : high byte + low byte
Reverse mode (little-endian) : low byte + high byte
20 ODBC Client
20.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 ) .
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.
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.
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.
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.
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.
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.
20.5 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)
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.
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:
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.
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)
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.
Figure 4
Query_1...Query_n: specify the query functions to write values in ODBC data source (expressed as SQL
language format).
21 OMRON FINS
21.1 Introduction
OMRON FINS / UDP Ethernet communication protocol for CJ,CS,CV and CP series OMRON
programmable controllers.
OMRON CV Family
Command Description Address Gate read Gate write Block read
CIO CIO area XXXX Yes Yes Yes
0000...2555
AR Auxiliary bit area XXX Yes Yes Yes
000...447
TIM Timer area PV XXXX Yes Yes Yes
0000...2047
CNT Counter area PV XXXX Yes Yes Yes
0000...2047
EMn_ EM bank n XXXXX Yes Yes Yes
for n=0...7 00000...32767
EMn_UL_ EM bank n XXXXX Yes Yes Yes
for n=0...7 unsigned long 00000...32767
32 bit
EMn_SL_ EM bank n XXXXX Yes Yes Yes
for n=0...7 signed long 00000...32767
32 bit
EMn_FL_ EM bank n XXXXX Yes Yes Yes
for n=0...7 float 00000...32767
32 bit
EM EM current bank XXXXX Yes Yes Yes
00000...32767
EM_UL_ EM current bank XXXXX Yes Yes Yes
unsigned long 00000...32767
32 bit
EM_SL_ EM current bank XXXXX Yes Yes Yes
signed long 00000...32767
32 bit
EM_FL_ EM current bank XXXXX Yes Yes Yes
float 00000...32767
32 bit
EM EM current bank Yes Yes Yes
number
DM DM area XXXXX Yes Yes Yes
00000...32767
DM_UL_ DM area XXXXX Yes Yes Yes
unsigned long 00000...32767
32 bit
DM_SL_ DM area XXXXX Yes Yes Yes
signed long 00000...32767
32 bit
DM_FL_ DM area XXXXX Yes Yes Yes
Float 00000...32767
32 bit
addresses.
Example of valid block Example of NOT valid block
DM00001 DM00001
DM00002 DM00003
DM00003 DM00005
DM00004 DM00007
DM00005 DM00008
DM00006 DM00010
OMRON CV Family
Command Description Address Bit address Gate read Gate write Block read
CIO CIO area XXXX XX Yes Yes Yes
0000...2555 00..15
21.5 Configuration
error messages can be viewed (also in Runtime mode), by clicking on "Errors" button.
OMRON CV Family
Command Description Address Gate read Gate write Block read
CIO CIO area XXXX Yes Yes Yes
0000...2555
AR Auxiliary bit area XXX Yes Yes Yes
000...447
TIM Timer area PV XXXX Yes Yes Yes
0000...2047
CNT Counter area PV XXXX Yes Yes Yes
0000...2047
EM0_ EM bank 0 XXXXX Yes Yes Yes
00000...32767
EM1_ EM bank 1 XXXXX Yes Yes Yes
00000...32767
EM2_ EM bank 2 XXXXX Yes Yes Yes
00000...32767
EM3_ EM bank 3 XXXXX Yes Yes Yes
00000...32767
EM4_ EM bank 4 XXXXX Yes Yes Yes
00000...32767
EM5_ EM bank 5 XXXXX Yes Yes Yes
00000...32767
EM6_ EM bank 6 XXXXX Yes Yes Yes
00000...32767
EM7_ EM bank 7 XXXXX Yes Yes Yes
00000...32767
EM EM current bank XXXXX Yes Yes Yes
00000...32767
EM EM current bank Yes Yes Yes
number
DM DM area XXXXX Yes Yes Yes
00000...32767
DM_UL_ DM area XXXXX Yes Yes Yes
unsigned long 00000...32767
32 bit
DM_SL_ DM area XXXXX Yes Yes Yes
signed long 00000...32767
32 bit
DM_FL_ DM area XXXXX Yes Yes Yes
Float 00000...32767
32 bit
OMRON CV Family
Command Description Address Bit address Gate read Gate write Block read
CIO CIO area XXXX XX Yes Yes Yes
0000...2555 00..15
AR Auxiliary bit area XXX XX Yes Yes Yes
000...447 00..15
TIM Timer area PV XXXX XX Yes Yes Yes
0000...2047 00..15
CNT Counter area PV XXXX XX Yes Yes Yes
0000...2047 00..15
EM0_ EM bank 0 XXXXX XX Yes Yes Yes
00000...32767 00..15
EM1_ EM bank 1 XXXXX XX Yes Yes Yes
00000...32767 00..15
EM2_ EM bank 2 XXXXX XX Yes Yes Yes
00000...32767 00..15
EM3_ EM bank 3 XXXXX XX Yes Yes Yes
00000...32767 00..15
EM4_ EM bank 4 XXXXX XX Yes Yes Yes
00000...32767 00..15
EM5_ EM bank 5 XXXXX XX Yes Yes Yes
00000...32767 00..15
EM6_ EM bank 6 XXXXX XX Yes Yes Yes
00000...32767 00..15
EM7_ EM bank 7 XXXXX XX Yes Yes Yes
00000...32767 00..15
DM DM area XXXXX XX Yes Yes Yes
00000...32767 00..15
22.5 Configuration
· Use Local Network: when this option is selected, "Source Network Address" will be set to 0 (that
means "Local Network") . If Use Local Network is not selected then Source Network Address and
Source Node can be set from the user.
·
· COM port: serial port name.
· Baud rate: communication speed.
· Parity: parity.
· Stop bits: stop bits.
· Data bits: number of bits.
· Communication timeout [ms]: total timeout (milliseconds) waiting for answer.
· Query pause [ms]: timout between answer and next request .
· PLC response wait time [ms]: delay of PLC answer .
·
· Host link address : PLC Host Link address.
· CPU model: PLC family type (CJ,CS or CV).
· IP address: PLC IP address.
· Request size: maximum size of communication buffer between Personal Computer and PLC.
· Destination network address: PLC Network Address (0=Local Network).
· Destination node : PLC Node Address.
· 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 clicking on "Errors" button.
23 OMRON SYSMAC
23.1 Introduction
Communication protocol for the following OMRON PLC's:
CQM1,C200H,C200HS,C200HE,C200HG,C200HX,C1000H,C2000H,CVM1, CPM1,C–H,C–K 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.
Function Description Word address Gate read Gate write Block read
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.
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 Example of valid block Example of NOT valid block Example of NOT 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 Example of NOT valid block
TC0001 TC0001
TC0002 TC0002
TC0003 TC0005
TC0004 TC0006
TC0005 TC0007
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.
23.5 Configuration
24 OPC Client
24.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
This OPC Client driver support data access (DA) to OPC servers DA 1.0 , 2.0 and 3.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.
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.
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.
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.
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.
24.5 Configuration
· Server node: computer name where is installed the OPC server to connect to.
· OPC Server: name of the OPC server to connect to.
· Read from DEVICE: data will be read directly from the device.
· Read from CACHE: data will be read from the OPC server cache memory.
25.5 Configuration
26 SAIA P800
26.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.
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.
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 Example of NOT valid block
F0003 F0003
F0004 F0005
F0005 I0012
F0006 F0013
F0007 F0014
26.5 Configuration
27 SAIA S-BUS
27.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.
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.
Function Description Bit address Gate read Gate write Block read
F FLAG XXXX Yes Yes Yes
O OUTPUT XXXX Yes No Yes
I INPUT XXXX Yes No No
Example: here are some examples of digital gate address:
F0031 : Flag 0031.
O0004 : Output 0004.
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 Example of NOT valid block
F0003 F0003
F0004 F0005
F0005 I0012
F0006 F0013
F0007 F0014
27.5 Configuration
28 SIEMENS MPI
28.1 Introduction
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 some data type (e.g. DB) different data format can be specified: Byte, Word,BCD, Long, Float.
Note that the data address refers to Byte alignment. That mean :
PLC Memory Data type "B" Data type "W" Data type "X" Data type "L" Data type "F"
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
DB9.3 B.009.0003
DB9.4 B.009.0004 W.009.0004 X.009.0004 L.009.0004 F.009.0004
DB9.5 B.009.0005
DB9.6 B.009.0006 W.009.0006 X.009.0006
DB9.7 B.009.0007
DB9.8 B.009.0008 W.009.0008 X.009.0008 L.009.0008 F.009.0008
DB9.9 B.009.0009
DB9.10 B.009.0010 W.009.0010 X.009.0010
DB1.11 B.009.0011
S7-200/300/400/ 1200
Q B XXXXX Yes Yes Yes QB2
(Output english mode) (Byte) Decimal value (0..99999)
S7-200/300/400/ 1200
Q W XXXXX Yes Yes Yes QW2
(Output english mode) (Word) Decimal value (0..99999)
S7-200/300/400/ 1200
The block length is related to the gates data format grouped in the block.
Data format Max block length
BYTE 200
WORD 100
BCD 100
LONG 50
FLOAT 50
TIMER 100
COUNTER 100
Numeric gates that can be grouped as block Numeric gates that can be grouped as block
E10 DB1.DBB10
E11 DB1.DBB11
E12 DB1.DBW12
E13 DB1.DBW14
E14 DB1.DBX16
E15 DB1.DBD18
E16 DB1.DBD22
E17 DB1.DBB26
E18 DB1.DBB27
Numeric gates that can be grouped as block Numeric gates that can be grouped as block
E10 DB1.DBB10
E11 DB1.DBB11
DB1.DBW12 E12
DB1.DBW14 E16
E14 DB1.DBX16
E15 DB1.DBD18
E16 E16
E17 E17
E18 DB1.DBB27
String gates can be related only and exclusively to STRING[] type variables in the DataBase(DB) 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.
28.5 Configuration
PC adapter (COM) selected
· 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.
· Swap Input/Output byte order (S7-300-400): enable byte low/high swapping in case of
Input/output Read/Write Word for S7-300 and S7-400 PLC.
· 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.
· 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.
· Swap Input/Output byte order (S7-300-400): enable byte low/high swapping in case of
Input/output Read/Write Word for S7-300 and S7-400 PLC.
· 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
29 TUTONDO
29.1 Introduction
RS232 communication protocol for Tutondo devices.
Supported devices:
Tutondo MR6005
Tutondo MR9005
They are also already available in the Library, in order to allow to build a working application (like in the
To build applications with Tutondo devices, use Application Builder (accessible from Project
Manager).
Set the "Parameters of functions called from Templates" and the "Gate name prefix" as reported in the
picture above.
29.2 Configuration
Note:'Protocol B' must be selected on the MR6005 and MR9005 physical devices.
PATTERN
S TIMER COUNTER XXXX Yes Yes Yes
PRESET VALUE
S_L TIMER COUNTER XXXX Yes Yes Yes
PRESET VALUE
(LONG)
S_F TIMER COUNTER XXXX Yes Yes Yes
PRESET VALUE
(FLOAT)
K TIMER COUNTER XXXX Yes Yes Yes
ELAPSED VALUE
R0 SYSTEM REGISTER XXX Yes Yes Yes
CX EXTERNAL INPUT XXXX Yes Yes Yes
RELAY WORD
(bit 15...0)
CY EXTERNAL OUTPUT XXXX Yes Yes Yes
RELAY WORD
(bit 15...0)
CR INTERNAL RELAY XXXX Yes Yes Yes
WORD
(bit 15...0)
CL LINK RELAY WORD XXXX Yes Yes Yes
(bit 15...0)
CT TIMER CONTACT XXXX Yes Yes Yes
WORD
(bit 15...0)
CC COUNTER XXXX Yes Yes Yes
CONTACT WORD
(bit 15...0)
SCX EXTERNAL INPUT XXXX No Yes No
RELAY SET DATA
PATTERN
(bit 15...0)
SCY EXTERNAL OUTPUT XXXX No Yes No
RELAY SET DATA
PATTERN
(bit 15...0)
SCR INTERNAL RELAY XXXX No Yes No
SET DATA PATTERN
(bit 15...0)
SCL LINK RELAY SET XXXX No Yes No
DATA PATTERN
(bit 15...0)
Example: here are some examples of numeric gates:
D00011 : Data Register 00011.
K0004 : Elapsed timer counter 0004.
SDL00015: Set Link Data Register pattern 00015.
CX0012: External input relay word 0012 – bit 15..bit 0.
Note:
A block of numeric gates must be made of gates with the same Function and sequential Address.
Example of valid block Example of NOT valid block
D00003 D00003
D00004 D00005
D00005 L00012
D00006 D00013
D00007 D00014
Index registers IX,IY can be grouped in a block only if declared sequentially as: IX,IY.
Example of valid block Example of NOT valid block
IX IY
IY IX
Function Description Word address Bit address Gate read Gate write Block read
X EXTERNAL XXX X Yes Yes Yes
INPUT RELAY (decimal value) (Hexadecimal
value of the bit)
Y EXTERNAL XXX X Yes Yes Yes
OUTPUT RELAY (decimal value) (Hexadecimal
value of the bit)
R INTERNAL XXX X Yes Yes Yes
RELAY (decimal value) (Hexadecimal
value of the bit)
L LINK RELAY XXX X Yes Yes Yes
(decimal value) (Hexadecimal
value of the bit)
T TIMER XXXX Yes Yes Yes
CONTACT (decimal value)
C COUNTER XXXX Yes Yes Yes
CONTACT (decimal value)
Example: here are some examples of digital gates address:
X001A : External input relay word 001 – bit 10.
R003C : Internal relay word 003 – bit 12.
T0007 : Timer contact word 0007.
Note:
Digital gates can be grouped in two different types of blocks.
The first type is made of 2…8 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 Example of NOT valid block
X0010 X0010
X0011 X0011
X0012 X0012
X0013 X0013
X0014 X0014
X0015 X0015
X0016 X0016
X0017 Y0010
X0018 Y0011
X0019 R0010
X001A X001A
X001B X001B
X001C X001C
X001D X001D
X001E X001E
X001F X001F
30.5 Configuration
In case of using SIEMENS RS232 / PPI Multi - Master Cable, it must be configured (with dip-switch)
as:
- PPI / Freeport
- Local/DCE
- 11 Bit
The block length is related to the gates data format grouped in the block.
Numeric gates that can be Numeric gates that can be Numeric gates that CAN Numeric gates that CAN
grouped as block grouped as block NOT be grouped as block NOT be grouped as block
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
Digital gates that can be Digital gates that can be Digital gates that CAN NOT Digital gates that CAN NOT
grouped as block grouped as block be grouped as block be grouped as block
IB0.0 VB0.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
31.5 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.
32.5 Configuration
Architecture example: a client station communicate with a server station to access devices data
Examples
NUM:temperature,1 Value of remote numeric gate temperature,1
NUM:temperature,1:value Value of remote numeric gate temperature,1
NUM:temperature,1:commRxStatus State of communication (reading error) of remote
numeric gate temperature,1
DIG:pumpState,3 Value of remote digital gate pumpState,3
CMP:energyPerHour,0 Value of remote compound gate energyPerHour,0
EVN:doorOpen,1 State (active or not active) of the remote event
doorOpen,1
EVN:currentI1Overload,0:acked Acknowledgement of the remote event
currentI1Overload,0
var_id is optional. If you omit it (and the separator character) is like you specify value.
Furthermore it is possible to leave blank the field Address of the gate. In this case protocol driver
associates the local digital gate to remote digital gate that has the same name.
Examples
DIG:pumpState,3 Value of remote digital gate pumpState,3
DIG:pumpState,3:value Value of remote digital gate pumpState,3
NUM:itemsProduced,1 Value of remote numeric gate itemsProduced,1 is
different from 0
DIG:pumpState,3:commTxStatus State of communication (reading error) of remote
digital gate pumpState,3
EVN:doorOpen,1 State (active or not active) of the remote event
doorOpen,1
EVN:currentI1Overload,0:acked Acknowledgement of the remote event
currentI1Overload,0
Examples
STR:errorString,0 Value of remote string gate errorString,0
STR:programName,1:value Value or remote string gate programName,1
33.5 Configuration
Server station
On the server station, under project Configuration | Options | TCP, check the box Run TCP server.
Client station establishes connection with only one server station. All gates of the channel are read and
written from the server station. The field Device of the gates is ignored.
Connection type: if the client communicates only with one server you have to choose One connection
for all devices.
Server IP address or hostname: IP address or network name of the server station.
TCP port: TCP port of the server. It must be the same as the value Online data TCP port of the server
project configuration.
Connection timeout: maximum time (in ms) allowed to the client to establish the connection with the
server.
Re-connection delay: delay (in ms) between a failed connection and the following attempt.
Transfer timeout: maximum time (in ms) allowed to receive the response message.
Query pause: delay (in ms) between an answer and the following request.
Keep connection active: to avoid waste of resources, server station closes inactive connections.
Check this box, to maintain live connections even with slow sampling rate.
Legacy mode: this option setup driver to operate in legacy mode. Reefer to introduction to know
differences between standard mode and legacy mode.
Inherit communication status: if you check this box, local gate "inherit" communication status of the
related remote gate.
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.
Client station establishes a connection for each device belonging to the channel. For each device you
need to specify the server from which the driver will read and write related gates. Please use the table
in the right side of the dialog to associate each Device (a number from 1 to 255, as specified in the
gate configuration) to the server; insert his IP address (or network name) and optionally listening TCP
port.
So, all gates belonging to Device 1 of the channel will be sampled from the server inserted in the first
row of the table, and so on up to 255 device per channel. In this way a server act as a device.
Connection type: choose One connection for each device if you want the client communicates with
more servers.
Server IP address or hostname: IP address (or network name) associates to each device. You can
also indicate the TCP port, if left unspecified driver will use that inserted in the field TCP port.
Other settings are the same as described for the case with only one connection.