Modbus Map Omron
Modbus Map Omron
The T100M+ PLC supports a subset of the OMRON and MODBUS (Both ASCII and RTU modes are now supported) compatible communication protocols so that it can be easily linked to third-party control software/hardware products such as SCADA software, touch panels etc. The PLC automatically recognizes the type of command format and will respond with the correct response. These are accomplished without any user intervention and without any need to configure the PLC at all! Both MODBUS and Omron protocols use the same device ID address (00 to FF) as the native protocol described in Chapter 3. Since the addresses of I/O and internal variables in the T100M+ PLC are organized very differently from the OMRON or Modicon PLCs, we need to map these addresses to the corresponding memory areas in the other PLCs so that they can be easily accessed by their corresponding protocols. All I/Os, timers, counters, internal relays and data memory DM[1] to DM[4000] are mapped as shown in table 5.1. However, 32 bit variables and string variables are not mapped since they are fundamentally quite different in their implementation among different PLCs. Internal variables which are not mapped can be still be accessed by copying the contents of these variables to unused data memory DM[n] (these can be easily accomplished within a CusFn ) so that they can be accessed by these third party protocols. For normal application Table 5.1 may be all that you need to interface to third party control products such as a touch screen LCD panel.
Please refer to the MODBUS protocol published by Groupe Schneider at http://www.modicon.com to find out the exact address and data format of the MODBUS command and response.
5-1
OMRON
MODBUS Bit Addr. Mapping n 1 to16 17 to 32 33 to 48 49 to 64 65 to 80 81 to 96 256 + n 257 to 272 273 to 288 289 to 304 305 to 320 321 to 336 337 to 352 512+n 513 to 528 529 to 544 545 to 560 561 to 576 768 + n 769 to 784 785 to 800 801 to 816 817 to 832 1024 + n 1025 to 1040 1041 to 1056 1057 to 1072 1073 to 1088 1089 to 1104 1105 to 1120 1121 to 1136 1137 to 1152 1153 to 1168 1169 to 1184 1185 to 1200 1201 to 1216 1217 to 1232
IR00.0 to IR00.15 IR01.0 to IR01.15 IR02.0 to IR02.15 IR03.0 to IR03.15 IR04.0 to IR04.15 IR05.0 to IR05.15 IR16.0 to IR16.15 IR17.0 to IR17.15 IR18.0 to IR18.15 IR19.0 to IR19.15 IR20.0 to IR20.15 IR21.0 to IR21.15 IR32.0 IR33.0 IR34.0 IR35.0 IR48.0 IR49.0 IR50.0 IR51.0 to to to to to to to to IR32.15 IR33.15 IR34.15 IR35.15 IR48.15 IR49.15 IR50.15 IR51.15
IR64.0 IR65.0 IR66.0 IR67.0 IR68.0 IR69.0 IR70.0 IR71.0 IR72.0 IR73.0 IR74.0 IR75.0
to to to to to to to to to to to to
IR64.15 IR65.15 IR66.15 IR67.15 IR68.15 IR69.15 IR70.15 IR71.15 IR72.15 IR73.15 IR74.15 IR75.15
40065.1 to 40065.16 40066.1 to 40066.16 40067.1 to 40067.16 40068.1 to 40068.16 40069.1 to 40069.16 40070.1 to 40070.16 40071.1 to 40071.16 40072.1 to 40072.16 40073.1 to 40073.16 40074.1 to 40074.16 40075.1 to 40075.16 40076.1 to 40076.16 40077.1 to 40077.16 40078.1 to 40078.16 .. 40097.1 to 40097.16
5-2
5-3
T100M+ Variables Timer 1 to 64 Present Values Counter 1 to 64 Present Values Clock TIME[1] TIME[2] TIME[3] DATE[1] DATE[2] DATE[3] DATE[4] DM[1] DM[2] . DM[4000]
OMRON IR128 to IR191 IR256 to IR319 IR512 IR513 IR514 IR516 IR517 IR518 IR519 DM[1] DM[2] . DM[4000]
MODBUS 40129 to 40192 40257 to 40320 40513 40514 40515 40517 40518 40519 40520 41001 41002 . 45000
Date
Data Memory
For detailed description of the command and response formats for each OMRON Host Link Commands, please refer to C20H/C28H/C40H PLC Operation manual published by OMRON Corporation.
Example 2: To display reading from ADC #3 as a bar graph on SCADA. Since the data from ADC #3 is not directly mapped to MODBUS or OMRON in Table 5.1, you need to add a statement in the custom function that reads the ADC #3 and copy it into a data memory, e.g., DM[100] = ADC(3) Now you can program the bar graph on the SCADA screen to be connected to DM[100] if you use OMRON protocol. For MODBUS protocol the object should be connected to the address: 41100 as can be seen from Table 5.1.