Modbus Settings - ADC Example Mapping
For this application example, ModbusTCP communication requires the following:1,008 bits (read)
-
1,008 bits (coil)
-
1,000 words (read)
-
1,000 words (hold)
Step | Action |
---|---|
1 | Choose the direct memory area in the LS PLC. In this example, the M memory area will be used. The user can choose the W area or a combination of both. |
2 |
Determine the blocks of registers that will be used.
|
3 |
Enter the starting registers of each Modbus area (red above) in the Modbus Settings window. Note: Bit area must use Bit data type address. Select OK. Mapping will be as the chart indicates.
|
Tip:
C-More Modbus settings are added from the Function tab è Panel Manager.
XEM PLC Description |
Direct Address Tags | XG5000 Example Variable | XG5000 Data Type | Modbus Register | C-More Tag | C-More Tag Data Type |
---|---|---|---|---|---|---|
Bit Read Area Address | %MX3216 | BOOL_TO_HMI | BOOL | 10001 | BOOL_FROM_PLC | Discrete |
Bit Write Area Address | %MX6416 | BOOL_FROM_HMI | BOOL | 00001 | BOOL_TO_PLC | Discrete |
Word Read Area | %MW600 | INT_TO_HMI | INT | 30001 | INT_FROM_PLC | Signed Int 16 |
Word Read Area | %MW601 | UINT_TO_HMI | UINT | 30002 | UINT_FROM_PLC | Unsigned Int 16 |
Word Read Area | %MD304 | DINT_TO_HMI | DINT | 30009 | DINT_FROM_PLC | Signed Int 32 |
Word Read Area | %MD305 | UDINT_TO_HMI | UDINT | 30011 | UDINT_FROM_PLC | Unsigned Int 32 |
Word Read Area | %MD306 | REAL_TO_HMI | REAL | 30013 | REAL_FROM_PLC | Floating PT 32 |
Word Write Area | %MW1600 | INT_FROM_HMI | INT | 40001 | INT_TO_PLC | Signed Int 16 |
Word Write Area | %MW1601 | UINT_FROM_HMI | UINT | 40002 | INT_TO_PLC | Unsigned Int 16 |
Word Write Area | %MD804 | DINT_FROM_HMI | DINT | 40009 | DINT_TO_PLC | Signed Int 32 |
Word Write Area | %MD805 | UDINT_FROM_HMI | UDINT | 40011 | UDINT_TO_PLC | Unsigned Int 32 |
Word Write Area | %MD807 | REAL_FROM_HMI | REAL | 40013 | REAL_TO_PLC | Floating PT 32 |
Word Write Area | %MW1602 | WORD_FROM_HMI | WORD | 40003 | WORD_TO_PLC | Unsigned Int 16 |
Word Write Area | %MW602 | WORD_TO_HMI | WORD | 30003 | WORD_FROM_PLC | Unsigned Int 16 |
Word Write Area | %MD807 | DWORD_FROM_HMI | DWORD | 40015 | DWORD_TO_PLC | Unsigned Int 32 |
Word Write Area | %MD307 | DWORD_TO_HMI | DWORD | 30015 | DWORD_FROM_PLC | Unsigned Int 32 |
Word Write Area | %MW1616 | STRING_FROM_HMI | STRING | 40017 | STRING_TO_PLC | Ascii String |
Word Write Area | %MD308 | STRING_TO_HMI | STRING | 30017 | STRING_FROM_PLC | Ascii String |
Variable Kind | Variable | Type | Address |
---|---|---|---|
VAR | BOOL_FROM_HMI | BOOL | %MX6416 |
VAR | BOOL_TO_HMI | BOOL | %MX3216 |
VAR | DINT_FROM_HMI | DINT | %MD804 |
VAR | DINT_TO_HMI | DINT | %MD304 |
VAR | DWORD_FROM_HMI | DWORD | %MD307 |
VAR | DWORD_TO_HMI | DWORD | %MD807 |
VAR | INT_FROM_HMI | INT | %MW1600 |
VAR | INT_TO_HMI | INT | %MW600 |
VAR | REAL_FROM_HMI | REAL | %MD806 |
VAR | REAL_TO_HMI | REAL | %MD306 |
VAR | STRING_FROM_HMI | STRING | %MW1616 |
VAR | STRING_TO_HMI | STRING | %MD308 |
VAR | UDINT_FROM_HMI | UDINT | %MD805 |
VAR | UDINT_TO_HMI | UDINT | %MD305 |
VAR | UNIT_FROM_HMI | UNIT | %MW1601 |
VAR | UNIT_TO_HMI | UNIT | %MW601 |
VAR | WORD_FROM_HMI | WORD | %MW602 |
VAR | WORD_TO_HMI | WORD | %MW1602 |
Device Name | Tag Name | Data Type | Address | Data Count |
---|---|---|---|---|
DEV002 | BOOL_FROM_PLC | Discrete | 10001 | |
DEV002 | BOOL_TO_PLC | Discrete | 000001 | |
DEV002 | DINT_FROM_PLC | Signed Int 32 | 30009 | |
DEV002 | DINT_TO_PLC | Signed Int 32 | 40009 | |
DEV002 | DWORD_FROM_PLC | Unsigned Int 32 | 30015 | |
DEV002 | DWORD_TO_PLC | Unsigned Int 32 | 50015 | |
DEV002 | INT_FROM_PLC | Signed Int 16 | 30001 | |
DEV002 | INT_TO_PLC | Signed Int 16 | 40001 | |
DEV002 | REAL_FROM_PLC | Floating PT 32 | 30013 | |
DEV002 | REAL_TO_PLC | Floating PT 32 | 40013 | |
DEV002 | STRING_FROM_PLC | Ascii String | 30017 | 32 |
DEV002 | STRING_TO_PLC | Ascii String | 40017 | 32 |
DEV002 | UDINT_FROM_PLC | Unsigned Int 32 | 30011 | |
DEV002 | UDINT_TO_PLC | Unsigned Int 32 | 40011 | |
DEV002 | UNIT_FROM_PLC | Unsigned Int 16 | 30002 | |
DEV002 | UNIT_TO_PLC | Unsigned Int 16 | 40002 | |
DEV002 | WORD_FROM_PLC | Unsigned Int 16 | 30003 | |
DEV002 | WORD_TO_PLC | Unsigned Int 16 | 40003 |
LP203-2