DataLink DL-4000 Manual - Congrav LM3 To Modbus
DataLink DL-4000 Manual - Congrav LM3 To Modbus
DataLink DL-4000 Manual - Congrav LM3 To Modbus
Congrav L/M-3
to
MODBUS™
(and Modbus Ethernet TCP/IP™)
TABLE OF CONTENTS
1. INTRODUCTION............................................................................................................................................... 4
2. DATALINK SPECIFICATIONS FOR CONGRAV L/M-3 INTERFACE ........................................................ 4
3. HARDWARE...................................................................................................................................................... 5
3.1 DL-4000 to Congrav L/M-3 Connection............................................................................................. 5
3.2 DL-4000 to Modbus Host Connection ................................................................................................ 5
4. SOFTWARE ....................................................................................................................................................... 6
4.1 Communication with Modbus ............................................................................................................. 6
4.2 Communication with Congrav L/M-3 ................................................................................................. 6
5. USE OF THE DL-4000 COMMUNICATION CONTROLLER ........................................................................ 7
6. SAMPLE APPLICATION – READ AND WRITE SETPOINT ........................................................................ 8
6.1 Sample #1 – Read and Write Setpoint with Modicon Bridge/Multiplexer (BM85)............................ 8
6.2 Sample #2 – Read and Write Setpoint with Telemecanique Ethernet Bridge (ETG module)............. 13
7. APPENDIXES .................................................................................................................................................... 18
A. Modbus Addressing in DL-4000 .......................................................................................................... 19
1. Write data to Congrav L/M-3 ................................................................................................. 20
2. Read data from Congrav L/M-3.............................................................................................. 38
3. Read communication status .................................................................................................... 69
B. DATALINK Configuration .................................................................................................................. 70
C. HONEYWELL Addendum .................................................................................................................. 71
1. INTRODUCTION
The Congrav™ line of gravimetric Loss in Weight or weigh belt controllers is provided with a serial interface port
designated for the plant (host) interface.
The communication protocol used is Siemens RK-512 with the 3964R procedure. This protocol is capable of being
converted to Modbus (and Modbus Ethernet TCP/IP) using the DataLink communication controller (and
Telemecanique Connexium Ethernet Gateway). The present documentation refers to the model DL-4000 with the
standard Modbus protocol (and Telemecanique module TSXETG100).
The purpose of the DataLink controller is to provide easy interface between the Congrav L/M-3 controller and a
Modbus (Modbus Ethernet TCP/IP) Host where remote access of the feeder(s) is required. All interface software
being fully developed and the application requiring only data handling internally.
To achieve that goal the communication unit is designed to read selected information from the Congrav L/M-3 and to
write selected information to the Congrav L/M-3. The information read from the Congrav L/M-3 is stored in an
internal database. Information to be written to the Congrav L/M-3 is read also from the internal database. This
database can be accessed by a Modbus Host using the standard Modbus protocol.
The information from/to the Congrav L/M-3 is processed in commands; each command reads/writes specific data.
Each read command has its own flag to determine whether or not to perform the command. These flags are managed
according to the specific application.
Remark: These flags are necessary because the Congrav L/M-3 can process only up to ten commands per second.
Therefore, only the commands required for the application should be active.
The communication unit shows also the communication status with the Congrav L/M-3.
All the information mentioned above is accessed via the Modbus as described in Appendix A – Modbus addressing
in DL-4000.
3. HARDWARE
The hardware used for the communication with the Congrav L/M-3 consists of the DataLink DL-4000 unit with two
cables, one connecting to the Modbus Host and the other to the Congrav L/M-3.
The DL-4000 is connected to the Congrav L/M-3 through a 4 pin (EURO) connector on the rear panel –
labeled CHB. The connections are made according to the following pinouts for the DL-4000 and
Congrav L/M-3.
1 RS-422 7 (RX-)
2 9 (TX-)
3 8 (TX+)
4 6 (RX+)
Remark: Pin No. 1 on the EURO connector is the one closer to connector CHC and pin No. 4 is
closer the edge of the unit.
The DL-4000 is connected to the Modbus Host through the port labeled CHA in either one of the
following two ways:
• RS-232C communication: 9 pin DB9M (male) connector on the front panel.
• RS-485 communication: 4 pin (EURO) connector on the rear panel.
The connections are made according to the following pinouts for the DL-4000 and Modbus Host (the
wiring provided for the Host is only the minimum and additional connections may be required, according
to the Host used).
DL-4000 Modbus
9 pin Host (Typical)
Female Female
9 pin 25 pin
1 (SHLD) RS-232C
5 (GND) 5 7
3 (TX) 2 3
2 (RX) 3 2
DL-4000 Modbus
4 pin Host
(EURO) (Typical)
4. SOFTWARE
The software for the communication with Congrav L/M-3 and with Modbus is part of the DL-4000 firmware, which
includes the following modes of operation:
ON-LINE – Communication with Modbus on port A (CHA) and with Congrav L/M-3 on port B (CHB).
Detailed description of operation is provided in this manual.
OFF-LINE – Configuration, Diagnostic and Debug mode. Very rarely required. Therefore, details of
operation are provided in DataLink’s user’s manual. For configuration please see Appendix B.
The communication with Modbus is written in assembler language and is part of the standard DL-4000
product. This software is compiled, and the code generated is used to program a flash EPROM, which
becomes part of the DL-4000 firmware.
The communication with Congrav L/M-3 is written in assembler language and is a custom software for
this customized DL-4000. This software is compiled, linked (together with the Modbus software) and the
code generated is used to program a flash EPROM, which becomes part of the DL-4000 firmware.
For a Modbus Host the DL-4000 is a Modbus station that contains a database similar to a PLC.
Therefore, to communicate with the DL-4000, the Modbus Host has to access the correct addresses as
detailed in Appendix A – Modbus addressing in DL-4000.
The database in the DL-4000 contains values. The representation of these values (i.e. bits, integers or
floating points) is determined by the Modbus Host as specified in Appendix A.
The DL-4000 is designed with two separate virtual databases – one for values “Read” from the Congrav L/M-3 and
one for values to “Write” to the Congrav L/M-3.
The values “Read” from the Congrav L/M-3 are controlled by the DL-4000 with flags in the database. These flags
are constantly monitored by the software. Setting a flag (to a value of 80 hexadecimal or 128 decimal) signals the
software to “Read” the values pertaining to the command associated with that flag.
Each flag has an address in the database and is structured as part of the related command as detailed in Appendix A.
Each “Write” command interrupts the ‘Read’ cycle and is performed immediately. Therefore, “Write” commands
should be done upon value change and/or other specific logic conditions in the application (such as recipe
download), but NOT continuously, as this will practicaly disable the ‘Read’ cycle.
We recommend that each “Write” command is followed by the accordingly “Read” command so that data written to
the Congrav L/M-3 is checked – considering Congrav L/M-3’s response time and entering the appropriate delays in
the application.
Remark: Floating Point values are being converted from one format to another. Therefore, when checking a
Floating Point value a narrow band should be used. For example it is possible that when a value of 100 is
written the value read may be 99.999 or 100.001.
The DL-4000 performs up to ten commands per second to the Congrav L/M-3. Therefore, where response time is of
an importance, we suggest to limit the operations (the “Read” flags set to 80H) to the minimum required.
This section gives two examples of the application required in a MODICON PLC for reading and writing the
setpoint from/to the Congrav L/M-3. The first example is for an application with a Modicon Bridge/Multiplexer
(BM85) for a Modbus PLUS network. The second example is for an application with a Telemecanique ConneXium
Ethernet Gateway (ETG module) for a Modbus Ethernet TCP/IP network.
6.1 Sample #1 – Read and Write Setpoint with Modicon Bridge/Multiplexer (BM85)
This application makes use of a Modicon Bridge/Multiplexer (BM85). This unit enables the PLC (via the
BM85) to issue Modbus Host commands using its Modbus PLUS port (the PLC Modbus port is a slave
and the DL-4000 port is a slave).
The PLC allows up to four MSTR blocks to be simultaneously active in a ladder logic program. It is up to
the application to make sure that this is the case, otherwise unpredicted situations (like lost messages) may
occur.
As this example uses only three MSTR instructions, no attempt was made to ensure that the above
mentioned restriction is addressed.
NETWORK #00001
The first part (lines 1-3) writes the command flag to the DL-4000. This flag tells the DL-4000 to read the actual values of
the Feeder from the Congrav.
This flag is repeatedly written (at a low frequency) to ensure it is written also after a reset or a power failure of the DL-
4000.
The second part (lines 5-7) controls the frequency of polling the values from the DL-4000 on the MODBUS and reads the
actual values of the Feeder. This does not control the frequency of polling from the Congrav itself – this is controlled by the
DL-4000.
1+------------]/[---------------++------------------ +-------------------- +-------------------- +--
| 00001 | | #0010 | | 41001 |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
2+ ++ T1.0 +-- + +--
| | 41010 | | 41011 |
| | | | |
| | | | |
| | | | |
| +------------------ + | |
3+ | MSTR +-------------------- ( )----------
| | #0001 | 00001
| | |
| | |
| | |
| +-------------------- +
4+
|
|
|
|
|
5+------------]/[---------------++------------------ +-------------------- +-------------------- +--
| 00002 | | #0050 | | 41021 |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
6+ ++ T.01 +-- + +--
| | 41030 | | 41031 |
| | | | |
| | | | |
| | | | |
| +------------------ + | |
7+ | MSTR +-------------------- ( )----------
| | #0010 | 00002
| | |
| | |
| | |
| +-------------------- +
MSTR Instruction Data Entry for the Control Block starting at address 41001
The value written to the DL-4000 “The Flag” is taken from register 41011 and it should be either “80H” or “0” as detailed
in Appendix A.
MSTR Instruction Data Entry for the Control Block starting at address 41021
The values read from the DL-4000 are placed in the ten (10) registers starting at 41031 in Modicon floating-point format.
NETWORK #00002
Write a new set-point value. The first part (lines 1-3) detects when a new value is entered. The second part (lines 4-7)
sends the new value and updates the stored value. The DL-4000 receives this new value and sends it to the Congrav.
1+----------------------------- +-------------------- +- +------------------------------------------ ( )-----
| | 41111 | | 00005
| | | |
| | | |
| | | |
| | | |
2+ + +-------------------- + +-------------------- ( )-----
| | 41121 | | 00006
| | | |
| | | |
| | | |
| | | |
3+ + EMTH +------------------------------------------ +
| | CMPFP |
| | |
| | |
| | |
| +-------------------- +
4+------------]/[-------------------] [--------------- +-------------------- +------------------------------------------ +
| 00005 00006 | | |
| | | |
| | | |
| | | |
| | | |
5+------------] [-------------------]/[--------------- + ++------------------ +-- ++------------------ +--
| 00005 00006 | 41111 | | 41101 |
| | | | |
| | | | |
| | | | |
| | | | |
6+ | | + +--
| | 41121 | | 41111 |
| | | | |
| | | | |
| | | | |
| | | | |
7+ | BLKM | | MSTR +--
| | #0002 | | #0002 |
| | | | |
| | | | |
| | | | |
| +------------------ + +------------------ +
MSTR Instruction Data Entry for the Control Block starting at address 41101
The value written to the DL-4000 is taken from two registers starting at 41111 and it is expected to be in Modicon floating-
point format.
6.2 Sample #2 – Read and Write Setpoint with Telemecanique Ethernet Bridge (ETG module)
This application makes use of a Telemecanique ConneXium Ethernet Gateway (TSXETG100). This unit
enables the PLC (via the ETG module) to issue Modbus Host commands using its Ethernet TCP/IP port
(the PLC Modbus port is a slave and the DL-4000 port is a slave).
The PLC allows up to four MSTR blocks to be simultaneously active in a ladder logic program. It is up to
the application to make sure that this is the case, otherwise unpredicted situations (like lost messages) may
occur.
As this example uses only three MSTR instructions, no attempt was made to ensure that the above
mentioned restriction is addressed.
NETWORK #00001
The first part (lines 1-3) writes the command flag to the DL-4000. This flag tells the DL-4000 to read the actual values of
the Feeder from the Congrav.
This flag is repeatedly written (at a low frequency) to ensure it is written also after a reset or a power failure of the DL-
4000.
The second part (lines 5-7) controls the frequency of polling the values from the DL-4000 on the MODBUS (via Ethernet)
and reads the actual values of the Feeder. This does not control the frequency of polling from the Congrav itself – this is
controlled by the DL-4000.
1+------------]/[---------------++------------------ +-------------------- +-------------------- +--
| 00001 | | #0010 | | 41001 |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
2+ ++ T1.0 +-- + +--
| | 41010 | | 41011 |
| | | | |
| | | | |
| | | | |
| +------------------ + | |
3+ | MSTR +-------------------- ( )----------
| | #0001 | 00001
| | |
| | |
| | |
| +-------------------- +
4+
|
|
|
|
|
5+------------]/[---------------++------------------ +-------------------- +-------------------- +--
| 00002 | | #0050 | | 41021 |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
6+ ++ T.01 +-- + +--
| | 41030 | | 41031 |
| | | | |
| | | | |
| | | | |
| +------------------ + | |
7+ | MSTR +-------------------- ( )----------
| | #0010 | 00002
| | |
| | |
| | |
| +-------------------- +
MSTR Instruction Data Entry for the Control Block starting at address 41001
The value written to the DL-4000 “The Flag” is taken from register 41011 and it should be either “80H” or “0” as detailed
in Appendix A.
MSTR Instruction Data Entry for the Control Block starting at address 41021
The values read from the DL-4000 are placed in the ten (10) registers starting at 41031 in Modicon floating-point format.
NETWORK #00002
Write a new set-point value. The first part (lines 1-3) detects when a new value is entered. The second part (lines 4-7)
sends the new value and updates the stored value. The DL-4000 receives this new value and sends it to the Congrav.
1+----------------------------- +-------------------- +- +------------------------------------------ ( )-----
| | 41111 | | 00005
| | | |
| | | |
| | | |
| | | |
2+ + +-------------------- + +-------------------- ( )-----
| | 41121 | | 00006
| | | |
| | | |
| | | |
| | | |
3+ + EMTH +------------------------------------------ +
| | CMPFP |
| | |
| | |
| | |
| +-------------------- +
4+------------]/[-------------------] [--------------- +-------------------- +------------------------------------------ +
| 00005 00006 | | |
| | | |
| | | |
| | | |
| | | |
5+------------] [-------------------]/[--------------- + ++------------------ +-- ++------------------ +--
| 00005 00006 | 41111 | | 41101 |
| | | | |
| | | | |
| | | | |
| | | | |
6+ | | + +--
| | 41121 | | 41111 |
| | | | |
| | | | |
| | | | |
| | | | |
7+ | BLKM | | MSTR +--
| | #0002 | | #0002 |
| | | | |
| | | | |
| | | | |
| +------------------ + +------------------ +
MSTR Instruction Data Entry for the Control Block starting at address 41101
The value written to the DL-4000 is taken from two registers starting at 41111 and it is expected to be in Modicon floating-
point format.
7. APPENDIXES
*1 xx is for all configured feeders; i.e. 01, 02, … 08, 09(HGC-type only), … 16(HGC-type only).
To perform a read command from the Congrav L/M-3 the attached flag has to be set, by activating a write MSTR
instruction to the appropriate address.
Each read command from the Congrav L/M-3 performs a read of all the associated data even if only one value is
required by the PLC.
*1 xx is for all configured feeders; i.e. 01, 02, … 08, 09(HGC-type only), … 16(HGC-type only).
The following table details the addresses of the communication status between the DL-4000 and the Congrav L/M-3.
This data is in the DL-4000 and can be accessed by the PLC to ensure reliability of the communication.
Note:
The data is byte swapped; i.e. low byte is actually the high byte and vice versa. Therefore the PLC application
should swap the bytes before using the values in the application.
B. DATALINK Configuration
For most application the unit comes pre-configured with the appropriate data so that it is ready to “plug and play”. However for
those applications where this data is not available or was corrupted for whatever reason the following is the description of the
values required in the configuration, using the DataLink standard configuration software “DL32-4000” (ver 2.03 or later), which
is supplied with the unit.
A. Start the configuration program and select the following:
1. On the Main Menu click on the DL4000 ALL MODELS button.
2. Choose the DL4000 Model used by clicking on the DL4000-BTI button.
3. Select which COM port on the PC the DL4000 is connected to by clicking on the appropriate ‘Radio’ button. COM1 is
most commonly used, however COM2, COM3 and COM4 are also available.
4. Select operation you want to perform and follow instructions further below:
a) For preparing a new configuration file click on the Configure/Open File button.
b) To download to the DL-4000 an existing configuration file on the PC click on the Download from FILE button.
c) To upload the existing DL-4000 configuration to a file on the PC click on the Upload to FILE button.
B. To configure a new configuration (button in 4.a. above) select the following:
1. Choose Newtork protocol for CHA by clicking on the appropriate ‘Radio’ button. Modbus (should be selected in this
case) or DF1 are available.
2. Select communication speed (Baud rate) and station number with the appropriate drop down menus. Speed should be the
same as set on the Modbus host. Station number should be 1, unless otherwise required.
3. View and change as appropriate the communication parameters to correspond to the Modbus host. Selections are made by
clicking on the appropriate ‘Radio’ button.
4. Select communication speed (Baud rate) for the Congrav L/M-3 with the appropriate drop down menu. Speed can be either
one of the following three: 9600, 19.2 or 38.4 as selected on the Congrav.
5. Select Congrav type connected to the DL-4000. L/M3 in this case. Selection is made by clicking on the appropriate
‘Radio’ button.
6. View and change as appropriate the communication parameters. Selections are made by clicking on the appropriate ‘Radio’
button. Parameters should be as follows:
PARITY YES
PARITY EVEN
DATA BITS 8
STOP BITS 1
HANDSHAKING IGNORE
SERIAL CONNECTION RS422-4 Wire
7. Save the configuration with the following:
a) Click on the CONFIGURATION Settings button
b) Select Save DataLink Configuration Settings… from the pull down menu.
c) Use the ‘Save As’ explorer type window to select the folder and enter the desired file name.
8. Return to previous menu by clicking on the RETURN to Main Menu button.
C. To download an existing configuration (button in A.4.b. above) select the following:
1. Click on the DOWNLOAD CONFIGURATION FILE TO A DATALINK button.
2. Use the ‘Open’ explorer type window to select the folder and file name as entered in A.7.c. above or as previously saved.
3. Follow the on-screen prompt and press the ‘Configure’ pushbutton on the DataLink unit (only the CHA and CHC lights
should be red and the Power light green).
4. Follow the on-screen prompt and press the ‘Reset’ pushbutton on the DataLink unit to put it ON-LINE.
5. After verifying that the ‘STATUS’ line includes the A-OK message, return to previous menu by clicking on the RETURN
to Main Menu button.
D. To upload an existing configuration (button in A.4.c. above) select the following:
1. Click on the UPLOAD button.
2. Follow the on-screen prompt and press the ‘Configure’ pushbutton on the DataLink unit (only the CHA and CHC lights
should be red and the Power light green).
3. Use the ‘Save As’ explorer type window to select the folder and enter the desired file name.
4. Verify that the ‘STATUS’ line includes the A-OK message.
5. View and change as appropriate the configuration by clicking on the VIEW button and following instructions in B. above.
6. When done, return to previous menu by clicking on the RETURN to Main Menu button.
C. HONEYWELL Addendum
To establish communication between the DataLink DL-4000 and the Honeywell TDC-3000, array points have to be built in
the SI FTA of the Honeywell TDC-3000. The Honeywell TDC-3000 has the following restrictions for the arrays:
1. Each array can contain data of one type only (i.e. integer or floating point).
2. Each array has a base address, and depending on the data type a maximum number of elements: 16 for floating point
data and 32 for integers.
3. The maximum number of arrays that can be built in an SI FTA is 16.
To help overcome the restrictions, the following improvements in the DataLink DL-4000 were made:
1. Certain flags (total of 20) in one “command” with base address at 40600.
2. Production parameters (total of 24 floating point values) in two “commands” with base address at 45000.
The memory map (addressing) for the modifications are in the following tables, which should be regarded as an addendum
to the regular memory map – as detailed in Appendix A.
Note: Flags for the following data should be set in either command No. 12 or the appropriate command No.
Note: Flags for the following data should be set in either command No. 12 or the appropriate command No.