User s Manual
100% ) ( x b a a + 1
RX+ TX+ DTR GND TX+ RX+ DTR GND RX+ TX+ DTR GND DSR RX+ TX+ DTR GND DSR [ DCE TYPE ] [ DCE TYPE ] RS232
Format Baud
1
T100MD+ T100MX+ PLC T100M+ PLC ( T100MD+ T100MX+ T100M+.) T100M+ PLC,,, ASCII. ASCII (Host-Link Command) PLC RS232C RS485. Host-Link T100M+ PLC Baud: 38400, Data bit: 8, Stop bit: 1, Parity: None. Baud rate PART II TBASIC (Programmer s Reference Part II TBASIC) SetBAUD TBASIC. T100M+ SuperPLC. SuperPLC T100M+ PLC. 1. * MODBUS TM ASCII 2. * MODBUS TM RTU (Firmware R32 Rev D ) 3. * OMRON TM Host Link Command (C20H PLC ) 4. * emware TM EMIT 3.0 T100M+ PLC emgateway emware. *: (Native Host Link Command Protocol) 4. MODBUS OMRON 5 6 T100M+ PLCemGateway.
(Native Mode Communication Protocols) T100M+ PLCCOMM1 (RS232) COMM3 (RS485) Native Host-link.. T100M+ PLCPoint-to-Point (1:1) (1: ).. 11 RS232C PLC COMM1 (RS232C). PLC. (Host-link Command)PLCID. / (1:1)
Note:
@ n n x x......... x x * ID FCS (Header) (Terminator)
@ 0 4 R V I A 4 8 * ID FCS (Header) @ 0100 0000 XOR 0 0011 0000 XOR 4 0011 0100 XOR R 0101 0010 XOR V 0101 0110 XOR I 0100 1001 XOR A 0100 0001 0100 1000 = 48 16
unsigned char compute_fcs(unsigned char *string){ unsigned char result; result = *string++; /*first byte of string*/ while (*string) result ^= *string++; /* XOR operation */ return (result); }
(Framing Error Response Block) (*Multi-point ) @ x x F E x x * ID FCS (Terminator) (Error Response Format) @ x x E R x x * ID FCS (Terminator)
(Command Format) I R * (Response Format) I R 16 1 16 0 * ID (00 ~ FF) (Command Format) I W 16 1 16 0 * ID (00 ~ FF)
(Response Format ) I W * (Command Format) R I n n * 8- # (16:Hex) (Response Format) R I 16 1 16 0 * 8- (16:Hex) Bit7 (Input/Output Numbers) Bit0 CH00: 8 7 6 5 4 3 2 1 CH01: 16 15 14 13 12 11 10 9 CH02: 24 23 22 21 20 19 18 17 CH03: 32 31 30 29 28 27 26 25 CH04: 40 39 38 37 36 35 34 33 CH05: 48 57 56 45 44 43 42 41 CH06: 56 55 54 53 52 51 50 49 CH07: 64 63 62 61 60 59 58 57 CH08: 72 71 70 69 68 67 66 65 CH09: 80 79 78 77 76 75 74 73 CH0A 16 : 88 87 86 85 84 83 82 81 CH0B 16 : 96 95 94 93 92 91 90 89 CH0C 16 : 104 103 102 101 100 99 98 97 CH0D 16 : 112 111 110 109 108 107 106 105 CH0E 16 : 120 119 118 117 116 115 114 113 CH0F 16 : 128 127 126 125 124 123 122 121
(Command Format) R O n n * 8- # (16:Hex) (Response Format) R O 16 1 16 0 * 8- (16:Hex) (Command Format) R R n n * 8- # (16:Hex) (Response Format) R R 16 1 16 0 * 8- (16:Hex)
bit7 (Relay numbers) bit0 CH00: 8 7 6 5 4 3 2 1 CH01: 16 15 14 13 12 11 10 9 CH02: 24 23 22 21 20 19 18 17 CH03: 32 31 30 29 28 27 26 25 CH04: 40 39 38 37 36 35 34 33 CH05: 48 57 56 45 44 43 42 41 CH06: 56 55 54 53 52 51 50 49 CH07: 64 63 62 61 60 59 58 57 CH08: 72 71 70 69 68 67 66 65 CH09: 80 79 78 77 76 75 74 73 CH0A 16 : 88 87 86 85 84 83 82 81 CH0B 16 : 96 95 94 93 92 91 90 89 CH0C 16 : 104 103 102 101 100 99 98 97 CH0D 16 : 112 111 110 109 108 107 106 105 CH0E 16 : 120 119 118 117 116 115 114 113 CH0F 16 : 128 127 126 125 124 123 122 121 CH10 16 : 136 135 134 133 132 131 130 129 CH11 16 : 144 143 142 141 140 139 138 137 CH12 16 : 152 151 150 149 148 147 146 145 CH13 16 : 160 159 158 157 156 155 154 153 CH14 16 : 168 167 166 165 164 163 162 161 CH15 16 : 176 175 174 173 172 171 170 169 CH16 16 : 184 183 182 181 180 179 178 177 CH17 16 : 192 191 190 189 188 187 186 185 CH18 16 : 200 199 198 197 196 195 194 193 CH19 16 : 208 207 206 205 204 203 202 201 CH1A 16 : 216 215 214 213 212 211 210 209 CH1B 16 : 224 223 222 221 220 219 218 217 CH1C 16 : 232 231 230 229 228 227 226 225 CH1D 16 : 240 239 238 237 236 235 234 233 CH1E 16 : 248 247 246 245 244 243 242 241 CH1F 16 : 256 255 254 253 252 251 250 249 (Command Format) R T n n * 8- # (16:Hex) (Response Format)
R T 16 1 16 0 * 8- (16:Hex) Bit7 (Timer Contact Numbers) Bit0 CH0: 8 7 6 5 4 3 2 1 CH1: 16 15 14 13 12 11 10 9 CH2: 24 23 22 21 20 19 18 17 CH3: 32 31 30 29 28 27 26 25 CH4: 40 39 38 37 36 35 34 33 CH5: 48 57 56 45 44 43 42 41 CH6: 56 55 54 53 52 51 50 49 CH7: 64 63 62 61 60 59 58 57 (Command Format) R C n n * 8- # (16:Hex) (Response Format) R C 16 1 16 0 * 8- (16:Hex)
Bit7 (Counter Contact Numbers) Bit0 CH0: 8 7 6 5 4 3 2 1 CH1: 16 15 14 13 12 11 10 9 CH2: 24 23 22 21 20 19 18 17 CH3: 32 31 30 29 28 27 26 25 CH4: 40 39 38 37 36 35 34 33 CH5: 48 57 56 45 44 43 42 41 CH6: 56 55 54 53 52 51 50 49 CH7: 64 63 62 61 60 59 58 57 (Command Format) R M n n * nn: Timer1=00,... Timer16=0F... Timer64=3F (Response Format) R M 10 3 10 2 10 1 10 0 * (Timer present value) 10 (Command Format) R m n n * nn: Timer1=00,... Timer16=0F... Timer64=3F (Response Format) R m 10 3 10 2 10 1 10 0 * (Timer Set Value) 10
(Command Format) R U n n * nn: Counter1=00,... Counter16=0F... Counter64=3F (Response Format) R U 10 3 10 2 10 1 10 0 * (Counter present value) 10 (Command Format) R u n n * nn: Counter1=00,... Counter16=0F... Counter64=3F (Response Format) R u 10 3 10 2 10 1 10 0 * (Counter Set Value) 10
(Command Format) R V I * A,B.C...Z (Response Format) R V I 16 7 16 6 16 5 16 4 16 3 16 2 16 1 16 0 * 32 8 16. (Command Format) R V $ * A,B.C...Z (Response Format) R V $ a a a...... a a a * ASCII ( )
(Command Format) R V D 16 3 16 2 16 1 16 0 * Response Format 0001 to 0FA0 (4000 10 ) R V D 16 3 16 2 16 1 16 0 * 16 4 16
(System Variable) (type) (System Variable) (type) input[ ] 01 clk[ ] 08 output[ ] 02 date[ ] 09 relay[ ] 03-0A timer[ ] 04 ADC* 0B ctr[ ] 05 DAC* 0C timerpv[ ] 06 PWM* 0D ctrpv[ ] 07 * TBASIC (Command Format) R V S n n 16 1 16 0 * type Index type (01 to 0D) - index (01 to 1F) - 01 (Response Format) R V S 16 3 16 2 16 1 16 0 * 16 4 16
(Command Format) R V H n * : 1 2 (Response Format) R V H 16 7 16 6 16 5 16 4 16 3 16 2 16 1 16 0 * 32 8 16 (Command Format) W I n n 16 1 16 0 * # (00 ~ 0F) (Response Format) W I * (Command Format) W O n n 16 1 16 0 * # (00 ~ 0F) (Response Format) W O *
(Command Format) W R n n 16 1 16 0 * Channel # Data (Response Format) W R * (Command Format) W T n n 16 1 16 0 * # (00 ~ 07) (Response Format) W T * (Command Format) W C n n 16 1 16 0 * # (00 ~ 07) (Response Format) W C *
(Command Format) W M n n 10 3 10 2 10 1 10 0 * Timer1=00, timer PV... Timer64=3F (16) (Response Format) W M * (Command Format) W m n n 10 3 10 2 10 1 10 0 * Timer1=00, (timer SV)... Timer64=3F (16) (Response Format) W m * (Command Format) W U n n 10 3 10 2 10 1 10 0 * Counter1=00, PV... Counter64=3F (16)
(Response Format) W U * (Command Format) W u n n 10 3 10 2 10 1 10 0 * Counter1=00, (Counter SV)... Counter64=3F (16) (Response Format) W u * (Command Format) W V I 16 7 16 6 16 5 16 4 16 3 16 2 16 1 16 0 * A,B.C...Z 32 8 16 (Response Format) W V I *
(Command Format ) W V $ a a...... a a * A,B.C...Z (Response Format) W V $ * ASCII ( ) (Command Format) W V D 16 3 16 2 16 1 16 0 16 3 16 2 16 1 16 0 * 0001 ~ 0FA0 (4000 10 ) 16 16 (Response Format) W V D * (System Variable) (type) (System Variable) (type) input[ ] 01 clk[ ] 08 output[ ] 02 date[ ] 09 relay[ ] 03-0A
timer[ ] 04 ADC* 0B ctr[ ] 05 DAC* 0C timerpv[ ] 06 PWM* 0D ctrpv[ ] 07 * TBASIC (Command Format) W V S n n 16 1 16 0 16 3 16 2 16 1 16 0 * type Index 16-bit Integer Data type (01 to 0D) - index (01 to 1F) - 01 (Response Format) W V S * (Command Format) W V H n 16 7 16 6 16 5 16 4 16 3 16 2 16 1 16 0 * 1 2 32 8 16 (Response Format) W V H *
(Command Format) W r * (Response Format) W r * (Command Format) C 2 * (Response Format) C 2 * (Command Format) C 1 * (Response Format) C 1 *
(Function) LRC CRLF : 2 2 # 2 2 01/02 I/O (5.1 ) 03/04 I/O 05 I/O (5.1 ) 06 (Preset Single Word Register) 16 (Preset Multiple Word Registers)
5.1: T100MD+ PLC T100M+ I/O # OMRON MODBUS (Word Addr. Mapping) MODBUS (Bit Addr. Mapping) Input n n 1 to 16 IR00.0 to IR00.15 40001.1 to 40001.16 1 to16 17 to 32 IR01.0 to IR01.15 40002.1 to 40002.16 17 to 32 33 to 48 IR02.0 to IR02.15 40003.1 to 40003.16 33 to 48 49 to 64 IR03.0 to IR03.15 40004.1 to 40004.16 49 to 64 65 to 80 IR04.0 to IR04.15 40005.1 to 40005.16 65 to 80 81 to 96 IR05.0 to IR05.15 40006.1 to 40006.16 81 to 96 Output n 256 + n 1 to 16 IR16.0 to IR16.15 40017.1 to 40017.16 257 to 272 17 to 32 IR17.0 to IR17.15 40018.1 to 40018.16 273 to 288 33 to 48 IR18.0 to IR18.15 40019.1 to 40019.16 289 to 304 49 to 64 IR19.0 to IR19.15 40020.1 to 40020.16 305 to 320 65 to 80 IR20.0 to IR20.15 40021.1 to 40021.16 321 to 336 81 to 96 IR21.0 to IR21.15 40022.1 to 40022.16 337 to 352 Timer n 512+n 1 to 16 IR32.0 to IR32.15 40033.1 to 40033.16 513 to 528 17 to 32 IR33.0 to IR33.15 40034.1 to 40034.16 529 to 544 33 to 48 IR34.0 to IR34.15 40035.1 to 40035.16 545 to 560 49 to 64 IR35.0 to IR35.15 40036.1 to 40036.16 561 to 576 Counter n 768 + n 1 to 16 IR48.0 to IR48.15 40049.1 to 40049.16 769 to 784 17 to 32 IR49.0 to IR49.15 40050.1 to 40050.16 785 to 800 33 to 48 IR50.0 to IR50.15 40051.1 to 40051.16 801 to 816 49 to 64 IR51.0 to IR51.15 40052.1 to 40052.16 817 to 832 Relay n 1024 + n 1 to 16 IR64.0 to IR64.15 40065.1 to 40065.16 1025 to 1040 17 to 32 IR65.0 to IR65.15 40066.1 to 40066.16 1041 to 1056 33 to 48 IR66.0 to IR66.15 40067.1 to 40067.16 1057 to 1072 49 to 64 IR67.0 to IR67.15 40068.1 to 40068.16 1073 to 1088 65 to 80 IR68.0 to IR68.15 40069.1 to 40069.16 1089 to 1104 81 to 96 IR69.0 to IR69.15 40070.1 to 40070.16 1105 to 1120 97 to 112 IR70.0 to IR70.15 40071.1 to 40071.16 1121 to 1136 113 to 128 IR71.0 to IR71.15 40072.1 to 40072.16 1137 to 1152 129 to 144 IR72.0 to IR72.15 40073.1 to 40073.16 1153 to 1168 145 to 160 IR73.0 to IR73.15 40074.1 to 40074.16 1169 to 1184 161 to 176 IR74.0 to IR74.15 40075.1 to 40075.16 1185 to 1200 177 to 192 IR75.0 to IR75.15 40076.1 to 40076.16 1201 to 1216 193 to 208 IR76.0 to IR76.15 40077.1 to 40077.16 1217 to 1232 209 to 224 IR77.0 to IR77.15 40078.1 to 40078.16 1233 to 1248........ 497 to 512 IR96.0 to IR96.15 40097.1 to 40097.16 1521 to 1536
T100M+ I/O # OMRON MODBUS (Word Addr. Mapping) Timer 1 to 64 IR128 to IR191 40129 to 40192 Counter 1 to 64 IR256 to IR319 40257 to 40320 Clock TIME[1] IR512 40513 TIME[2] IR513 40514 TIME[3] IR514 40515 Date Data Memory DATE[1] DATE[2] DATE[3] DATE[4] DM[1] DM[2]. DM[4000] IR516 IR517 IR518 IR519 DM[1] DM[2]. DM[4000] 40517 40518 40519 40520 41001 41002. 45000.. * MODBUS OMRONOMRON MODBUS (Bit Addr. Mapping) CRC 16 (Function) 3.5 1 1 # 2 3.5
01/02 I/O (5.1 ) 03/04 I/O 05 I/O (5.1 ) 06 (Preset Single Word Register) 16 (Preset Multiple Word Registers) (Header) a) TEST TS Full support b) STATUS READ MS Full support c) ERROR Read MF Dummy ( good) d) IR Area READ RR Full support (0000 to 1000) e) HR, AR, LR Area RH Dummy ( 0000 ) & TC Status READ f) DM AREA READ RD Full support g) PV READ RC Dummy ( 0000 ) h) Status Write SC Dummy ( OK) l) IR Area WRITE WR Full Support j) HR, AR, LR Area WH, WJ, Dummy ( OK) & TC Status WRITE WL, WG k) DM Area WRITE WD Full Support (DM0001 ~ DM4000) l) FORCED SET KSCIO KRCIO Full Support (IR ) Dummy (IR ) m) Registered I/O Read for Channel or Bit QQMR/ QQIR Full Support (IR DM ) Dummy (IR DM ) -----( 0000)
DM[100] = ADC(3)